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

데이터베이스 스키마 및 ORM 연결 #23

Merged
merged 4 commits into from
May 28, 2024

Conversation

howons
Copy link
Owner

@howons howons commented May 27, 2024

구현 내용

  • 데이터베이스의 스키마를 작성합니다.
    • Auth.js 연결을 고려해 User와 Account를 선언합니다.
    • Post와 Comment는 필요할 것 같은 column들을 초안으로 작성했습니다.
  • Kysely ORM을 데이터 베이스에 연결했습니다.
    • TypeScript 호환성이 있습니다.
    • 함수형으로 연결되어 자동완성으로 사용하기 편하고 가독성이 좋습니다.
  • seed 실행 script를 ts-node로 수정합니다.
    • 직접 ts-node로 실행하는 것은 node 16v 이상 버전에서 오류가 있어서 node에 loader로 추가합니다.
    • 참고 이슈

이슈 번호

@howons howons added the small ticket 단일 작업 설정용 label May 27, 2024
@howons howons added this to the 3차 스프린트 milestone May 27, 2024
@howons howons self-assigned this May 27, 2024
@howons howons linked an issue May 27, 2024 that may be closed by this pull request
Copy link

vercel bot commented May 27, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
patda ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 28, 2024 9:28am

@howons howons merged commit 7a9d3b6 into develop May 28, 2024
3 checks passed
@howons howons deleted the 22-데이터베이스-스키마 branch May 28, 2024 09:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
small ticket 단일 작업 설정용
Projects
None yet
Development

Successfully merging this pull request may close these issues.

데이터베이스 스키마 작성 및 설정
1 participant