DROP TABLE growthfund;
CREATE TABLE growthfund (
group_id integer NOT NULL,
reward_order integer DEFAULT 0,
condition integer NOT NULL,
reward_item_id1 integer DEFAULT 0,
reward_item_amount1 integer DEFAULT 0,
reward_item_id2 integer DEFAULT 0,
reward_item_amount2 integer DEFAULT 0,
reward_item_id3 integer DEFAULT 0,
reward_item_amount3 integer DEFAULT 0,
reward_item_id4 integer DEFAULT 0,
reward_item_amount4 integer DEFAULT 0,
reward_item_id5 integer DEFAULT 0,
reward_item_amount5 integer DEFAULT 0,
reward_icon text DEFAULT '',
note text DEFAULT ''
);

REVOKE ALL on growthfund from PUBLIC;
GRANT ALL on growthfund to postgres;
GRANT ALL on growthfund to spiritking;
INSERT INTO growthfund VALUES (1,1,10,41113,25,48810,25,41107,10,54623,1,0,0,'gfundicon1','');
INSERT INTO growthfund VALUES (1,2,16,55181,5,41109,200,41110,200,54622,1,0,0,'gfundicon2','');
INSERT INTO growthfund VALUES (1,3,20,41384,1,54265,3,54657,3,54621,1,0,0,'gfundicon1','');
INSERT INTO growthfund VALUES (1,4,25,48697,1,54265,5,54657,5,54620,1,0,0,'gfundicon1','');
INSERT INTO growthfund VALUES (1,5,31,55181,5,48694,1,48907,50,54624,1,0,0,'gfundicon2','');
INSERT INTO growthfund VALUES (1,6,35,48760,1,48694,1,7667,3,54619,1,0,0,'gfundicon1','');
INSERT INTO growthfund VALUES (1,7,40,48698,1,48694,1,42336,1,54619,1,0,0,'gfundicon1','');
