P8-Panels/db/P8PNL_SMPL_GANTT.sql

20 lines
1.2 KiB
SQL
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*
Парус 8 - Панели мониторинга - Примеры
Буфер для диаграммы Ганта
*/
create table P8PNL_SMPL_GANTT
(
RN number(17) not null, -- Рег. номер записи
IDENT number(17) not null, -- Идентификатор процесса
TYPE number(1) not null, -- Тип задачи (0 - этап/веха, 1 - работа)
NUMB varchar2(20) not null, -- Номер задачи
NAME varchar2(200) not null, -- Наименование задачи
DATE_FROM date not null, -- Дата начала задачи
DATE_TO date not null, -- Дата окончания задачи
STATE number(1) not null, -- Состояние задачи (0 - не выполняется, 1 - выполняется)
constraint C_P8PNL_SMPL_GANTT_RN_PK primary key (RN),
constraint C_P8PNL_SMPL_GANTT_TP_VAL check (TYPE in (0, 1)),
constraint C_P8PNL_SMPL_GANTT_ST_VAL check (STATE in (0, 1)),
constraint C_P8PNL_SMPL_GANTT_UN unique (IDENT, NUMB)
);