Phase 1A done
This commit is contained in:
@@ -12,6 +12,10 @@ export class ConsumerRepository {
|
||||
return db.select().from(consumers).where(eq(consumers.projectId, projectId));
|
||||
}
|
||||
|
||||
async listByCircuitList(circuitListId: string) {
|
||||
return db.select().from(consumers).where(eq(consumers.circuitListId, circuitListId));
|
||||
}
|
||||
|
||||
async create(input: CreateConsumerInput) {
|
||||
const id = crypto.randomUUID();
|
||||
const normalizedName = input.name?.trim() || "Unbenannter Eintrag";
|
||||
|
||||
Reference in New Issue
Block a user