- Timestamp:
- 12/24/25 23:50:32 (7 months ago)
- Branches:
- main
- Children:
- 1bf6e1f
- Parents:
- 2c6d75a
- File:
-
- 1 edited
-
database/drizzle/schema/components.ts (modified) (18 diffs)
Legend:
- Unmodified
- Added
- Removed
-
database/drizzle/schema/components.ts
r2c6d75a r76b980b 26 26 baseClock: numeric("base_clock").notNull(), 27 27 boostClock: numeric("boost_clock"), 28 tdp: numeric("tdp").notNull() ,28 tdp: numeric("tdp").notNull() 29 29 }); 30 30 … … 38 38 boostClock: numeric("boost_clock"), 39 39 chipset: text("chipset").notNull(), 40 length: numeric("length").notNull() ,40 length: numeric("length").notNull() 41 41 }); 42 42 … … 48 48 speed: numeric("speed").notNull(), 49 49 capacity: numeric("capacity").notNull(), 50 modules: integer("modules").notNull() ,50 modules: integer("modules").notNull() 51 51 }); 52 52 … … 57 57 type: text("type").notNull(), 58 58 wattage: numeric("wattage").notNull(), 59 formFactor: text("form_factor").notNull() ,59 formFactor: text("form_factor").notNull() 60 60 }); 61 61 … … 65 65 .references(() => componentsTable.id, { onDelete: "cascade", onUpdate: "cascade" }), 66 66 coolerMaxHeight: numeric("cooler_max_height").notNull(), 67 gpuMaxLength: numeric("gpu_max_length").notNull() ,67 gpuMaxLength: numeric("gpu_max_length").notNull() 68 68 }); 69 69 … … 74 74 .references(() => pcCasesTable.componentId, {onDelete: "cascade", onUpdate: "cascade" }), 75 75 formFactor: text("form_factor").notNull(), 76 numSlots: integer("num_slots").notNull() ,77 }, 78 (t) => ({ 79 pk: primaryKey({ columns: [t.caseId, t.formFactor] }) ,76 numSlots: integer("num_slots").notNull() 77 }, 78 (t) => ({ 79 pk: primaryKey({ columns: [t.caseId, t.formFactor] }) 80 80 }), 81 81 ); … … 85 85 .notNull() 86 86 .references(() => pcCasesTable.componentId, { onDelete: "cascade", onUpdate: "cascade"}), 87 formFactor: text("form_factor").notNull() ,88 }, 89 (t) => ({ 90 pk: primaryKey({ columns: [t.caseId, t.formFactor] }) ,87 formFactor: text("form_factor").notNull() 88 }, 89 (t) => ({ 90 pk: primaryKey({ columns: [t.caseId, t.formFactor] }) 91 91 }), 92 92 ); … … 96 96 .notNull() 97 97 .references(() => pcCasesTable.componentId, { onDelete: "cascade", onUpdate: "cascade"}), 98 formFactor: text("form_factor").notNull() ,99 }, 100 (t) => ({ 101 pk: primaryKey({ columns: [t.caseId, t.formFactor] }) ,98 formFactor: text("form_factor").notNull() 99 }, 100 (t) => ({ 101 pk: primaryKey({ columns: [t.caseId, t.formFactor] }) 102 102 }), 103 103 ); … … 109 109 type: text("type").notNull(), 110 110 height: numeric("height").notNull(), 111 maxTdpSupported: numeric("max_tdp_supported").notNull() ,111 maxTdpSupported: numeric("max_tdp_supported").notNull() 112 112 }); 113 113 … … 117 117 .notNull() 118 118 .references(() => coolersTable.componentId, { onDelete: "cascade", onUpdate: "cascade" }), 119 socket: text("socket").notNull() ,120 }, 121 (t) => ({ 122 pk: primaryKey({ columns: [t.coolerId, t.socket] }) ,119 socket: text("socket").notNull() 120 }, 121 (t) => ({ 122 pk: primaryKey({ columns: [t.coolerId, t.socket] }) 123 123 }) 124 124 ); … … 135 135 numRamSlots: integer("num_ram_slots").notNull(), 136 136 maxRamCapacity: numeric("max_ram_capacity").notNull(), 137 pciExpressSlots: numeric("pci_express_slots").notNull() 137 138 }); 138 139 … … 143 144 type: text("type").notNull(), 144 145 capacity: numeric("capacity").notNull(), 145 formFactor: text("form_factor").notNull() ,146 formFactor: text("form_factor").notNull() 146 147 }); 147 148 … … 152 153 .references(() => componentsTable.id, { onDelete: "cascade", onUpdate: "cascade" }), 153 154 numSlots: integer("num_slots").notNull(), 154 interface: text("interface").notNull() ,155 interface: text("interface").notNull() 155 156 }); 156 157 … … 163 164 interface: text("interface").notNull(), 164 165 writeSpeed: numeric("write_speed").notNull(), 165 readSpeed: numeric("read_speed").notNull() ,166 readSpeed: numeric("read_speed").notNull() 166 167 }); 167 168 … … 174 175 chipset: text("chipset").notNull(), 175 176 interface: text("interface").notNull(), 176 channel: text("channel").notNull() ,177 channel: text("channel").notNull() 177 178 }); 178 179 … … 182 183 .references(() => componentsTable.id, { onDelete: "cascade", onUpdate: "cascade" }), 183 184 lengthCm: numeric("length_cm").notNull(), 184 type: text("type").notNull() ,185 type: text("type").notNull() 185 186 }); 186 187 … … 191 192 wifiVersion: text("wifi_version").notNull(), 192 193 interface: text("interface").notNull(), 193 numAntennas: integer("num_antennas").notNull() ,194 numAntennas: integer("num_antennas").notNull() 194 195 }); 195 196 … … 200 201 numPorts: integer("num_ports").notNull(), 201 202 speed: numeric("speed").notNull(), 202 interface: text("interface").notNull() ,203 interface: text("interface").notNull() 203 204 }); 204 205
Note:
See TracChangeset
for help on using the changeset viewer.
