Skip to content

Commit

Permalink
Merge pull request #33 from ri-naa/feat/message-3
Browse files Browse the repository at this point in the history
[feat] 재난 퀴즈 엔티티 생성 #32
  • Loading branch information
ri-naa authored Jan 12, 2024
2 parents 539deed + aa90f71 commit eab23f1
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 eab23f1

Please sign in to comment.