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)

Columns of the message_attachments table
ColumnTypeConstraintsDescription
iduuidprimary key
message_iduuidnot null, references messages.id
typemedia_typenot null
urlvarchar(500)not null
file_namevarchar(255)
size_bytesbigint

Indexes (1)

  • (message_id)

Relationships