Skip to content

Commit

Permalink
feat(database): Add airports table schema (#418)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpedroh authored Nov 20, 2023
1 parent 3c0a9b1 commit 2490e17
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/database/src/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,11 @@ export const flights = mysqlTable('flights', {
})

export type Flight = typeof flights.$inferSelect

export const airports = mysqlTable('airports', {
id: varchar('id', { length: 4 }).primaryKey(),
name: varchar('name', { length: 255 }).notNull(),
city: varchar('city', { length: 255 }).notNull(),
})

export type Airport = typeof airports.$inferSelect

0 comments on commit 2490e17

Please sign in to comment.