diff options
| author | joonhoekim <26rote@gmail.com> | 2025-06-27 01:25:48 +0000 |
|---|---|---|
| committer | joonhoekim <26rote@gmail.com> | 2025-06-27 01:25:48 +0000 |
| commit | 15b2d4ff61d0339385edd8cc67bf7579fcc2af08 (patch) | |
| tree | f0c36724855abccf705a9cdcae6fa3efd54d996d /db/schema/SOAP | |
| parent | e9897d416b3e7327bbd4d4aef887eee37751ae82 (diff) | |
(김준회) MDG SOAP 수신 유틸리티 및 API 엔드포인트, 스키마
Diffstat (limited to 'db/schema/SOAP')
| -rw-r--r-- | db/schema/SOAP/soap.ts | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/db/schema/SOAP/soap.ts b/db/schema/SOAP/soap.ts new file mode 100644 index 00000000..7a16b50a --- /dev/null +++ b/db/schema/SOAP/soap.ts @@ -0,0 +1,22 @@ +import { serial, varchar, timestamp, text, boolean } from "drizzle-orm/pg-core"; +import { pgSchema } from "drizzle-orm/pg-core"; + +export const soapSchema = pgSchema("soap"); + +export const soapLogs = soapSchema.table("soap_logs", { + id: serial().primaryKey(), + direction: varchar({ length: 20 }).notNull(), + system: varchar({ length: 50 }).notNull(), + interface: varchar({ length: 100 }).notNull(), + startedAt: timestamp().notNull(), + endedAt: timestamp(), + isSuccess: boolean().default(false).notNull(), + requestData: text(), + responseData: text(), + errorMessage: text(), +}); + +export type LogDirection = 'INBOUND' | 'OUTBOUND'; + +export type SoapLogInsert = typeof soapLogs.$inferInsert; +export type SoapLogSelect = typeof soapLogs.$inferSelect;
\ No newline at end of file |
