define foreign keys

This commit is contained in:
yggverse 2024-11-16 15:39:42 +02:00
parent fdc6e739b4
commit 7370815f9d
16 changed files with 59 additions and 26 deletions

View file

@ -12,7 +12,9 @@ pub fn init(tx: &Transaction) -> Result<usize, Error> {
(
`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
`app_browser_window_tab_item_id` INTEGER NOT NULL,
`title` VARCHAR(1024)
`title` VARCHAR(1024),
FOREIGN KEY (`app_browser_window_tab_item_id`) REFERENCES `app_browser_window_tab_item`(`id`)
)",
[],
)