XMTT преди 6 години
родител
ревизия
c03b27fb74
променени са 1 файла, в които са добавени 52 реда и са изтрити 0 реда
  1. 52 0
      src/main/resources/database.sql

+ 52 - 0
src/main/resources/database.sql

@ -2457,3 +2457,55 @@ CREATE TABLE ARTICLE_PRODUCT(
2457 2457
);
2458 2458
COMMENT ON TABLE ARTICLE_PRODUCT is '文章关联产品表';
2459 2459

2460
CREATE TABLE PLATFORM_DEMAND_PROFESSOR (
2461
        PID TEXT NOT NULL,
2462
        ID TEXT NOT NULL,
2463
        UID TEXT NOT NULL,
2464
        ASS_TIME TEXT NOT NULL,
2465
        DESCP TEXT NOT NULL);
2466
ALTER TABLE PLATFORM_DEMAND_PROFESSOR ADD PRIMARY KEY (PID,ID,UID);
2467
COMMENT ON TABLE PLATFORM_DEMAND_PROFESSOR IS '平台需求回复专家表';
2468
COMMENT ON COLUMN PLATFORM_DEMAND_PROFESSOR.PID IS '平台ID';
2469
COMMENT ON COLUMN PLATFORM_DEMAND_PROFESSOR.ID IS '平台需求';
2470
COMMENT ON COLUMN PLATFORM_DEMAND_PROFESSOR.UID IS '专家ID';
2471
COMMENT ON COLUMN PLATFORM_DEMAND_PROFESSOR.ASS_TIME IS '留言时间';
2472
COMMENT ON COLUMN PLATFORM_DEMAND_PROFESSOR.DESCP IS '留言内容';
2473
CREATE TABLE PLATFORM_DEMAND (
2474
        PID TEXT NOT NULL,
2475
        ID TEXT NOT NULL,
2476
        TITLE TEXT NOT NULL,
2477
        DESCP TEXT NOT NULL,
2478
        PULISH_TIME TEXT NOT NULL,
2479
        LINK_ORG TEXT NOT NULL,
2480
        CITY TEXT NOT NULL,
2481
        INVALID_DAY TEXT NOT NULL,
2482
        COST TEXT,
2483
        DURATION TEXT);
2484
ALTER TABLE PLATFORM_DEMAND ADD PRIMARY KEY (PID,ID);
2485
COMMENT ON TABLE PLATFORM_DEMAND IS '平台需求表';
2486
COMMENT ON COLUMN PLATFORM_DEMAND.PID IS '平台ID';
2487
COMMENT ON COLUMN PLATFORM_DEMAND.ID IS '平台需求ID';
2488
COMMENT ON COLUMN PLATFORM_DEMAND.TITLE IS '平台需求ID';
2489
COMMENT ON COLUMN PLATFORM_DEMAND.DESCP IS '需求描述';
2490
COMMENT ON COLUMN PLATFORM_DEMAND.PULISH_TIME IS '平台需求ID';
2491
COMMENT ON COLUMN PLATFORM_DEMAND.LINK_ORG IS '需求方';
2492
COMMENT ON COLUMN PLATFORM_DEMAND.CITY IS '所在城市';
2493
COMMENT ON COLUMN PLATFORM_DEMAND.INVALID_DAY IS '有效截至日期';
2494
COMMENT ON COLUMN PLATFORM_DEMAND.COST IS '费用预算';
2495
COMMENT ON COLUMN PLATFORM_DEMAND.DURATION IS '合作周期';
2496

2497
CREATE TABLE PLATFORM_MSG_REC (
2498
        PID TEXT NOT NULL,
2499
        REQUESTOR TEXT NOT NULL,
2500
        PROVIDER TEXT NOT NULL,
2501
        CNT TEXT NOT NULL,
2502
        OP_TIME TEXT NOT NULL);
2503
CREATE TABLE PLATFORM_MSG_IDX (
2504
        PID TEXT NOT NULL,
2505
        REQUESTOR TEXT NOT NULL,
2506
        PROVIDER TEXT NOT NULL,
2507
        CNT TEXT NOT NULL,
2508
        OP_TIME TEXT NOT NULL,
2509
        UNREAD INTEGER NOT NULL,
2510
        ACTIVED CHAR(1) NOT NULL);
2511
ALTER TABLE PLATFORM_MSG_IDX ADD PRIMARY KEY (PID,REQUESTOR,PROVIDER);