Add missing semicolons for consistency
This commit adds missing semicolons to type definitions in schema.ts for consistent code style and better readability. No functional changes were made to the existing code logic.
This commit is contained in:
parent
38634132ba
commit
0330358139
@ -103,7 +103,7 @@ export const FilesTable = pgTable("files", {
|
||||
})
|
||||
.notNull(),
|
||||
});
|
||||
export type IFileTable = typeof FilesTable.$inferSelect
|
||||
export type IFileTable = typeof FilesTable.$inferSelect;
|
||||
|
||||
export const FilesGroupTable = pgTable("f_groups", {
|
||||
uuid: p.uuid("uuid").unique().primaryKey().defaultRandom().notNull(),
|
||||
@ -115,8 +115,7 @@ export const FilesGroupTable = pgTable("f_groups", {
|
||||
.unique()
|
||||
.notNull(),
|
||||
});
|
||||
export type IFileGroupTable = typeof FilesGroupTable.$inferSelect
|
||||
|
||||
export type IFileGroupTable = typeof FilesGroupTable.$inferSelect;
|
||||
|
||||
//TODO Files types
|
||||
export const FilesTypesTable = pgTable("f_types", {
|
||||
@ -137,7 +136,7 @@ export const FilesTypesTable = pgTable("f_types", {
|
||||
.unique()
|
||||
.notNull(),
|
||||
});
|
||||
export type IFilesTypesTable = typeof FilesTypesTable.$inferSelect
|
||||
export type IFilesTypesTable = typeof FilesTypesTable.$inferSelect;
|
||||
|
||||
export const MachinesTable = pgTable("machines", {
|
||||
id: p.uuid("id").unique().primaryKey().defaultRandom().notNull(),
|
||||
@ -156,7 +155,7 @@ export const MachinesTable = pgTable("machines", {
|
||||
|
||||
//supported files format
|
||||
});
|
||||
export type IMachinesTable = typeof MachinesTable.$inferSelect
|
||||
export type IMachinesTable = typeof MachinesTable.$inferSelect;
|
||||
|
||||
//TODO Many to Many table betwen File en Machine
|
||||
export const FilesForMachinesTable = pgTable("files_for_machines", {
|
||||
@ -172,7 +171,7 @@ export const FilesForMachinesTable = pgTable("files_for_machines", {
|
||||
.notNull()
|
||||
.references(() => MachinesTable.id),
|
||||
});
|
||||
export type IFilesForMachinesTable = typeof FilesForMachinesTable.$inferSelect
|
||||
export type IFilesForMachinesTable = typeof FilesForMachinesTable.$inferSelect;
|
||||
|
||||
export const FilesTypeForMachine = pgTable("f_type_for_machines", {
|
||||
id: p.uuid("id").unique().primaryKey().defaultRandom().notNull(),
|
||||
@ -186,11 +185,11 @@ export const FilesTypeForMachine = pgTable("f_type_for_machines", {
|
||||
.notNull()
|
||||
.references(() => FilesTypesTable.id),
|
||||
});
|
||||
export type IFilesTypeForMachine = typeof FilesTypeForMachine.$inferSelect
|
||||
export type IFilesTypeForMachine = typeof FilesTypeForMachine.$inferSelect;
|
||||
|
||||
export interface IWithCount<T> {
|
||||
count: number;
|
||||
limit: number;
|
||||
currentOffset: number;
|
||||
data: T[]
|
||||
}
|
||||
data: T[];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user