Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| id | int4 | 10 | √ | null |
|
|
|||||
| calendar_id | int4 | 10 | null |
|
|
||||||
| name | text | 2147483647 | null |
|
|
||||||
| start_date | date | 13 | null |
|
|
||||||
| end_date | date | 13 | √ | null |
|
|
|||||
| all_day | bool | 1 | true |
|
|
||||||
| start_time | time | 15,6 | √ | null |
|
|
|||||
| end_time | time | 15,6 | √ | null |
|
|
|||||
| color | text | 2147483647 | √ | null |
|
|
|||||
| source_id | int4 | 10 | √ | null |
|
|
calendar_source that imported this event; NULL = created manually. |
||||
| external_uid | text | 2147483647 | √ | null |
|
|
iCal UID; used to dedup on re-import. NULL for manually-created events. |
||||
| remark | text | 2147483647 | √ | null |
|
|
|||||
| enabled | bool | 1 | true |
|
|
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| calendar_event_pkey | Primary key | Asc | id |
| calendar_event_calendar_id_idx | Performance | Asc/Asc | calendar_id + start_date |
| calendar_event_date_idx | Performance | Asc/Asc | start_date + end_date |
| calendar_event_source_id_idx | Performance | Asc | source_id |
| calendar_event_uid_unq | Must be unique | Asc/Asc | calendar_id + external_uid |
Check Constraints
| Constraint Name | Constraint |
|---|---|
| calendar_event_date_order | ((end_date IS NULL) OR (end_date >= start_date)) |
| calendar_event_name_not_blank | (btrim(name) <> ''::text) |
