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:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user