Skip to content

Commit

Permalink
[feat] 재난 퀴즈 엔티티 생성 GDSC-snowflowerthon#32
Browse files Browse the repository at this point in the history
  • Loading branch information
ri-naa committed Jan 12, 2024
1 parent 539deed commit aa90f71
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/main/java/com/ALGo/ALGo_server/entity/Quiz.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package com.ALGo.ALGo_server.entity;

import jakarta.persistence.*;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Entity
@Getter
@NoArgsConstructor
public class Quiz {

@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long quiz_id;

@Column(nullable = false)
private String question;

@Column(nullable = false)
private boolean answer;

}

0 comments on commit aa90f71

Please sign in to comment.