chore: prep platform improvements
This commit is contained in:
parent
a62f3d5283
commit
c5ddd54a3e
24 changed files with 777 additions and 649 deletions
|
|
@ -184,6 +184,8 @@ export default defineSchema({
|
|||
teamId: v.optional(v.id("teams")),
|
||||
})
|
||||
.index("by_tenant_slug", ["tenantId", "slug"])
|
||||
.index("by_tenant_team", ["tenantId", "teamId"])
|
||||
.index("by_tenant_name", ["tenantId", "name"])
|
||||
.index("by_tenant", ["tenantId"]),
|
||||
|
||||
teams: defineTable({
|
||||
|
|
@ -322,6 +324,9 @@ export default defineSchema({
|
|||
.index("by_tenant_requester", ["tenantId", "requesterId"])
|
||||
.index("by_tenant_company", ["tenantId", "companyId"])
|
||||
.index("by_tenant_machine", ["tenantId", "machineId"])
|
||||
.index("by_tenant_category", ["tenantId", "categoryId"])
|
||||
.index("by_tenant_subcategory", ["tenantId", "subcategoryId"])
|
||||
.index("by_tenant_sla_policy", ["tenantId", "slaPolicyId"])
|
||||
.index("by_tenant", ["tenantId"])
|
||||
.index("by_tenant_created", ["tenantId", "createdAt"])
|
||||
.index("by_tenant_resolved", ["tenantId", "resolvedAt"])
|
||||
|
|
@ -480,6 +485,7 @@ export default defineSchema({
|
|||
key: v.string(),
|
||||
label: v.string(),
|
||||
type: v.string(),
|
||||
companyId: v.optional(v.id("companies")),
|
||||
description: v.optional(v.string()),
|
||||
required: v.boolean(),
|
||||
order: v.number(),
|
||||
|
|
@ -498,6 +504,7 @@ export default defineSchema({
|
|||
.index("by_tenant_key", ["tenantId", "key"])
|
||||
.index("by_tenant_order", ["tenantId", "order"])
|
||||
.index("by_tenant_scope", ["tenantId", "scope"])
|
||||
.index("by_tenant_company", ["tenantId", "companyId"])
|
||||
.index("by_tenant", ["tenantId"]),
|
||||
|
||||
ticketFormSettings: defineTable({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue