package com.yc.ship.module.marketing.dal.dataobject.policydetail;

import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.yc.ship.framework.tenant.core.db.TenantBaseDO;
import lombok.*;

import java.math.BigDecimal;
import java.util.*;
import java.time.LocalDateTime;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.*;
import com.yc.ship.framework.mybatis.core.dataobject.BaseDO;

/**
 * 政策详情 DO
 *
 * @author 管理员
 */
@TableName(value = "marketing_policy_detail", autoResultMap = true)
@KeySequence("marketing_policy_detail_seq") // 用于 Oracle、PostgreSQL、Kingbase、DB2、H2 数据库的主键自增。如果是 MySQL 等数据库，可不写。
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class PolicyDetailDO extends TenantBaseDO {

    /**
     * ID
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    /**
     * 政策ID
     */
    private Long policyId;
    /**
     * 游轮ID
     */
    private Long shipId;
    /**
     * 航次ID
     */
    private Long voyageId;
    /**
     * 剩余优惠间数
     */
    private BigDecimal surplusNum;
    /**
     * 区域IDS
     */
    @TableField(typeHandler = JacksonTypeHandler.class)
    private List<Long> areaIds;
    /**
     * 房型IDS
     */
    @TableField(typeHandler = JacksonTypeHandler.class)
    private List<Long> roomModelIds;

}