개정판 2e23e9d0
- 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