mirror of
https://github.com/Mezeporta/Erupe.git
synced 2025-12-23 04:16:33 +01:00
Doing the PR for wish, it's his code. Also this is the one used by Chakratos' Save Manager. P.S.: Sadly it is still crashing for some reason.
26 lines
711 B
PL/PgSQL
26 lines
711 B
PL/PgSQL
BEGIN;
|
|
CREATE TABLE public.distribution
|
|
(
|
|
id serial NOT NULL PRIMARY KEY,
|
|
character_id int,
|
|
type int NOT NULL,
|
|
deadline timestamp without time zone,
|
|
event_name text NOT NULL DEFAULT 'GM Gift!',
|
|
description text NOT NULL DEFAULT '~C05You received a gift!',
|
|
times_acceptable int NOT NULL DEFAULT 1,
|
|
min_hr int NOT NULL DEFAULT 65535,
|
|
max_hr int NOT NULL DEFAULT 65535,
|
|
min_sr int NOT NULL DEFAULT 65535,
|
|
max_sr int NOT NULL DEFAULT 65535,
|
|
min_gr int NOT NULL DEFAULT 65535,
|
|
max_gr int NOT NULL DEFAULT 65535,
|
|
data bytea NOT NULL
|
|
);
|
|
|
|
CREATE TABLE public.distributions_accepted
|
|
(
|
|
distribution_id int,
|
|
character_id int
|
|
);
|
|
|
|
END; |