Upload

User file upload metadata stored in Postgres.

Source: packages/db/src/schema/upload.ts

Binary files are stored in object storage (MinIO/S3). This table tracks metadata only.

upload

ColumnTypeNotes
idtextPK, prefix up_
filenamevarchar(255)NOT NULL
original_namevarchar(255)NOT NULL
mime_typevarchar(100)NOT NULL
sizeintegerNOT NULL
pathtextNOT NULL, storage path
user_idtextFK → user.id, CASCADE
deleted_attimestampsoft delete
created_attimestamp
updated_attimestamp

Was this page helpful?

Edit this page