mirror of
https://forge.murkfall.net/bluesaxman/deckard-and-company.git
synced 2026-03-13 00:44:20 -06:00
added decks table
This commit is contained in:
@@ -11,14 +11,22 @@ create table sessions (
|
||||
);
|
||||
create table locations (
|
||||
locationID UUID PRIMARY KEY,
|
||||
locationKey VARCHAR (256) NOT NULL,
|
||||
sessionID UUID REFERENCES sessions(sessionID),
|
||||
locationType text CHECK (locationType = 'deck' or 'hand' or 'discard'),
|
||||
showPublic boolean NOT NULL
|
||||
);
|
||||
create table decks (
|
||||
deckID UUID PRIMPARY KEY,
|
||||
deckKey VARCHAR (256) NOT NULL,
|
||||
sessionID UUID REFERENCES sessions(sessionID),
|
||||
locationID UUID REFERENCES locations(locationID)
|
||||
);
|
||||
create table cards (
|
||||
cardID UUID PRIMARY KEY
|
||||
sessionID UUID REFERENCES sessions(sessionID),
|
||||
locationID UUID REFERENCES locations(locationID),
|
||||
deckID UUID REFERENCES decks(deckID),
|
||||
cardContent text NOT NULL,
|
||||
position integer NOT NULL
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user