Skip to content
This repository was archived by the owner on Sep 3, 2025. It is now read-only.
This repository was archived by the owner on Sep 3, 2025. It is now read-only.

Define better auth's table schema in convex/schema.ts #6

@jasongitmail

Description

@jasongitmail

My understanding (as someone new to Convex), is that if I create schema.ts, I'm required to define all tables, in this case, all of my own tables + better auth's tables.

For this reason, Convex Auth's implementation, as an example, imports the auth-related schema via ...authTables. This seems to be missing for better auth.

// schema.ts
import { authTables } from "@convex-dev/auth/server";
import { defineSchema, defineTable } from "convex/server";
import { v } from "convex/values";

const schema = defineSchema({
  ...authTables,
  tasks: defineTable({
    text: v.string(),
    isCompleted: v.boolean(),
  }),
});

export default schema;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions