You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
909 B
41 lines
909 B
|
4 weeks ago
|
package com.mathvision.diet.entity;
|
||
|
|
|
||
|
|
import com.alibaba.fastjson2.annotation.JSONField;
|
||
|
|
import lombok.*;
|
||
|
|
|
||
|
|
import javax.persistence.*;
|
||
|
|
import java.time.Instant;
|
||
|
|
|
||
|
|
@Builder
|
||
|
|
@AllArgsConstructor
|
||
|
|
@NoArgsConstructor
|
||
|
|
@Getter
|
||
|
|
@Setter
|
||
|
|
@Entity
|
||
|
|
@Table(name = "food_mark")
|
||
|
|
public class FoodMark {
|
||
|
|
@JSONField(serialize = false)
|
||
|
|
@Id
|
||
|
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||
|
|
@Column(name = "id", nullable = false)
|
||
|
|
private Long id;
|
||
|
|
|
||
|
|
@Column(name = "`key`", nullable = false, length = 20)
|
||
|
|
private String key;
|
||
|
|
|
||
|
|
@Column(name = "name", nullable = false, length = 20)
|
||
|
|
private String value;
|
||
|
|
|
||
|
|
@JSONField(serialize = false)
|
||
|
|
@Column(name = "operate", length = 45)
|
||
|
|
private String operate;
|
||
|
|
|
||
|
|
@JSONField(serialize = false)
|
||
|
|
@Column(name = "created")
|
||
|
|
private Instant created;
|
||
|
|
|
||
|
|
@JSONField(serialize = false)
|
||
|
|
@Column(name = "modify")
|
||
|
|
private Instant modify;
|
||
|
|
|
||
|
|
}
|