Index: database/drizzle/schema/builds.ts
===================================================================
--- database/drizzle/schema/builds.ts	(revision b0685a8a59fe7808efb0fea93b4fdaad4d6b44d9)
+++ database/drizzle/schema/builds.ts	(revision adc31efc1b4507b5b3a779e6190ce32df4c108a5)
@@ -17,5 +17,4 @@
 
 export const buildComponentsTable = pgTable("build_component", {
-        id: serial("id").primaryKey(),
         buildId: integer("build_id")
             .notNull()
@@ -24,5 +23,11 @@
             .notNull()
             .references(() => componentsTable.id, { onDelete: "cascade", onUpdate: "cascade" }),
+        numComponents: integer("num_components")
+            .notNull()
+            .default(1),
     },
+    (t) => ({
+        pk: primaryKey({ columns: [t.buildId, t.componentId] }),
+    }),
 );
 
