Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DDL 및 더미데이터 쿼리 작성 #118

Closed
3 tasks done
LeeHanEum opened this issue Nov 29, 2024 · 0 comments · Fixed by #121
Closed
3 tasks done

DDL 및 더미데이터 쿼리 작성 #118

LeeHanEum opened this issue Nov 29, 2024 · 0 comments · Fixed by #121
Assignees
Labels
✨feature create new feature

Comments

@LeeHanEum
Copy link
Member

LeeHanEum commented Nov 29, 2024

Describe

데이터베이스 스키마를 생성하는 CREATE DDL문과 더미데이터 INSERT 쿼리를 작성합니다.

Tasks

  • resource/db 디렉토리 하위에 schema.sql data.sql 파일 생성
  • schema.sql 파일에 CREATE 문 작성 (JPA가 자동 생성 해주는 쿼리와 동일한지 확인)
  • data.sql 파일에 INSERT 쿼리 작성

ETC

  1. 더미데이터는 예시 데이터를 보여주기 위한 목적이므로 각 테이블마다 2~5개 정도만 작성합니다.
  2. 더미데이터는 애플리케이션 실행 시 자동 삽입하지 않을 예정입니다. (application.yml 설정 불필요)
  3. 추후 스키마 구조가 변경 될 경우 더미데이터 수정에 대한 이슈 생성 후 작업 진행해주세요
@LeeHanEum LeeHanEum added the ✨feature create new feature label Nov 29, 2024
@LeeShinHaeng LeeShinHaeng linked a pull request Nov 29, 2024 that will close this issue
LeeShinHaeng added a commit that referenced this issue Dec 1, 2024
* feat: schema.sql 생성 및 CREATE 문 작성

* fix: ENUM으로 데이터 생성 시 오류 -> varchar 타입으로 생성

* fix: 더미 데이터 INSERT

* fix: swagger와 충돌 방지를 위한 user 데이터 변경

* fix: 데이터 무결성을 위한 수정 및 예시 데이터 변경

* fix: 엔티티와의 통일을 위한 인덱스 제거
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨feature create new feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants