erDiagram
"accounts" }o--|| "users" : "FOREIGN KEY (user_id) REFERENCES users (id)"
"contest_team_user_belongings" }o--|| "users" : "FOREIGN KEY (user_id) REFERENCES users (id)"
"group_user_belongings" }o--|| "users" : "FOREIGN KEY (user_id) REFERENCES users (id)"
"project_members" }o--|| "users" : "FOREIGN KEY (user_id) REFERENCES users (id)"
"users" {
char_36_ id PK
text description
tinyint_1_ check
varchar_32_ name
tinyint_1_ state
datetime_6_ created_at
datetime_6_ updated_at
}
"accounts" {
char_36_ id PK
tinyint_1_ type
varchar_256_ name
text url
char_36_ user_id FK
datetime_6_ created_at
datetime_6_ updated_at
}
"contest_team_user_belongings" {
char_36_ team_id PK
char_36_ user_id PK
datetime_6_ created_at
datetime_6_ updated_at
}
"group_user_belongings" {
char_36_ user_id PK
char_36_ group_id PK
smallint_4_ since_year
tinyint_1_ since_semester
smallint_4_ until_year
tinyint_1_ until_semester
datetime_6_ created_at
datetime_6_ updated_at
}
"project_members" {
char_36_ project_id PK
char_36_ user_id PK
smallint_4_ since_year
tinyint_1_ since_semester
smallint_4_ until_year
tinyint_1_ until_semester
datetime_6_ created_at
datetime_6_ updated_at
}