Error creating organization

SERVER_ERROR: [Error [BetterAuthError]: The field "slug" does not exist in the schema for the model "organization". Please update your schema.] {

cause: undefined
}


export const organization = pgTable("organization", {
id: text("id").primaryKey(),
name: text("name").notNull(),
slug: text("slug").unique(),
logo: text("logo"),
createdAt: timestamp("created_at").notNull(),
metadata: text("metadata"),
});
Screenshot_2025-03-11_at_15.28.03.png
Was this page helpful?