diff options
| author | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-04-08 03:08:19 +0000 |
|---|---|---|
| committer | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-04-08 03:08:19 +0000 |
| commit | 9ceed79cf32c896f8a998399bf1b296506b2cd4a (patch) | |
| tree | f84750fa6cac954d5e31221fc47a54c655fc06a9 /db/schema/projects.ts | |
| parent | 230ce796836c25df26c130dbcd616ef97d12b2ec (diff) | |
로그인 및 미들웨어 처리. 구조 변경
Diffstat (limited to 'db/schema/projects.ts')
| -rw-r--r-- | db/schema/projects.ts | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/db/schema/projects.ts b/db/schema/projects.ts index 9e253d77..9220b249 100644 --- a/db/schema/projects.ts +++ b/db/schema/projects.ts @@ -1,13 +1,13 @@ -import { pgTable, varchar, text, timestamp ,serial} from "drizzle-orm/pg-core" +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(), + 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(), - }) + createdAt: timestamp("created_at").defaultNow().notNull(), + updatedAt: timestamp("updated_at").defaultNow().notNull(), +}) - export type Project = typeof projects.$inferSelect
\ No newline at end of file +export type Project = typeof projects.$inferSelect
\ No newline at end of file |
