6.12.2.3 NewsAsset
6.12.2.3.1 Purpose¶
To be written.
6.12.2.3.2 Questions it answers¶
- To be written.
6.12.2.3.3 Fields¶
| Field | Type | Cardinality | Description |
|---|---|---|---|
id |
string (uuid) |
1..1 |
Key. |
storage_key |
string |
1..1 |
The object in the media bucket, named by the hash of its content. |
content_type |
enum | 1..1 |
Values: image/jpeg, image/png, image/webp, image/avif. |
width |
integer |
1..1 |
|
height |
integer |
1..1 |
|
bytes |
integer |
1..1 |
At most 10 MB. |
description |
string |
0..1 |
For staff, to find it again; the alt text readers get is written in each translation. |
uploaded_by |
MoonitoringUser | 1..1 |
|
created_at |
datetime |
1..1 |
6.12.2.3.4 Relationships¶
References
NewsAsset.uploaded_by→ MoonitoringUser (1..1)
Referenced by
Article.cover(0..1)ArticleTranslation.social_image(0..1)
6.12.2.3.5 Rules & constraints¶
- An image uploaded for News: to the media bucket of news by signed URL, never through a service. The site build turns it into the sizes and formats readers need (AVIF, WebP) and serves it from
news.moonitoring.com.