NotParcel/migrations/002_generate_hubs_table.sql
2024-12-30 11:37:46 -07:00

12 lines
703 B
SQL

CREATE TABLE IF NOT EXISTS hubs (
id CHAR(36) PRIMARY KEY DEFAULT UUID(),
ownerId BIGINT, -- Owner of the hub (Discord ID)
discordGuild BIGINT, -- Discord Guild ID
name VARCHAR(128), -- Name of the hub
shortDescription VARCHAR(256), -- Short description of the hub
longDescription TEXT, -- Long description of the hub
allowGiftPurchase BOOLEAN DEFAULT TRUE, -- Allow users to buy gifts for others on this hub.
tos TEXT DEFAULT 'This Hub does not have any Terms of Service yet. If you are the Hub owner, you can update this under settings.', -- Terms of Service
bgmId BIGINT DEFAULT NULL, -- Background Music ID
secretKey VARCHAR(128) UNIQUE NOT NULL -- Secret key for the hub to authenticate
)