개정판 edc395e4
issue #1043 : 시스템분석/설계 : Template.db 수정
1. Fittings_Input 테이블 추가
Change-Id: I61455a4c34dd620612ab1dcf6d58877ee7b65568
HYTOS/HYTOS/Scripts/CreateTables.sql | ||
---|---|---|
252 | 252 |
Name |
253 | 253 |
) |
254 | 254 |
); |
255 |
|
|
256 |
CREATE TABLE IF NOT EXISTS Fittings_Input ( |
|
257 |
UID TEXT NOT NULL, |
|
258 |
Components_UID TEXT NOT NULL, |
|
259 |
Fittings_UID TEXT NOT NULL, |
|
260 |
Method TEXT NOT NULL, |
|
261 |
Sub_Size REAL, |
|
262 |
Angle REAL, |
|
263 |
Count INTEGER, |
|
264 |
CONSTRAINT PK_Fittings_Input PRIMARY KEY ( |
|
265 |
UID |
|
266 |
), |
|
267 |
CONSTRAINT FK_Components_UID FOREIGN KEY ( |
|
268 |
Components_UID |
|
269 |
) |
|
270 |
REFERENCES Components (UID) ON DELETE CASCADE, |
|
271 |
CONSTRAINT FK_Fittings_UID FOREIGN KEY ( |
|
272 |
Fittings_UID |
|
273 |
) |
|
274 |
REFERENCES Fittings (UID) ON DELETE RESTRICT, |
|
275 |
CONSTRAINT UQ_Fittings_Input UNIQUE ( |
|
276 |
Components_UID, |
|
277 |
Fittings_UID |
|
278 |
) |
|
279 |
); |
내보내기 Unified diff