From aa632e63c82ca4d3aa2df4ba051e6cfe1e77eb9b Mon Sep 17 00:00:00 2001 From: Aponia Date: Wed, 15 May 2024 23:04:26 -0700 Subject: [PATCH] fix(backend): db schema entrypoint --- apps/backend/src/db/schema/index.ts | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) diff --git a/apps/backend/src/db/schema/index.ts b/apps/backend/src/db/schema/index.ts index 21fddc7de..b9b15f43f 100644 --- a/apps/backend/src/db/schema/index.ts +++ b/apps/backend/src/db/schema/index.ts @@ -1,16 +1,4 @@ -import { integer, pgEnum, pgTable, serial, uniqueIndex, varchar } from 'drizzle-orm/pg-core'; - -export const user = pgTable( - 'user', - { - id: serial('id').primaryKey(), - name: varchar('name', { length: 256 }), - }, -); - -export const cities = pgTable('cities', { - id: serial('id').primaryKey(), - name: varchar('name', { length: 256 }), - countryId: integer('country_id').references(() => countries.id), - popularity: popularityEnum('popularity'), -}); +export * from './auth' +export * from './course' +export * from './schedule' +export * from './subscription'