ER図

erDiagram
  MEMBER ||--o{ TRIAL : has
  MEMBER ||--o{ COURSE_CONTRACT : has
  MEMBER ||--o{ ATTENDANCE : has
  MEMBER ||--o{ STATUS_HISTORY : has
  TRAINER ||--o{ ATTENDANCE : runs

  MEMBER {
    string member_id PK
    string name
    string phone
    string channel
  }

  TRIAL {
    string trial_id PK
    date reserved_at
    date visited_at
    string result
  }

  COURSE_CONTRACT {
    string contract_id PK
    date start_date
    date end_date
    string course_type
    string status
  }

  ATTENDANCE {
    string attendance_id PK
    date date
    string time_slot
  }

  STATUS_HISTORY {
    string history_id PK
    date changed_at
    string status
  }

  TRAINER {
    string trainer_id PK
    string name
  }

ビューのサンプル

Untitled

Untitled

Untitled

テーブル群


Member(会員)

Trial(体験予約・体験結果)