package com.dtok.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @Description
 * @Author C.J
 * @Date 2024-03-09
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@Entity
@Table(name = "script")
public class Script implements Serializable {

    private static final long serialVersionUID = 7878805062919342891L;

    @Id
    @Column(name = "uuid")
    private String uuid;

    /**
     * APP
     */
    @Column(name = "app")
    private String app;

    /**
     * 模块
     */
    @Column(name = "module")
    private String module;

    @Column(name = "version")
    private Long version;

    /**
     * 脚本内容
     */
    @Column(name = "script_content")
    private String scriptContent;

    /**
     * 1 生效
     * 0 失效
     */
    @Column(name = "status")
    private Integer status;

    /**
     * 调用次数
     */
    @Column(name = "call_count")
    private Long callCount;

    @Column(name = "encrypt")
    private Boolean encrypt;

    @Column(name = "created_at")
    private Date createdAt;

}
