package com.czg.account.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;

import java.io.Serial;
import java.time.LocalDateTime;

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

/**
 * 店铺区域 实体类。
 *
 * @author zs
 * @since 2025-02-18
 */
@Data

@NoArgsConstructor
@AllArgsConstructor
@Table("tb_shop_table_area")
public class ShopTableArea implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @Id(keyType = KeyType.Auto)
    private Integer id;

    /**
     * 店铺Id
     */
    private Long shopId;

    /**
     * 排序
     */
    private Integer sort;

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

    @Column(onInsertValue = "now()")
    private LocalDateTime createdTime;

    @Column(onInsertValue = "now()", onUpdateValue = "now()")
    private LocalDateTime updatedTime;

}
