import { defineSchema } from "convex/server";
import { authTables } from "./schema/auth";
import { organizationTables } from "./schema/organizations";
import { bookingTables } from "./schema/bookings";
import { customerTables } from "./schema/customers";
import { billingTables } from "./schema/billing";
import { notificationTables } from "./schema/notifications";
import { supportTables } from "./schema/support";
import { socialTables } from "./schema/social";
import { leadTables } from "./schema/leads";
import { quotationTables } from "./schema/quotations";
import { whatsappTables } from "./schema/whatsapp";
import { voiceAgentTables } from "./schema/voice_agents";
import { contentTables } from "./schema/content";
import { careerTables } from "./schema/careers";
import { reviewTables } from "./schema/reviews";
import { expenseTables } from "./schema/expenses";
import { realEstateTables } from "./schema/real_estate";
import { analyticsTables } from "./schema/analytics";
import { workflowTables } from "./schema/workflows";
import { nurtureTables } from "./schema/nurture";
import { syncTables } from "./schema/sync";
import { storageTables } from "./schema/storage";
import { miscTables } from "./schema/misc";
import { rateLimitTables } from "./schema/rate_limiting";
import { vehicleTables } from "./schema/vehicles";

export default defineSchema({
  ...authTables,
  ...organizationTables,
  ...bookingTables,
  ...customerTables,
  ...billingTables,
  ...notificationTables,
  ...supportTables,
  ...socialTables,
  ...leadTables,
  ...quotationTables,
  ...whatsappTables,
  ...voiceAgentTables,
  ...contentTables,
  ...careerTables,
  ...reviewTables,
  ...expenseTables,
  ...realEstateTables,
  ...analyticsTables,
  ...workflowTables,
  ...nurtureTables,
  ...storageTables,
  ...syncTables,
  ...miscTables,
  ...rateLimitTables,
  ...vehicleTables,
});
