File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
resources/gaebaljip-develop-environment/mariadb-init
src/main/java/com/gaebaljip/exceed/application/domain/meal Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ CREATE TABLE `MEAL_FOOD_TB`
73
73
` MEAL_FK` bigint (20 ) DEFAULT NULL ,
74
74
` MEAL_FOOD_MULTIPLE` double DEFAULT NULL ,
75
75
` MEAL_FOOD_G` int DEFAULT NULL ,
76
- ` MEAL_FOOD_UNIT_TYPE` varchar (255 ),
76
+ ` MEAL_FOOD_UNIT_TYPE` varchar (255 ) NOT NULL ,
77
77
PRIMARY KEY (` MEAL_FOOD_PK` ),
78
78
FOREIGN KEY (` FOOD_FK` ) REFERENCES ` FOOD_TB` (` FOOD_PK` ),
79
79
FOREIGN KEY (` MEAL_FK` )REFERENCES ` MEAL_TB` (` MEAL_PK` )
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ public class Unit {
27
27
private Double multiple ;
28
28
29
29
@ Enumerated (EnumType .STRING )
30
- @ Column (name = ENTITY_PREFIX + "_UNIT_TYPE" )
30
+ @ Column (name = ENTITY_PREFIX + "_UNIT_TYPE" , nullable = false )
31
31
private UnitType unitType ;
32
32
33
33
public static Unit createUnit (Integer g , Double multiple ) {
You can’t perform that action at this time.
0 commit comments