package com.cool.store.entity.ad;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import javax.persistence.*;

@Data
@Table(name = "ad_district_${enterpriseId}")
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class AdDistrictDO {
    /**
     * id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    /**
     * 父级id
     */
    private Long pid;

    /**
     * 级别
     */
    private Boolean level;

    /**
     * 区划代码
     */
    private String code;

    /**
     * 名称
     */
    private String name;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @Column(name = "update_time")
    private Date updateTime;
}