generated from HoloTech/holotech-plugin-template
data: Add webhook logging and modrole
This commit is contained in:
@@ -7,7 +7,7 @@ DO $$
|
||||
$$ LANGUAGE plpgsql;
|
||||
|
||||
-- Plugin version history
|
||||
INSERT INTO version_history (component, from_version, to_version, author) VALUES ('PLUSCAMPAIGN', 0, 1, 'Initial Creation');
|
||||
INSERT INTO version_history (component, from_version, to_version, author) VALUES ('REWARDCAMPAIGN', 0, 1, 'Initial Creation');
|
||||
|
||||
|
||||
CREATE TABLE campaigns(
|
||||
@@ -15,6 +15,8 @@ CREATE TABLE campaigns(
|
||||
communityid INTEGER NOT NULL REFERENCES communities(communityid) ON DELETE CASCADE ON UPDATE CASCADE,
|
||||
target_rewards INTEGER,
|
||||
campaign_name TEXT NOT NULL,
|
||||
moderator_role_id BIGINT,
|
||||
logging_webhook_url TEXT,
|
||||
started_at TIMESTAMPTZ,
|
||||
completed_at TIMESTAMPTZ,
|
||||
created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
|
||||
@@ -33,6 +35,8 @@ CREATE TABLE campaign_rewards_earned(
|
||||
fulfilled_at TIMESTAMPTZ,
|
||||
fulfilled_note TEXT,
|
||||
modnote TEXT,
|
||||
reference TEXT,
|
||||
logged_messageid BIGINT,
|
||||
earned_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
|
||||
earned_reason TEXT NOT NULL,
|
||||
_timestamp TIMESTAMPTZ NOT NULL DEFAULT NOW()
|
||||
|
||||
Reference in New Issue
Block a user