package com.zhiqiyun.open.core.models.bz;

import com.baomidou.mybatisplus.annotation.*;
import com.zhiqiyun.open.core.enmus.BzDataType;
import com.zhiqiyun.open.core.typeHandler.FastjsonTypeHandler;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
@TableName(value = "bz_base_info", autoResultMap = true)
public class BaseDataInfo {
    @TableId(type = IdType.INPUT)
    private Long id;
    private String name;
    private BzDataType dataType;
    @TableField(typeHandler = FastjsonTypeHandler.class)
    private List<String> litpics;
    private String brief;
    private String address;
    private String contacts;
    private String contactNumber;
    private BigDecimal lng;
    private BigDecimal lat;

    @TableField(updateStrategy = FieldStrategy.NEVER)
    private Date createdTime;
    @TableField(updateStrategy = FieldStrategy.NEVER)
    private Long createdBy;

    private Date updatedTime;
    private Long updatedBy;
}
