sato-mh / savoten

We want to make a voting system that can be used easily.
MIT License
0 stars 1 forks source link

DB設計する #11

Closed iamsmith06 closed 6 years ago

iamsmith06 commented 6 years ago

Table設計

Name Type Description
id int primarykey(auto increment)
name string
permission int
email string
created_at date
updated_at date
deleted_at date
Name Type Description
id int primarykey(auto increment)
name string
start date
end date
description string
is_anonymous boolean
created_at date
updated_at date
deleted_at date
Name Type Description
id int primarykey(auto increment)
name string
description string
seats int numnber of winning people
max_choice int
min_choice int
event_id int foreign key restriction
Name Type Description
id int primarykey(auto increment)
event_item_id int foreign key restriction
user_id int foreign key restriction
description string
Name Type Description
id int primarykey(auto increment)
event_id int foreign key restriction
user_id int foreign key restriction
created_at date
Name Type Description
id int primarykey(auto increment)
vote_id int foreign key restriction
candidate_id int foreign key restriction
conhumi commented 6 years ago

https://github.com/sato-mh/savoten/wiki

に記述したのでクローズします。