Skip to content

🤯 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.

387 B
Raw Blame
import { eq } from 'drizzle-orm';

import { bindings, type Database } from './schema';

export class BindingModel {
  constructor(
    private db: Database,
    private userId: string,
  ) {}

  /** Privileged cross-scope primitive. Caller MUST authorize the row before calling. */
  deleteAcrossScopes(id: string) {
    return this.db.delete(bindings).where(eq(bindings.id, id));
  }
}