Corrige les indentations dans schema.ts

Cette modification standardise les indentations afin d'améliorer la lisibilité et la cohérence du code. Aucune fonctionnalité n'a été modifiée, ces changements sont purement esthétiques.
This commit is contained in:
2024-08-21 14:32:30 +02:00
parent e03fa60723
commit 516c55821a

View File

@@ -55,9 +55,7 @@ export const FilesTable = pgTable("files", {
})
.notNull(),
fileSize: p
.integer("file_size")
.notNull(),
fileSize: p.integer("file_size").notNull(),
//TODO Replace by file type reference
fileType: p
@@ -66,10 +64,7 @@ export const FilesTable = pgTable("files", {
})
.notNull(),
isRestricted: p
.boolean("is_restricted")
.default(false)
.notNull(),
isRestricted: p.boolean("is_restricted").default(false).notNull(),
uploadedAt: p
.timestamp("uploaded_at", {
@@ -83,9 +78,8 @@ export const FilesTable = pgTable("files", {
length: 64,
})
.notNull(),
})
});
//TODO Many/Many Files -> Categories
//TODO Files types