implement account management

This commit is contained in:
insects 2025-02-06 13:28:26 +01:00
parent dbcac84794
commit 3e249e0a0d
8 changed files with 349 additions and 21 deletions

View 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);