SQL
CREATE TABLE "recipe_actions" (
id CHAR(32) NOT NULL,
group_id CHAR(32) NOT NULL,
action_type VARCHAR NOT NULL,
title VARCHAR NOT NULL,
url VARCHAR NOT NULL,
created_at DATETIME,
update_at DATETIME,
household_id CHAR(32),
PRIMARY KEY (id),
CONSTRAINT fk_recipe_actions_household_id FOREIGN KEY(household_id) REFERENCES households (id),
FOREIGN KEY(group_id) REFERENCES groups (id)
)
Columns
| Column | Data type | Allow null | Primary key | Actions |
|---|---|---|---|---|
id |
CHAR(32) |
✓ | Rename | Drop | |
group_id |
CHAR(32) |
Rename | Drop | ||
action_type |
VARCHAR |
Rename | Drop | ||
title |
VARCHAR |
Rename | Drop | ||
url |
VARCHAR |
Rename | Drop | ||
created_at |
DATETIME |
✓ | Rename | Drop | |
update_at |
DATETIME |
✓ | Rename | Drop | |
household_id |
CHAR(32) |
✓ | Rename | Drop |
Foreign Keys
| Column | Destination |
|---|---|
group_id |
groups.id |
household_id |
households.id |
Indexes
| Name | Columns | Unique | SQL | Drop? |
|---|---|---|---|---|
| ix_recipe_actions_action_type |
action_type
|
SQL | Drop | |
| ix_recipe_actions_created_at |
created_at
|
SQL | Drop | |
| ix_recipe_actions_group_id |
group_id
|
SQL | Drop | |
| ix_recipe_actions_household_id |
household_id
|
SQL | Drop | |
| ix_recipe_actions_title |
title
|
SQL | Drop | |
| sqlite_autoindex_recipe_actions_1 |
id
|
✓ | SQL | Drop |