feat(card_db): Switch to fully-fledged diesel-based sqlite db
This commit is contained in:
parent
7e9f0ff128
commit
2bb09cbe54
14 changed files with 361 additions and 148 deletions
1
migrations/2025-03-13-161839_create_cards/down.sql
Normal file
1
migrations/2025-03-13-161839_create_cards/down.sql
Normal file
|
@ -0,0 +1 @@
|
|||
-- This file should undo anything in `up.sql`
|
7
migrations/2025-03-13-161839_create_cards/up.sql
Normal file
7
migrations/2025-03-13-161839_create_cards/up.sql
Normal file
|
@ -0,0 +1,7 @@
|
|||
CREATE TABLE cards (
|
||||
password PRIMARY KEY,
|
||||
name VARCHAR NOT NULL,
|
||||
description TEXT NOT NULL,
|
||||
frame TEXT CHECK(frame IN ('normal', 'effect', 'ritual', 'fusion', 'synchro', 'xyz', 'link', 'normal_pendulum', 'effect_pendulum', 'ritual_pendulum', 'fusion_pendulum', 'synchro_pendulum', 'xyz_pendulum', 'spell', 'trap', 'token')) NOT NULL,
|
||||
image TEXT
|
||||
)
|
Loading…
Add table
Add a link
Reference in a new issue