yugioh-binder/migrations/2025-03-13-161839_create_cards/up.sql

8 lines
383 B
SQL

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
)