package com.fizz.business.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

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


@Data
@TableName("steel_grade_info")
public class SteelGradeInfo implements Serializable {

    @TableId(value = "steel_grade_id", type = IdType.AUTO)
    @Schema(description = "钢种ID")
    private Integer steelGradeId;

    @TableField("steel_grade_name")
    @Schema(description = "钢种名称")
    private String steelGradeName;

    @TableField("steel_grade_des")
    @Schema(description = "钢种描述")
    private String steelGradeDes;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

    // Getters and Setters
}