package com.ylx.massage.domain;

import java.time.LocalDateTime;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 城市管理表(CityOperationApplication)表实体类
 *
 * @author makejava
 * @since 2026-06-04 14:27:32
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value = "city_operation_application",autoResultMap = true)
public class CityOperationApplication  implements Serializable {
//主键ID
@TableId(value = "id", type = IdType.AUTO)
    private Long id;
//城市编码 (例如: 110000)
@TableField("city_code")
    private String cityCode;
//城市名称 (冗余字段，方便查询，例如: 北京市)
@TableField("city_name")
    private String cityName;
//运营中心ID
@TableField("operation_center_id")
    private Long operationCenterId;
//运营中心名称
@TableField("operation_center_name")
    private String operationCenterName;
//实际审批通过时间
@TableField("actual_approval_time")
    private Date actualApprovalTime;
//申请原因 (限制500字以内)
    @TableField("apply_reason")
    private String applyReason;

//状态 (0:待审核, 1:已通过, 2:已驳回)
    @TableField("status")
    private Integer status;
//商户ID
    @TableField("merchant_id")
    private String merchantId;
    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "Asia/Shanghai")
    private LocalDateTime updateTime;
    /**
     * 创建时间
     */
    @TableField(value = "create_by")
    private String createBy;

    /**
     * 更新时间
     */
    @TableField(value = "update_by")
    private String updateBy;

    /**
     * 逻辑删除：1已删除 0未删除
     */
    @TableField("is_delete")
    private Integer isDelete;



}

