
package com.czg.market.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;
import java.time.LocalDateTime;

import java.io.Serial;

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

/**
 * 店铺模板表 实体类。
 *
 * @author ww
 * @since 2025-10-14
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table("sms_shop_template")
public class SmsShopTemplate implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Id(keyType = KeyType.Auto)
    private Long id;

    private Long shopId;
    /**
     * 模板名称
     */
    private String title;
    /**
     * 模板内容
     */
    private String content;
    /**
     * 阿里云模板code
     */
    private String templateCode;
    /**
     * 场景描述
     */
    private String sceneDetail;

    /**
     * 排序
     */
    private Integer sort;

    /**
     * 店铺是否使用 0 否 1 是
     */
    private Integer shopUse;
     /**
     * 是否删除 0 否 1 是
     */
    private Integer isDel;

    /**
     *  0 待申请 1 审核中 2 成功  -1失败  -2 重新申请中
     */
    private Integer status;

    /**
     * 失败原因
     */
    private String failMsg;

    @Column(onInsertValue = "now()")
    private LocalDateTime createTime;

    @Column(onInsertValue = "now()", onUpdateValue = "now()")
    private LocalDateTime updateTime;

}
