mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-10-14 19:38:08 +00:00
WIP
no crashes
This commit is contained in:
@@ -4,13 +4,13 @@ CREATE TABLE IF NOT EXISTS guilds (
|
||||
owner_id BIGINT NOT NULL REFERENCES charinfo(id) ON DELETE CASCADE,
|
||||
motd TEXT,
|
||||
reputation INT NOT NULL DEFAULT 0,
|
||||
created BIGINT UNSIGNED NOT NULL DEFAULT 0
|
||||
created TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP()
|
||||
);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS guild_members (
|
||||
guild_id BIGINT NOT NULL REFERENCES guilds(id) ON DELETE CASCADE,
|
||||
character_id BIGINT NOT NULL REFERENCES charinfo(id) ON DELETE CASCADE,
|
||||
rank INT NOT NULL DEFAULT 4,
|
||||
joined BIGINT UNSIGNED NOT NULL DEFAULT 0
|
||||
joined TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP(),
|
||||
PRIMARY KEY (guild_id, character_id)
|
||||
);
|
Reference in New Issue
Block a user