Made great progress on monorepo & auth for next. Very happy with work!
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { authTables } from '@convex-dev/auth/server';
|
||||
import { defineSchema, defineTable } from 'convex/server';
|
||||
import { v } from 'convex/values';
|
||||
import { authTables } from '@convex-dev/auth/server';
|
||||
|
||||
const applicationTables = {
|
||||
// Users contains name image & email.
|
||||
@@ -10,8 +10,7 @@ const applicationTables = {
|
||||
profiles: defineTable({
|
||||
userId: v.id('users'),
|
||||
theme_preference: v.optional(v.string()),
|
||||
})
|
||||
.index('userId', ['userId'])
|
||||
}).index('userId', ['userId']),
|
||||
};
|
||||
|
||||
export default defineSchema({
|
||||
@@ -29,8 +28,8 @@ export default defineSchema({
|
||||
phoneVerificationTime: v.optional(v.number()),
|
||||
isAnonymous: v.optional(v.boolean()),
|
||||
})
|
||||
.index("email", ["email"])
|
||||
.index('email', ['email'])
|
||||
.index('name', ['name'])
|
||||
.index("phone", ["phone"]),
|
||||
.index('phone', ['phone']),
|
||||
...applicationTables,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user