Main Tables Views Materialized Views Indexes Constraints Triggers Procedures Functions Packages Sequences Java Sources Jobs Sanity Check Index DDL scrips
Description Columns Primary key Check Constraints Foreign keys Unique Keys Options Indexes Referenced by Triggers Partitions

RHNCHANNELCOMPS

DDL script

Columns

NameTypeNullableDefault valueComment
IDNUMBER(38)N  
CHANNEL_IDNUMBER(38)N  
RELATIVE_FILENAMEVARCHAR2(256)N  
LAST_MODIFIEDTIMESTAMP(6) WITH LOCAL TIME ZONEN(current_timestamp)  
CREATEDTIMESTAMP(6) WITH LOCAL TIME ZONEN(current_timestamp)  
MODIFIEDTIMESTAMP(6) WITH LOCAL TIME ZONEN(current_timestamp)  
COMPS_TYPE_IDNUMBER(38)N  

Primary key:

Constraint NameColumns
RHN_CHANNELCOMPS_ID_PKID

Foreign Keys:

Constraint NameColumnsReferenced tableReferenced ConstraintOn Delete Rule
RHN_CHANNELCOMPS_CID_FKCHANNEL_ID RHNCHANNEL RHN_CHANNEL_ID_PK CASCADE
RHN_CHANNELCOMPS_COMPS_TYPE_FKCOMPS_TYPE_ID RHNCOMPSTYPE RHN_COMPS_TYPE_ID_PK NO ACTION

Options:

OptionSettings
TablespaceUSERS
Index OrganizedNo
Generated by OracleNo
ClusteredNo
NestedNo
TemporaryNo

Indexes:

Index NameTypeUnuquenessColumnsDDL script
RHN_CHANNELCOMPS_CID_CTYPE_UQNORMALUNIQUECHANNEL_ID , COMPS_TYPE_ID DDL script
RHN_CHANNELCOMPS_ID_PKNORMALUNIQUEID DDL script

Triggers

RHN_CHANNELCOMPS_MOD_TRIG

Legend: comment string keyword reserved word operator
CREATE TRIGGER 
rhn_channelcomps_mod_trig
before insert or update on rhnChannelComps
for each row

REFERENCING NEW AS NEW OLD AS OLD
begin
    :new.modified := current_timestamp;
    -- allow us to manually set last_modified if we wish
    if :new.last_modified = :old.last_modified
    then
        :new.last_modified := current_timestamp;
        end if;
end rhn_channelcomps_mod_trig;