implement account management
This commit is contained in:
parent
dbcac84794
commit
3e249e0a0d
8 changed files with 349 additions and 21 deletions
11
migrations/20250206105906_initial.sql
Normal file
11
migrations/20250206105906_initial.sql
Normal file
|
@ -0,0 +1,11 @@
|
|||
-- Add migration script here
|
||||
CREATE TABLE accounts (account_id VARCHAR(10) PRIMARY KEY);
|
||||
|
||||
CREATE TABLE caught_fish (
|
||||
id INTEGER PRIMARY KEY,
|
||||
account_id VARCHAR(10),
|
||||
fish_id INTEGER,
|
||||
FOREIGN KEY (account_id) REFERENCES accounts (account_id) ON DELETE CASCADE ON UPDATE NO ACTION
|
||||
);
|
||||
|
||||
CREATE INDEX fish_accounts ON caught_fish (account_id);
|
Loading…
Add table
Add a link
Reference in a new issue