Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||
|---|---|---|---|---|---|---|---|---|---|---|---|
| id | INT | 10 | √ | null |
|
|
Primary id for this table. This uniquely identifies the row. |
||||
| newstype_id | INT | 10 | null |
|
|
Foreign key newstypes (newstypes.id). |
|||||
| title | VARCHAR | 255 | √ | null |
|
|
A title which is used to name this news item. This appears in the Germinate user interface if used. |
||||
| content | MEDIUMTEXT | 16777215 | √ | null |
|
|
The textual content of this news item. |
||||
| image | VARCHAR | 255 | √ | null |
|
|
Image to use with this news item. |
||||
| image_fit | enum('contain', 'cover') | 7 | cover |
|
|
Determines the css property of the news item image. |
|||||
| hyperlink | VARCHAR | 255 | √ | null |
|
|
HTML hyperlink to use for this news item. This can be a link to another source which contains more information or a link to the original source. |
||||
| user_id | INT | 10 | √ | null |
|
|
Foreign key users (users.id). |
||||
| created_on | DATETIME | 19 | √ | CURRENT_TIMESTAMP |
|
|
When the record was created. |
||||
| updated_on | TIMESTAMP | 19 | √ | CURRENT_TIMESTAMP |
|
|
When the record was updated. This may be different from the created on date if subsequent changes have been made to the underlying record. |
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| PRIMARY | Primary key | Asc | id |
| news_type_id | Performance | Asc | newstype_id |
| news_updated_on | Performance | Asc | updated_on |
| news_user_id | Performance | Asc | user_id |