package com.webchat.repository.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Version;

/**
 * @Author: 程序员王七七 https://www.coderutil.com 网站作者
 * @Date: 2021-7-24 0024 22:34
 * @Description: 无描述信息
 */
@Data
@Entity
@Table(name = "web_chat_message_template")
public class MessageTemplateEntity {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    protected Long id;

    /***
     * 模板配置
     */
    @Column(name = "CODE")
    private String code;

    /***
     * 模板配置
     */
    @Column(name = "template")
    private String template;

    @Version
    @Column(name = "version")
    private Integer version;

}
