9 lines
416 B
TypeScript
9 lines
416 B
TypeScript
// SPDX-License-Identifier: LicenseRef-ConusAI-Template-1.0
|
|
// The component's database functions over the locally installed schema.
|
|
import { createApi } from "@convex-dev/better-auth"
|
|
import { createAuthOptions } from "../auth"
|
|
import schema from "./schema"
|
|
|
|
export const { create, findOne, findMany, updateOne, updateMany, deleteOne, deleteMany, consumeOne, incrementOne } =
|
|
createApi(schema, createAuthOptions)
|