create table "Praise" ( ); create table "Random" ( ); create table "_Visit" ( ); create table "Method" ( ); create table "Document" ( id bigint, debug smallint, "userId" bigint, "testAccountId" bigint, version smallint, name varchar(100), type varchar(5), url varchar(250), request text, apijson text, sqlauto text, standard text, header text, date timestamp, detail text ); create table apijson_privacy ( id bigint not null primary key, certified smallint not null, phone varchar(64) not null, balance numeric(10, 2) not null, _password varchar(20) not null, "_payPassword" varchar(32) not null ); comment on table apijson_privacy is 'ç¨æ·éç§ä¿¡æ¯è¡¨ã\n对å®å ¨è¦æ±é«ï¼ä¸æ³æ³æ¼çå®åç§°ã对å¤å称为 Privacy'; comment on column apijson_privacy.id is 'å¯ä¸æ è¯'; comment on column apijson_privacy.certified is '已认è¯'; comment on column apijson_privacy.phone is 'ææºå·ï¼ä» æ¯æ 11 使°çã䏿¯æ +86 è¿ç§å½å®¶å°åºå¼å¤´çãå¦æè¦æ¯æå°±æ¹ä¸º VARCHAR(14)'; comment on column apijson_privacy.balance is 'ä½é¢'; comment on column apijson_privacy._password is 'ç»å½å¯ç '; comment on column apijson_privacy."_payPassword" is 'æ¯ä»å¯ç '; create index "phone_UNIQUE" on apijson_privacy (phone); create table apijson_user ( id bigint not null primary key, sex smallint not null, name varchar(20), tag varchar(45), head varchar(300), "contactIdList" json, "pictureList" json, date timestamp(6) ); comment on table apijson_user is 'ç¨æ·å ¬å¼ä¿¡æ¯è¡¨ã对å®å ¨è¦æ±é«ï¼ä¸æ³æ³æ¼çå®åç§°ã对å¤å称为 User'; comment on column apijson_user.id is 'å¯ä¸æ è¯'; comment on column apijson_user.sex is 'æ§å«ï¼ 0-ç· 1-女'; comment on column apijson_user.name is 'åç§°'; comment on column apijson_user.tag is 'æ ç¾'; comment on column apijson_user.head is '头åurl'; comment on column apijson_user."contactIdList" is 'è系人idå表'; comment on column apijson_user."pictureList" is 'ç §çå表'; comment on column apijson_user.date is 'åå»ºæ¥æ'; create table "Comment" ( id bigint not null primary key, "toId" bigint default 0 not null, "userId" bigint not null, "momentId" bigint not null, date timestamp(6), content varchar(1000) not null ); comment on table "Comment" is 'è¯è®º'; comment on column "Comment".id is 'å¯ä¸æ è¯'; comment on column "Comment"."toId" is '被åå¤çid'; comment on column "Comment"."userId" is 'è¯è®ºäººid'; comment on column "Comment"."momentId" is '卿id'; comment on column "Comment".date is 'åå»ºæ¥æ'; comment on column "Comment".content is 'å 容'; create table "Moment" ( id bigint not null primary key, "userId" bigint not null, date timestamp(6), content varchar(300), "praiseUserIdList" json not null, "pictureList" json not null ); comment on table "Moment" is '卿'; comment on column "Moment".id is 'å¯ä¸æ è¯'; comment on column "Moment"."userId" is 'ç¨æ·id'; comment on column "Moment".date is 'åå»ºæ¥æ'; comment on column "Moment".content is 'å 容'; comment on column "Moment"."praiseUserIdList" is 'ç¹èµçç¨æ·idå表'; comment on column "Moment"."pictureList" is 'å¾çå表'; create table "TestRecord" ( id bigint not null primary key, "userId" bigint not null, "documentId" bigint not null, response text not null, date timestamp(6) default CURRENT_TIMESTAMP not null, compare text, standard text, "randomId" bigint default 0, headless smallint default 0 not null, "reportId" bigint default 0 not null, "testAccountId" bigint default 0 not null, duration bigint default 0 not null, "minDuration" bigint default 0 not null, "maxDuration" bigint default 0 not null, host varchar(200) ); comment on column "TestRecord".id is 'å¯ä¸æ è¯'; comment on column "TestRecord"."userId" is 'ç¨æ·id'; comment on column "TestRecord"."documentId" is 'æµè¯ç¨ä¾ææ¡£id'; comment on column "TestRecord".response is 'æ¥å£è¿åç»æJSON'; comment on column "TestRecord".date is 'åå»ºæ¥æ'; comment on column "TestRecord".compare is '对æ¯ç»æ'; comment on column "TestRecord".standard is 'response çæ ¡éªæ åï¼æ¯ä¸ä¸ª JSON æ ¼å¼ç AST ï¼æè¿°äºæ£ç¡® Response çç»æãéé¢çåæ®µåç§°ãç±»åãé¿åº¦ãåå¼èå´ ç屿§ã'; comment on column "TestRecord"."randomId" is 'éæºé ç½® id'; comment on column "TestRecord".headless is 'æ¯å¦ä¸ºæ UI ç Headless 模å¼ï¼0-å¦ 1-æ¯'; comment on column "TestRecord"."reportId" is 'æµè¯æ¥å ID'; comment on column "TestRecord"."testAccountId" is 'æµè¯è´¦å· id'; create table "Function" ( id bigint not null primary key, language varchar, name varchar(30) not null, "returnType" varchar(45) default 'Object'::character varying, arguments varchar(100), demo text not null, detail varchar(1000), date timestamp(6) default CURRENT_TIMESTAMP not null, "userId" bigint default 0, version integer default 0, tag varchar, methods varchar, return integer ); comment on column "Function".language is 'è¯è¨ï¼Java(java), JavaScript(js), Lua(lua), Python(py), Ruby(ruby), PHP(php) çï¼NULL é»è®¤ä¸º Javaï¼JDK 1.6-11 é»è®¤æ¯æ JavaScriptï¼JDK 12+ éè¦é¢å¤ä¾èµ Nashron/Rhiro ç js 弿åºï¼å ¶å®çè¯è¨éè¦ä¾èµå¯¹åºç弿åºï¼å¹¶å¨ ScriptEngineManager 䏿³¨å'; comment on column "Function".name is 'æ¹æ³å'; comment on column "Function"."returnType" is 'è¿åç±»å'; comment on column "Function".arguments is 'åæ°åè¡¨ï¼æ¯ä¸ªåæ°çç±»å齿¯ Stringã ç¨ , åå²çå符串 æ¯ [JSONArray] æ´å¥½ï¼ä¾å¦ array,item ï¼æ´ç´è§ï¼è¿æ¹ä¾¿æ¼æ¥å½æ°ã'; comment on column "Function".demo is 'å¯ç¨ç示ä¾ã'; comment on column "Function".detail is 'è¯¦ç»æè¿°'; comment on column "Function".date is 'å建æ¶é´'; comment on column "Function"."userId" is 'ç¨æ·id'; comment on column "Function".version is 'å 许çæä½çæ¬å·ï¼åªéäºGET,HEADå¤çæä½æ¹æ³ã\nTODO ä½¿ç¨ requestIdList æ¿ä»£ version,tag,methods'; comment on column "Function".tag is 'å è®¸çæ ç¾.\nnull - å è®¸å ¨é¨\nTODO ä½¿ç¨ requestIdList æ¿ä»£ version,tag,methods'; comment on column "Function".methods is 'å 许çæä½æ¹æ³ã\nnull - å è®¸å ¨é¨\nTODO ä½¿ç¨ requestIdList æ¿ä»£ version,tag,methods'; comment on column "Function".return is 'è¿åå¼ç¤ºä¾'; create table "Request" ( id bigint, debug smallint, version smallint, method varchar(10), tag varchar(30), structure json, detail varchar(10000), date timestamp ); create table "Script" ( id bigint, "userId" bigint, "testAccountId" bigint, "documentId" bigint, simple smallint, ahead smallint, title varchar(100), name varchar(100), script text, date timestamp, detail varchar(1000) ); create table "Access" ( id integer not null primary key, schema varchar(100) default NULL::character varying, debug integer default 0 not null, name varchar(50) default 'å®é 表åï¼ä¾å¦ apijson_user'::character varying not null, alias text, get text default '["UNKNOWN", "LOGIN", "CONTACT", "CIRCLE", "OWNER", "ADMIN"]'::text not null, head text default '["UNKNOWN", "LOGIN", "CONTACT", "CIRCLE", "OWNER", "ADMIN"]'::text not null, gets text default '["LOGIN", "CONTACT", "CIRCLE", "OWNER", "ADMIN"]'::text not null, heads text default '["LOGIN", "CONTACT", "CIRCLE", "OWNER", "ADMIN"]'::text not null, post text default '["OWNER", "ADMIN"]'::text not null, put text default '["OWNER", "ADMIN"]'::text not null, delete text default '["OWNER", "ADMIN"]'::text not null, date text default CURRENT_TIMESTAMP not null, detail text ); comment on column "Access".id is 'å¯ä¸æ è¯'; comment on column "Access".debug is 'æ¯å¦ä¸ºè°è¯è¡¨ï¼åªå 许å¨å¼åç¯å¢ä½¿ç¨ï¼æµè¯å线ä¸ç¯å¢ç¦ç¨'; comment on column "Access".alias is 'å¤é¨è°ç¨ç表å«åï¼ä¾å¦ User'; comment on column "Access".get is 'å 许 get çè§è²å表ï¼ä¾å¦ ["LOGIN", "CONTACT", "CIRCLE", "OWNER"] ç¨ JSON ç±»åä¸è½è®¾ç½®é»è®¤å¼ï¼åæ£æé对åºçéæ±æ¯æç¡®çï¼ä¹ä¸éè¦èªå¨è½¬ JSONArrayã TODO: ç´æ¥ LOGIN,CONTACT,CIRCLE,OWNER æ´ç®åï¼åæ£æ¯å¼åå é¨ç¨ï¼ä¸éè¦å¤ææ¥è¯¢ã'; comment on column "Access".head is 'å 许 head çè§è²å表ï¼ä¾å¦ ["LOGIN", "CONTACT", "CIRCLE", "OWNER"]'; comment on column "Access".gets is 'å 许 gets çè§è²å表ï¼ä¾å¦ ["LOGIN", "CONTACT", "CIRCLE", "OWNER"]'; comment on column "Access".heads is 'å 许 heads çè§è²å表ï¼ä¾å¦ ["LOGIN", "CONTACT", "CIRCLE", "OWNER"]'; comment on column "Access".post is 'å 许 post çè§è²å表ï¼ä¾å¦ ["LOGIN", "CONTACT", "CIRCLE", "OWNER"]'; comment on column "Access".put is 'å 许 put çè§è²å表ï¼ä¾å¦ ["LOGIN", "CONTACT", "CIRCLE", "OWNER"]'; comment on column "Access".delete is 'å 许 delete çè§è²å表ï¼ä¾å¦ ["LOGIN", "CONTACT", "CIRCLE", "OWNER"]'; comment on column "Access".date is 'å建æ¶é´'; create table "Verify" ( id bigint, type integer, phone bigint, verify integer, date timestamp );