Skip to content

chore: Supabase 스키마 구축 및 DB 타입 생성 환경 셋업 #30

Description

@wjswlgh96

Issue

작업 유형

  • Chore: 설정, 패키지, 기타 작업

작업 내용

  • 확정 ERD 기반 Supabase 스키마 구축분을 레포에 동기화 (마이그레이션 SQL 3건)
  • supabase gen types typescript 기반 DB 타입 자동 생성 파일 및 npm 스크립트 추가

작업 배경

  • 중간 발표(7/15) 전 백엔드 연동 시작을 위해 Supabase에 ERD 확정본을 적용함 (ENUM 7종 + 테이블 14개 + RLS + 테스트 시드)
  • 원격에만 적용된 마이그레이션을 레포에도 커밋해 팀원들이 스키마 변경 이력을 추적할 수 있게 함
  • DB 타입을 자동 생성해 RPC/쿼리 작성 시 타입 안전성 확보

To Do

  • Supabase 원격 마이그레이션 3건을 supabase/migrations/로 동기화
  • database.types.ts 생성 및 커밋
  • gen:types npm 스크립트 추가
  • ERD 문서 권장 제약 + 설계 점검 제약 적용 (add_constraints, 7건)

완료 기준

  • 레포의 마이그레이션 파일이 원격 schema_migrations 버전과 일치
  • npm run gen:types로 타입 재생성 가능

참고 자료

  • Supabase 프로젝트: syncly (teamplerun org)
  • 테스트 계정: test1test5@test.com / test1234! (user_id ...0001...0005, workspace ...1001~...1003)

예상 브랜치명

chore/#issue-number/supabase-schema

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions