package com.centreproject.system.domain.sync.ods;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

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

/**
 * 源表：gx_cc_daily_park_omni_revenue_ods
 * 门票总收入表
 * @author zhonglei.xu
 */
@Data
@TableName("gx_cc_daily_park_omni_revenue_ods")
public class GxCcDailyParkOmniRevenueOds {
    @TableId(type = IdType.AUTO)
    private Long id;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "Asia/Riyadh")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @TableField("report_date")
    private Date reportDate;

    @TableField("park")
    private String park;

    @TableField("total_omni_revenue")
    private BigDecimal totalOmniRevenue;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "Asia/Riyadh")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @TableField("business_created_timestamp")
    private Date businessCreatedTimestamp;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "Asia/Riyadh")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @TableField("business_modified_timestamp")
    private Date businessModifiedTimestamp;

    @TableField("created_by")
    private String createdBy;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Riyadh")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("etl_created_timestamp")
    private Date etlCreatedTimestamp;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Riyadh")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("etl_modified_timestamp")
    private Date etlModifiedTimestamp;
}