Skip to content

Commit

Permalink
fix(backend): db schema entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
ap0nia authored and MinhxNguyen7 committed Oct 24, 2024
1 parent 54a0644 commit aa632e6
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions apps/backend/src/db/schema/index.ts
Original file line number Diff line number Diff line change
@@ -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'

0 comments on commit aa632e6

Please sign in to comment.