CREATE TABLE cn_periods_b (
    PERIOD_ID                NUMBER(18, 0),
    CALENDAR_ID              NUMBER(18, 0),
    PERIOD_YEAR              NUMBER(18, 0),
    PERIOD_NUMBER            NUMBER(18, 0),
    PERIOD_SEQUENCE          NUMBER(18, 0),
    QUARTER_NUMBER           NUMBER(18, 0),
    START_DATE               DATE         ,
    END_DATE                 DATE         ,
    LAST_UPDATE_DATE         TIMESTAMP(6)     NOT NULL,
    LAST_UPDATED_BY          VARCHAR2(256)    NOT NULL,
    CREATION_DATE            TIMESTAMP(6)     NOT NULL,
    CREATED_BY               VARCHAR2(256)    NOT NULL,
    LAST_UPDATE_LOGIN        VARCHAR2(128),
    OBJECT_VERSION_NUMBER    NUMBER(9, 0)     NOT NULL,
    PERIOD_ID                NUMBER(18, 0),
    CALENDAR_ID              NUMBER(18, 0),
    PERIOD_YEAR              NUMBER(18, 0),
    PERIOD_NUMBER            NUMBER(18, 0),
    PERIOD_SEQUENCE          NUMBER(18, 0),
    QUARTER_NUMBER           NUMBER(18, 0),
    START_DATE               DATE         ,
    END_DATE                 DATE         ,
    LAST_UPDATE_DATE         TIMESTAMP(6)     NOT NULL,
    LAST_UPDATED_BY          VARCHAR2(256)    NOT NULL,
    CREATION_DATE            TIMESTAMP(6)     NOT NULL,
    CREATED_BY               VARCHAR2(256)    NOT NULL,
    LAST_UPDATE_LOGIN        VARCHAR2(128),
    OBJECT_VERSION_NUMBER    NUMBER(9, 0)     NOT NULL,
    CONSTRAINT pk_cn_periods_b PRIMARY KEY (PERIOD_ID, CALENDAR_ID, PERIOD_ID, CALENDAR_ID)
);
