-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46 from dd-jiyun/main
์ง๋ฌธ ๊ฒ์ํ (#20)
- Loading branch information
Showing
6 changed files
with
59 additions
and
8 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
Titto_Backend/src/main/java/com/example/titto_backend/questionBoard/domain/Department.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.example.titto_backend.questionBoard.domain; | ||
|
||
public enum Department { | ||
HUMANITIES, // ์ธ๋ฌธ | ||
MANAGEMANT, // ๊ฒฝ์ | ||
SOCIETY, // ์ฌํ | ||
MEDIA_CONTENT, // ๋ฏธ๋์ด ์ฝํ ์ธ | ||
FUTURE_FUSION, // ๋ฏธ๋์ตํฉ | ||
SOFEWARE // ์ํํธ์จ์ด | ||
} |
39 changes: 39 additions & 0 deletions
39
Titto_Backend/src/main/java/com/example/titto_backend/questionBoard/domain/Question.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package com.example.titto_backend.questionBoard.domain; | ||
|
||
import com.example.titto_backend.common.BaseEntity; | ||
import jakarta.persistence.Column; | ||
import jakarta.persistence.Entity; | ||
import jakarta.persistence.EnumType; | ||
import jakarta.persistence.Enumerated; | ||
import jakarta.persistence.GeneratedValue; | ||
import jakarta.persistence.GenerationType; | ||
import jakarta.persistence.Id; | ||
import jakarta.persistence.Table; | ||
import lombok.AllArgsConstructor; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Entity | ||
@Table(name = "questionPosts") | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
public class QuestionPost extends BaseEntity { | ||
|
||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
@Column(name = "questionPost_id") | ||
private Long id; | ||
|
||
@Enumerated(EnumType.STRING) | ||
@Column(name = "department") | ||
private Department department; | ||
|
||
@Column(name = "question_title", nullable = false) | ||
private String title; | ||
|
||
@Column(name = "question_content", nullable = false, columnDefinition = "TEXT") | ||
private String content; | ||
|
||
@Column(name = "image_url") | ||
private String imageUrl; | ||
|
||
} |
6 changes: 6 additions & 0 deletions
6
Titto_Backend/src/main/java/com/example/titto_backend/questionBoard/domain/Status.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package com.example.titto_backend.questionBoard.domain; | ||
|
||
public enum Status { | ||
SOLVED, // ํด๊ฒฐ๋จ | ||
UNSOLVED // ํด๊ฒฐ๋์ง ์์ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
spring: | ||
profiles: | ||
active: local | ||
include: oauth, production | ||
include: oauth | ||
|
||
# DB | ||
datasource: | ||
url: ${DB_JDBC_URL} | ||
|