package com.chinaweal.aiccs.door.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.chinaweal.youfool.framework.springboot.json.LocalDateTimeStringSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@Data
@Accessors(chain = true)
@TableName("PORTAL_TODO_PUSH_RECORD")
public class PortalTodoPushRecord {

    @TableId(value = "ID", type = IdType.ASSIGN_UUID)
    private String id;

    @TableField("TASKLISTID")
    private String tasklistid;

    @TableField("BUSTYPE")
    private String bustype;

    @TableField("DBSXID")
    private String dbsxid;

    @TableField("DBSXMC")
    private String dbsxmc;

    @TableField("DBSXZT")
    private Integer dbsxzt;

    @TableField("USERSID")
    private String usersid;

    @TableField("PUSHSTATUS")
    private String pushstatus;

    @TableField("PUSHMESSAGE")
    private String pushmessage;

    @TableField("PUSHCOUNT")
    private Integer pushcount;

    @TableField("LASTPUSHTIME")
    @JsonSerialize(using = LocalDateTimeStringSerializer.class)
    private LocalDateTime lastpushtime;

    @TableField("CREATETIME")
    @JsonSerialize(using = LocalDateTimeStringSerializer.class)
    private LocalDateTime createtime;

    @TableField("UPDATETIME")
    @JsonSerialize(using = LocalDateTimeStringSerializer.class)
    private LocalDateTime updatetime;
}
