orbit

Tables (5)

Untitled

    project_assets (파일)

    • file_id (파일 키) — text — Primary key — NOT NULL — file_{UUID}
    • project_id (프로젝트 ID) — text — Foreign key → projects.project_id — NOT NULL — project_{UUID} 형태
    • storage_key (스토리지 저장위치) — text — NOT NULL — projects/{projectId}/assets/{fileId}-{safeOriginalName} 형태
    • original_name (파일 원본 이름) — text — NOT NULL
    • mime_type (파일 타입) — text — NOT NULL — image/png audio/webm 등등
    • size (파일 크기) — int4 — NOT NULL — int4 - 4GB까지 저장 가능
    • url (파일 url 경로) — text — NOT NULL
    • purpose (파일 용도) — text — NOT NULL — pptx-import reference-material rehearsal-audio export-result report-result thumbnail design-asset
    • status (업로드 상태) — text — NOT NULL
    • created_at (레코드 생성 시각) — timestampz — NOT NULL
    • uploaded_at (업로드 처리 시각) — timestampz
    • deleted_at (파일 삭제 시점) — timestampz

    project_members (프로젝트에 속한 멤버)

    • project_id (프로젝트 ID) — text — Foreign key → projects.project_id — NOT NULL — project_{UUID} 형태
    • user_id (유저 키) — text — Foreign key → users.user_id — NOT NULL — user_UUID 형태
    • role (권한) — text — NOT NULL — owner, editor, viewer
    • status (권한 상태) — text — NOT NULL — pending, accepted, rejected
    • created_at (멤버 요청 시각) — timestampz — NOT NULL — 멤버 요청 시각

    projects (프로젝트)

    • project_id (프로젝트 ID) — text — Primary key — NOT NULL — project_{UUID} 형태
    • created_by (유저 키) — text — Foreign key → users.user_id — NOT NULL — user_UUID 형태
    • workspace_id (워크스페이스 ID) — text — 삭제 예정, workspace 자체가 이번 개발 예정에 존재하지 않음
    • title (ppt 이름) — text
    • created_at (생성 시각) — timestampz

    users (유저)

    • user_id (유저 키) — text — Primary key — NOT NULL — user_UUID 형태
    • email (아이디) — text — NOT NULL — @ 기본 원칙
    • password_hash (패스워드) — text — NOT NULL — argon2id 인증방식
    • created_at (생성 시각) — timestampz — NOT NULL — 한국 표준 시간을 따름
    • updated_at (업데이트 시각) — timestampz — NOT NULL — 업데이트 시각