last commit before trying out opencode on repo
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { defineSchema, defineTable } from "convex/server";
|
||||
import { v, VId } from "convex/values";
|
||||
import { authTables } from '@convex-dev/auth/server';
|
||||
import { defineSchema, defineTable } from 'convex/server';
|
||||
import { v, VId } from 'convex/values';
|
||||
|
||||
const applicationTables = {
|
||||
questions: defineTable({
|
||||
@@ -10,8 +10,7 @@ const applicationTables = {
|
||||
topic: v.string(),
|
||||
difficulty: v.optional(v.string()),
|
||||
explanation: v.optional(v.string()),
|
||||
})
|
||||
.index('by_topic', ['topic']),
|
||||
}).index('by_topic', ['topic']),
|
||||
|
||||
userProgress: defineTable({
|
||||
userId: v.id('users'),
|
||||
@@ -30,8 +29,7 @@ const applicationTables = {
|
||||
completedQuestions: v.array(v.id('questions')),
|
||||
currentQuestionIndex: v.number(),
|
||||
isActive: v.boolean(),
|
||||
})
|
||||
.index('by_user_and_active', ['userId', 'isActive']),
|
||||
}).index('by_user_and_active', ['userId', 'isActive']),
|
||||
};
|
||||
|
||||
export default defineSchema({
|
||||
|
||||
Reference in New Issue
Block a user