This commit is contained in:
Aaron Kimbre
2022-12-20 08:14:58 -06:00
parent 192948a87f
commit 30fbdd3956
13 changed files with 237 additions and 10 deletions

View File

@@ -0,0 +1,15 @@
CREATE TABLE IF NOT EXISTS guilds (
id BIGINT NOT NULL PRIMARY KEY,
name VARCHAR(35) NOT NULL,
owner BIGINT NOT NULL REFERENCES charinfo(id),
motd TEXT,
uscore INT NOT NULL DEFAULT 0,
created BIGINT UNSIGNED NOT NULL DEFAULT 0
);
CREATE TABLE IF NOT EXISTS guild_members (
guild_id BIGINT NOT NULL REFERENCES guilds(id),
character_id BIGINT NOT NULL REFERENCES charinfo(id),
rank INT NOT NULL DEFAULT 4,
joined BIGINT UNSIGNED NOT NULL DEFAULT 0
);