(data): Add LionGem audit log database table.

This commit is contained in:
JetRaidz
2022-03-23 21:02:01 +13:00
parent 61f22b3d4f
commit 08eb9e8890

View File

@@ -802,4 +802,18 @@ create TABLE topgg(
CREATE INDEX topgg_userid_timestamp ON topgg (userid, boostedTimestamp);
-- }}}
-- LionGem audit log {{{
CREATE TABLE gem_transactions(
transactionid SERIAL PRIMARY KEY,
actorid BIGINT NOT NULL,
targetid BIGINT NOT NULL,
amount INTEGER NOT NULL,
total INTEGER NOT NULL,
reason TEXT NOT NULL,
note TEXT,
gift BOOLEAN DEFAULT FALSE,
_timestamp TIMESTAMPTZ DEFAULT now()
);
-- }}}
-- vim: set fdm=marker: