프로젝트

일반

사용자정보

개정판 2e23e9d0

ID2e23e9d053c7816b788fcf3a0d5efa81241f5b46
상위 54021391
하위 a2763748

김연진이(가) 5년 이상 전에 추가함

  • issue #1043 : 시스템분석/설계 Schedule, InsideDiameter 테이블 추가

Change-Id: If7cc2b1ffdc50a641d66bf24c578eac6c814d5c1

차이점 보기:

HYTOS/HYTOS/Scripts/CreateTables.sql
428 428
        COLUMN_NAME
429 429
    )
430 430
);
431

  
432

  
433
CREATE TABLE IF NOT EXISTS Schedule (
434
    UID                 TEXT NOT NULL,
435
    [No]                TEXT NOT NULL,
436
    CONSTRAINT PK_Schedule PRIMARY KEY (
437
        UID
438
    ),
439
    CONSTRAINT UQ_Schedule UNIQUE (
440
        [No]
441
    )
442
);
443

  
444

  
445
CREATE TABLE IF NOT EXISTS InsideDiameter (
446
    UID                 TEXT NOT NULL,
447
    NominalDiameter_UID TEXT NOT NULL,
448
    Schedule_UID        TEXT NOT NULL,
449
    Milimeter           REAL,
450
    Inch                REAL,
451
    CONSTRAINT PK_InsideDiameter PRIMARY KEY (
452
        UID
453
    ),
454
    CONSTRAINT FK_NominalDiameter_UID FOREIGN KEY (
455
        NominalDiameter_UID
456
    )
457
    REFERENCES NominalDiameter (UID),
458
    CONSTRAINT FK_Schedule_UID FOREIGN KEY (
459
        Schedule_UID
460
    )
461
    REFERENCES Schedule (UID),
462
    CONSTRAINT UQ_InsideDiameter UNIQUE (
463
        NominalDiameter_UID,
464
        Schedule_UID
465
    )
466
);

내보내기 Unified diff

클립보드 이미지 추가 (최대 크기: 500 MB)