File tree Expand file tree Collapse file tree 2 files changed +17
-4
lines changed
java/ddingdong/ddingdongBE/domain/form/entity Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Original file line number Diff line number Diff line change 88import jakarta .persistence .GenerationType ;
99import jakarta .persistence .Id ;
1010import jakarta .persistence .ManyToOne ;
11+ import java .time .LocalDate ;
1112import lombok .AccessLevel ;
1213import lombok .Builder ;
1314import lombok .Getter ;
@@ -27,6 +28,15 @@ public class Form {
2728
2829 private String description ;
2930
31+ @ Column (nullable = false )
32+ private LocalDate startDate ;
33+
34+ @ Column (nullable = false )
35+ private LocalDate endDate ;
36+
37+ @ Column (nullable = false )
38+ private boolean hasInterview ;
39+
3040 @ ManyToOne (fetch = FetchType .LAZY )
3141 private Club club ;
3242
Original file line number Diff line number Diff line change 11CREATE TABLE form
22(
3- id BIGINT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
4- title VARCHAR (255 ) NOT NULL ,
5- description VARCHAR (255 ),
6- club_id BIGINT ,
3+ id BIGINT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
4+ title VARCHAR (255 ) NOT NULL ,
5+ description VARCHAR (255 ),
6+ start_date DATE NOT NULL ,
7+ end_date DATE NOT NULL ,
8+ has_interview BOOLEAN NOT NULL ,
9+ club_id BIGINT ,
710 CONSTRAINT fk_form_club FOREIGN KEY (club_id) REFERENCES club (id) ON DELETE CASCADE
811);
912
You can’t perform that action at this time.
0 commit comments