mirror of
https://github.com/ada-dmitry/lab6.git
synced 2026-09-24 01:10:15 +00:00
ondelcascade_dish
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -8,7 +8,7 @@ class DishTable(DbTable):
|
|||||||
|
|
||||||
def columns(self):
|
def columns(self):
|
||||||
return {"id": ["serial", "PRIMARY KEY"],
|
return {"id": ["serial", "PRIMARY KEY"],
|
||||||
"cath_id": ["integer", "REFERENCES cath(id)", "NOT NULL"],
|
"cath_id": ["integer", "REFERENCES cath(id) ON DELETE CASCADE", "NOT NULL"],
|
||||||
"dish_name": ["varchar(32)", "NOT NULL"],
|
"dish_name": ["varchar(32)", "NOT NULL"],
|
||||||
"cook_time": ["interval"],
|
"cook_time": ["interval"],
|
||||||
"manual": ["text"]}
|
"manual": ["text"]}
|
||||||
|
|||||||
Reference in New Issue
Block a user