Add new fields to schema

Introduce 'extension' and 'isDocumentation' fields to the database schema. These additions enhance file metadata and facilitate improved data management.
This commit is contained in:
Mathis H (Avnyr) 2024-09-30 14:34:59 +02:00
parent 541dcda6a9
commit fcb39250ca
Signed by: Mathis
GPG Key ID: DD9E0666A747D126

View File

@ -67,6 +67,12 @@ export const FilesTable = pgTable("files", {
}) })
.notNull(), .notNull(),
extension: p
.varchar("extension", {
length: 16,
})
.notNull(),
uploader: p uploader: p
.varchar("uploader", { .varchar("uploader", {
length: 64, length: 64,
@ -85,6 +91,8 @@ export const FilesTable = pgTable("files", {
isRestricted: p.boolean("is_restricted").default(false).notNull(), isRestricted: p.boolean("is_restricted").default(false).notNull(),
isDocumentation: p.boolean("is_documentation").default(false).notNull(),
uploadedAt: p uploadedAt: p
.timestamp("uploaded_at", { .timestamp("uploaded_at", {
withTimezone: true, withTimezone: true,