From 2490e17d35755af2bdc87137f53fe5096cf2a64e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Pedro=20Henrique?= Date: Mon, 20 Nov 2023 10:41:04 -0300 Subject: [PATCH] feat(database): Add airports table schema (#418) --- packages/database/src/schema.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/database/src/schema.ts b/packages/database/src/schema.ts index 36993fb8..2a33bcf6 100644 --- a/packages/database/src/schema.ts +++ b/packages/database/src/schema.ts @@ -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