chartOfAccounts: defineTable({ code: v.optional(v.string()), name: v.optional(v.string()),

2 Replies
chartOfAccounts: defineTable({
code: v.optional(v.string()),
name: v.optional(v.string()),
accountType: v.optional(
v.union(
v.literal("asset"),
v.literal("liability"),
v.literal("equity"),
v.literal("revenue"),
v.literal("expense"),
v.literal("asset_liability")
)
),
parentCode: v.optional(v.string()),
isActive: v.optional(v.boolean()),
description: v.optional(v.string()),
allFields: v.optional(v.string()),
})
.searchIndex("search_allFields", {
searchField: "allFields",
})
.index("by_code", ["code"]),
i get infinite backfilling loading...
Because you're self-hosting, I recommend taking this discussion to the #self-hosted channel. They may ask for more details about your setup there (the snippets you've pasted above don't provide a complete enough picture of the configuration of your project).