DROP TABLE online_gacha;
CREATE TABLE online_gacha (
id integer NOT NULL,
server integer NOT NULL,
banner_layout text DEFAULT '',
banner_title text DEFAULT '',
banner_character text DEFAULT '',
banner_lottery text DEFAULT '',
goal integer DEFAULT 0,
days integer NOT NULL,
accumulated_group integer NOT NULL,
grab_bag text NOT NULL,
max_gacha integer NOT NULL,
note text DEFAULT ''
);

REVOKE ALL on online_gacha from PUBLIC;
GRANT ALL on online_gacha to postgres;
GRANT ALL on online_gacha to spiritking;
INSERT INTO online_gacha VALUES (2,-1,'GachaFreeBG','19440','GachaFreeSign','19441',40001,7,2,'55572;55574;55576',300,'');
