message_attachments table
The message_attachments table in the Social Media Database Schema schema has 6 columns, keyed by id, with 1 foreign key to messages.
Columns (6)
| Column | Type | Constraints | Description |
|---|---|---|---|
| id | uuid | primary key | |
| message_id | uuid | not null, references messages.id | |
| type | media_type | not null | |
| url | varchar(500) | not null | |
| file_name | varchar(255) | ||
| size_bytes | bigint |
Indexes (1)
(message_id)
Relationships
message_attachments.message_idreferencesmessages.id