MealOrder.java 1.5 KB
package com.tianting.infoloop.model.db;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @TableName meal_orders
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@TableName(value ="meal_orders")
public class MealOrder extends Model<MealOrder> implements Serializable {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private Integer enterpriseId;

    private Integer clientId;

    private Integer menuId;

    private Integer accountId;

    private Integer orderMethod;

    private Integer dinerId;

    private String dinerName;

    private String clientName;

    private String gradeName;

    private String className;

    private String studentNo;

    private LocalDateTime reserveDate;

    private String meals;

    private Integer createdBy;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    private Integer creationSource;

    private Integer updatedBy;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;

    private Integer updateSource;

    private Boolean isDeleted;
}