import { user, session, account, verification } from './auth'
import { customers, customersRelations } from './customers'
import { prices, pricesRelations } from './prices'
import { products } from './products'
import { subscriptions, subscriptionsRelations } from './subscriptions'
import { feedback, feedbackRelations, subscribers } from './admin'
import { notifications, notificationsRelations } from './notifications'
import { siteconfig } from './siteconfig'
import { deviceTokens, deviceTokensRelations, platformEnum } from './deviceTokens'

export * from './admin'
export * from './auth'
export * from './customers'
export * from './prices'
export * from './products'
export * from './subscriptions'
export * from './notifications'
export * from './siteconfig'
export * from './deviceTokens'

// Export a bundle of tables so the database util can merge schemas
export const tables = {
  user,
  session,
  account,
  verification,
  customers,
  prices,
  products,
  subscriptions,
  feedback,
  subscribers,
  notifications,
  siteconfig,
  deviceTokens,
  platformEnum,
  // Include relations so drizzle can resolve `with: {}` queries
  customersRelations,
  pricesRelations,
  subscriptionsRelations,
  feedbackRelations,
  notificationsRelations,
  deviceTokensRelations
}
