SQL
CREATE TABLE group_preferences (
created_at DATETIME,
update_at DATETIME,
id CHAR(32) NOT NULL,
group_id CHAR(32) NOT NULL,
private_group BOOLEAN,
first_day_of_week INTEGER,
recipe_public BOOLEAN,
recipe_show_nutrition BOOLEAN,
recipe_show_assets BOOLEAN,
recipe_landscape_view BOOLEAN,
recipe_disable_comments BOOLEAN,
recipe_disable_amount BOOLEAN,
PRIMARY KEY (id),
FOREIGN KEY(group_id) REFERENCES groups (id)
)
Columns
| Column | Data type | Allow null | Primary key | Actions |
|---|---|---|---|---|
created_at |
DATETIME |
✓ | Rename | Drop | |
update_at |
DATETIME |
✓ | Rename | Drop | |
id |
CHAR(32) |
✓ | Rename | Drop | |
group_id |
CHAR(32) |
Rename | Drop | ||
private_group |
BOOLEAN |
✓ | Rename | Drop | |
first_day_of_week |
INTEGER |
✓ | Rename | Drop | |
recipe_public |
BOOLEAN |
✓ | Rename | Drop | |
recipe_show_nutrition |
BOOLEAN |
✓ | Rename | Drop | |
recipe_show_assets |
BOOLEAN |
✓ | Rename | Drop | |
recipe_landscape_view |
BOOLEAN |
✓ | Rename | Drop | |
recipe_disable_comments |
BOOLEAN |
✓ | Rename | Drop | |
recipe_disable_amount |
BOOLEAN |
✓ | Rename | Drop |
Foreign Keys
| Column | Destination |
|---|---|
group_id |
groups.id |
Indexes
| Name | Columns | Unique | SQL | Drop? |
|---|---|---|---|---|
| ix_group_preferences_created_at |
created_at
|
SQL | Drop | |
| ix_group_preferences_group_id |
group_id
|
SQL | Drop | |
| sqlite_autoindex_group_preferences_1 |
id
|
✓ | SQL | Drop |