View Issue Details

IDProjectCategoryView StatusLast Update
0000729Общие вопросыGeneralpublic2015-10-01 10:23
Reporterruslan Assigned Tobarry  
PriorityurgentSeverityfeatureReproducibilityalways
Status closedResolutionfixed 
Summary0000729: +Изменения в таблицы ECRGOODS
DescriptionПрикрепил файл с DDL таблицы
TagsNo tags attached.

Relationships

related to 0000726 closedruslan Справочники +Справочники Товары-Новый специальный параметр Наименование ЭККР 

Activities

ruslan

2014-11-11 10:56

manager  

ECRGoods.txt (3,991 bytes)   
/******************************************************************************/
/***              Generated by IBExpert 11/11/2014 10:10:29 AM              ***/
/******************************************************************************/

/******************************************************************************/
/***      Following SET SQL DIALECT is just for the Database Comparer       ***/
/******************************************************************************/
SET SQL DIALECT 3;



/******************************************************************************/
/***                                 Tables                                 ***/
/******************************************************************************/


CREATE GENERATOR ECRGOODS_ID;

CREATE TABLE ECRGOODS (
    ID        INTEGER NOT NULL,
    GODSID    INTEGER NOT NULL,
    ECCRID    INTEGER,
    NAME1     VARCHAR(255),
    NAME2     VARCHAR(255),
    TYPQNT    INTEGER DEFAULT 0 NOT NULL,
    PROCNDS   DOUBLE PRECISION DEFAULT 0.0 NOT NULL,
    LASTEDIT  TIMESTAMP DEFAULT Current_TimeStamp
);




/******************************************************************************/
/***                              Primary Keys                              ***/
/******************************************************************************/

ALTER TABLE ECRGOODS ADD CONSTRAINT ECRGOODS_PK PRIMARY KEY (ID);


/******************************************************************************/
/***                              Foreign Keys                              ***/
/******************************************************************************/

ALTER TABLE ECRGOODS ADD CONSTRAINT ECRGOODS_ECCRID FOREIGN KEY (ECCRID) REFERENCES SYSCONST (ID);
ALTER TABLE ECRGOODS ADD CONSTRAINT ECRGOODS_GODSID FOREIGN KEY (GODSID) REFERENCES GOODS (ID);


/******************************************************************************/
/***                                Triggers                                ***/
/******************************************************************************/


SET TERM ^ ;



/******************************************************************************/
/***                          Triggers for tables                           ***/
/******************************************************************************/



/* Trigger: ECRGOODS_BI0 */
CREATE OR ALTER TRIGGER ECRGOODS_BI0 FOR ECRGOODS
ACTIVE BEFORE INSERT POSITION 0
AS
begin
  if (New.ID is null) then New.ID = Gen_ID(ECRGoods_ID, 1);
end
^


SET TERM ; ^



/******************************************************************************/
/***                              Descriptions                              ***/
/******************************************************************************/

COMMENT ON TABLE ECRGOODS IS 
'������������ ������������ ������� �� ���.';



/******************************************************************************/
/***                          Fields descriptions                           ***/
/******************************************************************************/

COMMENT ON COLUMN ECRGOODS.ID IS 
'�������� ��� ������
��� (�������) �������� � ���� ���';

COMMENT ON COLUMN ECRGOODS.GODSID IS 
'����� �� ����������� ������������ ������ � ���������� (GOODS)';

COMMENT ON COLUMN ECRGOODS.NAME1 IS 
'������ ���� ����������� ������';

COMMENT ON COLUMN ECRGOODS.NAME2 IS 
'���������� ����������� ������';

COMMENT ON COLUMN ECRGOODS.TYPQNT IS 
'������� ���������:
0 - �������
1 - �����';

COMMENT ON COLUMN ECRGOODS.PROCNDS IS 
'������ ��� (%)';



/******************************************************************************/
/***                               Privileges                               ***/
/******************************************************************************/
ECRGoods.txt (3,991 bytes)   

barry

2014-11-12 18:18

administrator   ~0001780

mebl_ib5.zip

Issue History

Date Modified Username Field Change
2014-11-11 10:56 ruslan New Issue
2014-11-11 10:56 ruslan File Added: ECRGoods.txt
2014-11-11 10:59 ruslan Relationship added related to 0000726
2014-11-12 18:18 barry Note Added: 0001780
2014-11-12 18:18 barry Status new => resolved
2014-11-12 18:18 barry Resolution open => fixed
2014-11-12 18:18 barry Assigned To => barry
2015-10-01 10:23 ruslan Status resolved => closed