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:
parent
541dcda6a9
commit
fcb39250ca
@ -67,6 +67,12 @@ export const FilesTable = pgTable("files", {
|
||||
})
|
||||
.notNull(),
|
||||
|
||||
extension: p
|
||||
.varchar("extension", {
|
||||
length: 16,
|
||||
})
|
||||
.notNull(),
|
||||
|
||||
uploader: p
|
||||
.varchar("uploader", {
|
||||
length: 64,
|
||||
@ -85,6 +91,8 @@ export const FilesTable = pgTable("files", {
|
||||
|
||||
isRestricted: p.boolean("is_restricted").default(false).notNull(),
|
||||
|
||||
isDocumentation: p.boolean("is_documentation").default(false).notNull(),
|
||||
|
||||
uploadedAt: p
|
||||
.timestamp("uploaded_at", {
|
||||
withTimezone: true,
|
||||
|
Loading…
x
Reference in New Issue
Block a user