🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
import { and, eq } from 'drizzle-orm';
import { buildWorkspaceWhere, type Database, groups } from './schema';
export class GroupModel {
constructor(
private db: Database,
private userId: string,
private workspaceId: string,
) {}
remove(id: string) {
return this.db
.delete(groups)
.where(
and(
eq(groups.id, id),
buildWorkspaceWhere({ userId: this.userId, workspaceId: this.workspaceId }, groups),
),
);
}
}