DROP TABLE newbie_login_day;

CREATE TABLE newbie_login_day (

id integer NOT NULL,

server_id text DEFAULT ''::text,

group_id integer NOT NULL,

login_day integer NOT NULL,

order_id integer NOT NULL,

button_name integer NOT NULL,

start_date integer DEFAULT 0,

end_date integer DEFAULT 0,

min_level integer DEFAULT 0,

max_level integer DEFAULT 0,

newbie_event_mission_id integer NOT NULL,

reward text DEFAULT ''::text,

note text DEFAULT ''

);

REVOKE ALL on newbie_login_day from PUBLIC;

GRANT ALL on newbie_login_day to postgres;

GRANT ALL on newbie_login_day to spiritking;

INSERT INTO newbie_login_day VALUES (1,'-1',1,1,1,1138,0,0,1,100,1,'#:RewardGold 100:RewardItem 40362 10:::','');
INSERT INTO newbie_login_day VALUES (2,'-1',1,1,2,0,0,0,1,100,2,'#:RewardExp 100:RewardItem 40200 5:::','');
INSERT INTO newbie_login_day VALUES (3,'-1',1,1,3,0,0,0,1,100,3,'#:RewardItem 40362 10:RewardItem 40200 5:RewardItem 47271 3:RewardGold 50:RewardExp 50','');
INSERT INTO newbie_login_day VALUES (4,'-1',1,2,1,0,0,0,1,100,4,'#:RewardGold 100:RewardItem 40362 10:::','');
INSERT INTO newbie_login_day VALUES (5,'-1',1,2,2,0,0,0,1,100,5,'#:RewardExp 100:RewardItem 40200 5:::','');
INSERT INTO newbie_login_day VALUES (6,'-1',1,2,3,0,0,0,1,100,6,'#:RewardItem 40362 10:RewardItem 40200 5:RewardItem 47271 3:RewardGold 50:RewardExp 50','');
INSERT INTO newbie_login_day VALUES (7,'-1',1,3,1,0,0,0,1,100,7,'#:RewardGold 100:RewardItem 40362 10:::','');
INSERT INTO newbie_login_day VALUES (8,'-1',1,3,2,0,0,0,1,100,8,'#:RewardExp 100:RewardItem 40200 5:::','');
INSERT INTO newbie_login_day VALUES (9,'-1',1,3,3,0,0,0,1,100,9,'#:RewardItem 40362 10:RewardItem 40200 5:RewardItem 47271 3:RewardGold 50:RewardExp 50','');
INSERT INTO newbie_login_day VALUES (10,'-1',1,4,1,0,0,0,1,100,10,'#:RewardGold 100:RewardItem 40362 10:::','');
INSERT INTO newbie_login_day VALUES (11,'-1',1,4,2,0,0,0,1,100,11,'#:RewardExp 100:RewardItem 40200 5:::','');
INSERT INTO newbie_login_day VALUES (12,'-1',1,4,3,0,0,0,1,100,12,'#:RewardItem 40362 10:RewardItem 40200 5:RewardItem 47271 3:RewardGold 50:RewardExp 50','');
INSERT INTO newbie_login_day VALUES (13,'-1',1,5,1,0,0,0,1,100,13,'#:RewardGold 100:RewardItem 40362 10:::','');
INSERT INTO newbie_login_day VALUES (14,'-1',1,5,2,0,0,0,1,100,14,'#:RewardExp 100:RewardItem 40200 5:::','');
INSERT INTO newbie_login_day VALUES (15,'-1',1,5,3,0,0,0,1,100,15,'#:RewardItem 40362 10:RewardItem 40200 5:RewardItem 47271 3:RewardGold 50:RewardExp 50','');
INSERT INTO newbie_login_day VALUES (16,'-1',1,6,1,0,0,0,1,100,16,'#:RewardGold 100:RewardItem 40362 10:::','');
INSERT INTO newbie_login_day VALUES (17,'-1',1,6,2,0,0,0,1,100,17,'#:RewardExp 100:RewardItem 40200 5:::','');
INSERT INTO newbie_login_day VALUES (18,'-1',1,6,3,0,0,0,1,100,18,'#:RewardItem 40362 10:RewardItem 40200 5:RewardItem 47271 3:RewardGold 50:RewardExp 50','');
INSERT INTO newbie_login_day VALUES (19,'-1',1,7,1,0,0,0,1,100,19,'#:RewardGold 100:RewardItem 40362 10:::','');
INSERT INTO newbie_login_day VALUES (20,'-1',1,7,2,0,0,0,1,100,20,'#:RewardExp 100:RewardItem 40200 5:::','');
INSERT INTO newbie_login_day VALUES (21,'-1',1,7,3,0,0,0,1,100,21,'#:RewardItem 40362 10:RewardItem 40200 5:RewardItem 47271 3:RewardGold 50:RewardExp 50','');
