Difference between revisions of "Public.outages (table)"
| Line 20: | Line 20: | ||
|- | |- | ||
| outageid | | outageid | ||
| − | | | + | | integer |
| not null | | not null | ||
| | | | ||
| Line 27: | Line 27: | ||
|- | |- | ||
| svclosteventid | | svclosteventid | ||
| − | | | + | | integer |
| null | | null | ||
| | | | ||
| Line 34: | Line 34: | ||
|- | |- | ||
| svcregainedeventid | | svcregainedeventid | ||
| − | | | + | | integer |
| null | | null | ||
| | | | ||
| Line 41: | Line 41: | ||
|- | |- | ||
| nodeid | | nodeid | ||
| − | | | + | | integer |
| not null | | not null | ||
| | | | ||
| Line 48: | Line 48: | ||
|- | |- | ||
| ipaddr | | ipaddr | ||
| − | | | + | | varchar(16) |
| not null | | not null | ||
| | | | ||
| Line 55: | Line 55: | ||
|- | |- | ||
| serviceid | | serviceid | ||
| − | | | + | | integer |
| not null | | not null | ||
| | | | ||
| Line 62: | Line 62: | ||
|- | |- | ||
| iflostservice | | iflostservice | ||
| − | | | + | | timestamp with time zone |
| not null | | not null | ||
| | | | ||
| Line 69: | Line 69: | ||
|- | |- | ||
| ifregainedservice | | ifregainedservice | ||
| − | | | + | | timestamp with time zone |
| null | | null | ||
| | | | ||
| Line 76: | Line 76: | ||
|- | |- | ||
| suppresstime | | suppresstime | ||
| − | | | + | | timestamp with time zone |
| null | | null | ||
| | | | ||
| Line 83: | Line 83: | ||
|- | |- | ||
| suppressedby | | suppressedby | ||
| − | | | + | | varchar(256) |
| null | | null | ||
| | | | ||
| Line 90: | Line 90: | ||
|- | |- | ||
| ifserviceid | | ifserviceid | ||
| − | | | + | | integer |
| not null | | not null | ||
| | | | ||
Revision as of 14:43, 7 August 2009
wikibot
| Table | public.outages |
| Column | Data Type | Nullable | Default | PK | Index |
| outageid | integer | not null | pk_outageid | ||
| svclosteventid | integer | null | outages_svclostid_idx | ||
| svcregainedeventid | integer | null | outages_svcregainedid_idx | ||
| nodeid | integer | not null | outages_nodeid_ipaddr_svc_idxoutages_nodeid_idx | ||
| ipaddr | varchar(16) | not null | outages_nodeid_ipaddr_svc_idxoutages_ipaddr_idx | ||
| serviceid | integer | not null | outages_serviceid_idxoutages_nodeid_ipaddr_svc_idx | ||
| iflostservice | timestamp with time zone | not null | |||
| ifregainedservice | timestamp with time zone | null | outages_regainedservice_idx | ||
| suppresstime | timestamp with time zone | null | |||
| suppressedby | varchar(256) | null | |||
| ifserviceid | integer | not null | outages_ifservivceid_idx |
| Relation | Column | Referenced Column |
| public.events | svclosteventid | eventid |
| public.events | svcregainedeventid | eventid |
| public.node | nodeid | nodeid |
| public.service | serviceid | serviceid |
| public.ifservices | nodeid | nodeid |
| public.ifservices | ifserviceid | id |
| Triggers | Type | Function |
| setifservicekeysoninserttrigger | ROWBEFORE INSERT | setifservicekeysoninsert |
| setifservicekeysonupdatetrigger | ROWBEFORE UPDATE | setifservicekeysonupdate |