From 08eb9e8890f42eada461ec9e09dfa064bf7e3dca Mon Sep 17 00:00:00 2001 From: JetRaidz Date: Wed, 23 Mar 2022 21:02:01 +1300 Subject: [PATCH] (data): Add LionGem audit log database table. --- data/schema.sql | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/data/schema.sql b/data/schema.sql index 640a3c39..330b078c 100644 --- a/data/schema.sql +++ b/data/schema.sql @@ -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: