[RUBY] Kein Datenbankdesign, bis Secretsantas erstellt wird

Datenbank Design Hinweis:

Benutzertabelle

Column Type Options
nickname string null: false,unique: true
first_name string null: false
last_name string null: false
first_name_kana string null: false
last_name_kana string null: false
birthday date null: false
image text null: false
email string null: false,default: "", unique: true
password string null: false,default: ""

Association

Adresstabelle

Column Type Options
zipcode integer null: false
prefecture_code integer null: false
city string null: false
district string null: false
building string
room date
user references foreign_key: true

Association

Beiträge Tabelle

Column Type Options
description text null: false
image text null: false

Association

Kategorietabelle

Column Type Options
name text null: false

Association

Gruppentabelle

Column Type Options
name string null: false
budget integer null: false
exchange_date date null: false

Association

Nachrichtentabelle

Column Type Options
content text null: false
image text null: false|
user references foreign_key: true
group references foreign_key: true

Association

<! ------------->

posts_categories-Tabelle

Column Type Options
post references foreign_key: true
category references foreign_key: true

Association

groups_users Tabelle

Column Type Options
group references foreign_key: true
user references foreign_key: true

Association

posts_users Tabelle

Column Type Options
user references foreign_key: true
category references foreign_key: true

Association

Recommended Posts

Kein Datenbankdesign, bis Secretsantas erstellt wird
Bis Secretsantas erstellt wird ③ Post-Funktion (CRUD)
Bis Secretsantas gemacht ist ② Top Seite