DROP TABLE day_pass;

CREATE TABLE day_pass (

id integer NOT NULL,

server_id text DEFAULT ''::text,

group_id integer NOT NULL,

button_name integer NOT NULL,

layout_icon text DEFAULT ''::text,

explain integer NOT NULL,

point integer NOT NULL,

login_day integer NOT NULL,

reward text DEFAULT ''::text,

promotion_icon text DEFAULT ''::text,

left_model text DEFAULT ''::text,

right_model text DEFAULT ''::text,

left_scale float NOT NULL,

right_scale float NOT NULL,

left_high float NOT NULL,

right_high float NOT NULL,

note text DEFAULT ''

);

REVOKE ALL on day_pass from PUBLIC;

GRANT ALL on day_pass to postgres;

GRANT ALL on day_pass to spiritking;

INSERT INTO day_pass VALUES (1,'-1',1,14606,'banner03;banner04',14612,30,1,'#:48137 1:40458 2:41909 3:48907 30::::','14608;14609','1 43711','1 43711',0,0,0,0,'');
INSERT INTO day_pass VALUES (2,'-1',1,14606,'banner03;banner04',14612,30,2,'#:31300 20:31303 20::::::','14608;14609','1 43711','1 43711',0,0,0,0,'');
INSERT INTO day_pass VALUES (3,'-1',1,14606,'banner03;banner04',14612,30,3,'#:43711 1:54855 1::::::','14608;14609','1 43711','1 43711',0,0,0,0,'');
