package com.weavi.entity;

import lombok.Data;
import org.hibernate.annotations.CreationTimestamp;
import org.hibernate.annotations.UpdateTimestamp;

import javax.persistence.*;
import java.util.Date;

@Entity
@Data
@Table(name="actions")
public class RobotAction {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    @Column(name = "rule_id")
    private Long ruleId;

    private String param;

    @Column(name="type_id")
    private Long typeId;

    @Column(name="create_at")
    @CreationTimestamp
    private Date createAt;

    @Column(name="update_at")
    @UpdateTimestamp
    private Date updateAt;


}
