summaryrefslogtreecommitdiff
path: root/db/schema/projects.ts
diff options
context:
space:
mode:
authordujinkim <dujin.kim@dtsolution.co.kr>2025-03-26 00:37:41 +0000
committerdujinkim <dujin.kim@dtsolution.co.kr>2025-03-26 00:37:41 +0000
commite0dfb55c5457aec489fc084c4567e791b4c65eb1 (patch)
tree68543a65d88f5afb3a0202925804103daa91bc6f /db/schema/projects.ts
3/25 까지의 대표님 작업사항
Diffstat (limited to 'db/schema/projects.ts')
-rw-r--r--db/schema/projects.ts13
1 files changed, 13 insertions, 0 deletions
diff --git a/db/schema/projects.ts b/db/schema/projects.ts
new file mode 100644
index 00000000..9e253d77
--- /dev/null
+++ b/db/schema/projects.ts
@@ -0,0 +1,13 @@
+import { pgTable, varchar, text, timestamp ,serial} from "drizzle-orm/pg-core"
+
+export const projects = pgTable("projects", {
+ id: serial("id").primaryKey(),
+ code: varchar("code", { length: 50 }).notNull(),
+ name: text("name").notNull(),
+ type: varchar("type", { length: 20 }).default("ship").notNull(),
+
+ createdAt: timestamp("created_at").defaultNow().notNull(),
+ updatedAt: timestamp("updated_at").defaultNow().notNull(),
+ })
+
+ export type Project = typeof projects.$inferSelect \ No newline at end of file