| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- CREATE SEQUENCE wl_comment_seq;
- CREATE TABLE wl_comment (
- id int check (id > 0) NOT NULL DEFAULT NEXTVAL ('wl_comment_seq'),
- user_id int DEFAULT NULL,
- comment text,
- insertedAt timestamp(0) without time zone NOT NULL DEFAULT CURRENT_TIMESTAMP,
- ip varchar(100) DEFAULT '',
- link varchar(255) DEFAULT NULL,
- mail varchar(255) DEFAULT NULL,
- nick varchar(255) DEFAULT NULL,
- pid int DEFAULT NULL,
- rid int DEFAULT NULL,
- sticky numeric DEFAULT NULL,
- status varchar(50) NOT NULL DEFAULT '',
- "like" int DEFAULT NULL,
- ua text,
- url varchar(255) DEFAULT NULL,
- createdAt timestamp(0) without time zone NULL DEFAULT CURRENT_TIMESTAMP,
- updatedAt timestamp(0) without time zone NULL DEFAULT CURRENT_TIMESTAMP,
- PRIMARY KEY (id)
- ) ;
- CREATE SEQUENCE wl_counter_seq;
- CREATE TABLE wl_counter (
- id int check (id > 0) NOT NULL DEFAULT NEXTVAL ('wl_counter_seq'),
- time int DEFAULT NULL,
- reaction0 int DEFAULT NULL,
- reaction1 int DEFAULT NULL,
- reaction2 int DEFAULT NULL,
- reaction3 int DEFAULT NULL,
- reaction4 int DEFAULT NULL,
- reaction5 int DEFAULT NULL,
- reaction6 int DEFAULT NULL,
- reaction7 int DEFAULT NULL,
- reaction8 int DEFAULT NULL,
- url varchar(255) NOT NULL DEFAULT '',
- createdAt timestamp(0) without time zone NULL DEFAULT CURRENT_TIMESTAMP,
- updatedAt timestamp(0) without time zone NULL DEFAULT CURRENT_TIMESTAMP,
- PRIMARY KEY (id)
- ) ;
- CREATE SEQUENCE wl_users_seq;
- CREATE TABLE wl_users (
- id int check (id > 0) NOT NULL DEFAULT NEXTVAL ('wl_users_seq'),
- display_name varchar(255) NOT NULL DEFAULT '',
- email varchar(255) NOT NULL DEFAULT '',
- password varchar(255) NOT NULL DEFAULT '',
- type varchar(50) NOT NULL DEFAULT '',
- label varchar(255) DEFAULT NULL,
- url varchar(255) DEFAULT NULL,
- avatar varchar(255) DEFAULT NULL,
- github varchar(255) DEFAULT NULL,
- twitter varchar(255) DEFAULT NULL,
- facebook varchar(255) DEFAULT NULL,
- google varchar(255) DEFAULT NULL,
- weibo varchar(255) DEFAULT NULL,
- qq varchar(255) DEFAULT NULL,
- "2fa" varchar(32) DEFAULT NULL,
- createdAt timestamp(0) without time zone NULL DEFAULT CURRENT_TIMESTAMP,
- updatedAt timestamp(0) without time zone NULL DEFAULT CURRENT_TIMESTAMP,
- PRIMARY KEY (id)
- ) ;
|