Compare commits

..

2 Commits

Author SHA1 Message Date
3bc440cbf8
Remove unnecessary TODO comment
Deleted a redundant TODO comment about deleting a machine and associated file type. The method to remove a specified file type from a machine is already implemented.
2024-10-08 16:34:07 +02:00
44dab5ba11
Add primary key to FilesTypeForMachine table
Added a new 'id' column as the primary key with a unique constraint and default random value generation for the 'FilesTypeForMachine' table. This ensures each row has a unique identifier.
2024-10-08 16:33:41 +02:00
2 changed files with 2 additions and 2 deletions

View File

@ -170,6 +170,8 @@ export const FilesForMachinesTable = pgTable("files_for_machines", {
}); });
export const FilesTypeForMachine = pgTable("f_type_for_machines", { export const FilesTypeForMachine = pgTable("f_type_for_machines", {
id: p.uuid("id").unique().primaryKey().defaultRandom().notNull(),
machineId: p machineId: p
.uuid("machine_id") .uuid("machine_id")
.notNull() .notNull()

View File

@ -70,8 +70,6 @@ export class MachinesService {
} }
} }
//TODO a method to delete a machine and delete the associated FilesTypeForMachine row
/** /**
* Removes a specified file type from a machine. * Removes a specified file type from a machine.
* *