Database reference - demo

demo -  tables -  ml_server.ml_qa_delivery

Description

none

Table properties

namevalue
nameml_server.ml_qa_delivery
row count
Maximum size of a single row943 bytes

Columns

columndatatypelengthdefaultnullsPKFKUQcomment
msgidvarchar(128)128 no  composite PK  ml_qa_repository.msgid       
seqnobigint8 no       
addressvarchar(255)255 no  composite PK     
clientaddressvarchar(128)128 no       
clientvarchar(128)128 no       
originatorvarchar(128)128 yes       
priorityinteger4 no       
expirestimestamp8 yes       
kindinteger4 no       
contentsizebigint8 no       
statusinteger4 no       
statustimetimestamp8current timestampno       
syncstatusinteger4 no       
receiveridvarchar(128)128 yes       

Indexes

namedescriptioncolumncomment
ml_qa_delivery_clinon-unique index on client ascclient 
ml_qa_delivery_ordnon-unique index on clientaddress asc, status asc, priority desc, seqno ascclientaddress, status, priority, seqno 
ml_qa_delivery_dldnon-unique index on client asc, syncstatus asc, status ascclient, syncstatus, status 
ml_qa_deliver_orignon-unique index on originator ascoriginator 

References

name
ml_qa_repository

Foreign key graph

ml_qa_repositoryml_qa_delivery

Foreign keys

namecolumnsforeign columnstypecomment
ml_qa_d_r_cmsgidml_qa_repository.msgid    

Triggers

namecomment
ml_qa_delivery_trigger 

Dependency graph

Objects that depend on ml_server.ml_qa_delivery

nameobject typelevel
ml_qa_add_deliverystored procedure1
ml_qa_stage_status_from_clientstored procedure2
3262trigger1
ml_qa_delivery_triggertrigger1
ml_qa_messagesview1

Code

CREATE TABLE "ml_server"."ml_qa_delivery" (
    "msgid"                          varchar(128) NOT NULL
   ,"seqno"                          bigint NOT NULL
   ,"address"                        varchar(255) NOT NULL
   ,"clientaddress"                  varchar(128) NOT NULL
   ,"client"                         varchar(128) NOT NULL
   ,"originator"                     varchar(128) NULL
   ,"priority"                       integer NOT NULL
   ,"expires"                        timestamp NULL
   ,"kind"                           integer NOT NULL
   ,"contentsize"                    bigint NOT NULL
   ,"status"                         integer NOT NULL
   ,"statustime"                     timestamp NOT NULL DEFAULT current timestamp
   ,"syncstatus"                     integer NOT NULL
   ,"receiverid"                     varchar(128) NULL
   ,PRIMARY KEY ("msgid","address") 
)



Documentation generated by SqlSpec