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

@ -10,7 +10,9 @@ pub fn init(tx: &Transaction) -> Result<usize, Error> {
"CREATE TABLE IF NOT EXISTS `app_browser_window`
(
`id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
`app_browser_id` INTEGER NOT NULL
`app_browser_id` INTEGER NOT NULL,
FOREIGN KEY (`app_browser_id`) REFERENCES `app_browser`(`id`)
)",
[],
)