temp

Tables (5)

authority (권한)

  • PK (id) — BigInt — Primary key — NOT NULL
  • Authority (authority) — NOT NULL — 권한 관리용 필드크게1. Admin2. User로 분리 확장성을 생각한다면 테이블로 아니라면 그냥 member필드에 박아넣기

member (회원)

  • PK (id) — BigInt — Primary key — NOT NULL
  • auth_id (authority_id) — BigInt — Foreign key → authority.PK — NOT NULL
  • team_pk (team_id) — Foreign key → team.PK — NOT NULL
  • username — varchar — NOT NULL — 로그인용으로만 사용할지, 표시할 이름으로도 사용할지 정해야 함
  • password — varchar — NOT NULL
  • profile_image (profile) — imageurl만?

spending_resolution (지출결의)

  • pk (id) — Primary key — NOT NULL
  • preservation_period — NOT NULL
  • document_number (dockument_number) — NOT NULL
  • created_at — NOT NULL
  • updated_at — NOT NULL

spending_resolution_type (지출결의_문서구분)

  • pk (id) — Primary key — NOT NULL
  • type — String — NOT NULL

team (팀)

  • PK (id) — Primary key — NOT NULL
  • team — NOT NULL — team의 이름