Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| date_id | int4 | 10 | null | 
                                        
  | 
                                    
                                         | 
                                    Primary key of this table. Built by formatting a date to   | 
                                |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| date | date | 13 | null | 
                                        
  | 
                                    
                                         | 
                                    A numbered day of a month together with the numbered month and year. Primary key is derived from this.  | 
                                |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| year | int4 | 10 | null | 
                                         | 
                                    
                                         | 
                                    The numbered year part of the date.  | 
                                |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| month | int4 | 10 | null | 
                                         | 
                                    
                                         | 
                                    The numbered month part of the date.  | 
                                |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| day | int4 | 10 | null | 
                                         | 
                                    
                                         | 
                                    The numbered day of month part of the date.  | 
                                |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| year_month | int4 | 10 | null | 
                                         | 
                                    
                                         | 
                                    Year and month formatted to   | 
                                |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| year_day | int4 | 10 | null | 
                                         | 
                                    
                                         | 
                                    Year and day of month formatted to   | 
                                |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| month_day | int4 | 10 | null | 
                                         | 
                                    
                                         | 
                                    Month and day of month formatted to   | 
                                |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| day_number_of_year | int4 | 10 | null | 
                                         | 
                                    
                                         | 
                                    The numbered day of a year (1 to 365/366).  | 
                                |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| day_number_of_week | int4 | 10 | null | 
                                         | 
                                    
                                         | 
                                    The numbered day of a week (0 to 6), starting at Sunday.  | 
                                |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| day_of_week | varchar | 256 | null | 
                                         | 
                                    
                                         | 
                                    DEPRECATED. Use  | 
                                |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| month_name | varchar | 256 | null | 
                                         | 
                                    
                                         | 
                                    The linguistic name of the month (eg   | 
                                |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| weekday_name | varchar | 256 | null | 
                                         | 
                                    
                                         | 
                                    The linguistic name of the weekday (eg   | 
                                |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| is_start_of_month | bool | 1 | null | 
                                         | 
                                    
                                         | 
                                    
  | 
                                |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| is_end_of_month | bool | 1 | null | 
                                         | 
                                    
                                         | 
                                    
  | 
                                |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| last_updated | timestamptz | 35 | √ | null | 
                                         | 
                                    
                                         | 
                                    System column. UTC Timestamp at which entry was calculated (lags behind source system).  | 
                                



