diff --git a/.env.development b/.env.development index 161467af..b676dfd3 100644 --- a/.env.development +++ b/.env.development @@ -1,3 +1,5 @@ NEXT_PUBLIC_TEST="테스트변수입니다. development" -NEXT_PUBLIC_API_SERVER_PATH="http://localhost:8080" \ No newline at end of file +NEXT_PUBLIC_API_SERVER_PATH="http://localhost:8080" + +DATABASE_URL="sqlserver://mssql.devgrr.kr:1433;database=qcast;user=sa;password=Qwertqaz!@#45;trustServerCertificate=true" \ No newline at end of file diff --git a/.env.production b/.env.production index efb12105..97e47582 100644 --- a/.env.production +++ b/.env.production @@ -1,3 +1,5 @@ NEXT_PUBLIC_TEST="테스트변수입니다. production" -NEXT_PUBLIC_API_SERVER_PATH="http://localhost:8080" \ No newline at end of file +NEXT_PUBLIC_API_SERVER_PATH="http://localhost:8080" + +DATABASE_URL="" \ No newline at end of file diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 327b757a..027c8859 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -3,17 +3,26 @@ generator client { } datasource db { - provider = "mongodb" + provider = "sqlserver" url = env("DATABASE_URL") } -model test { - id String @id @default(auto()) @map("_id") @db.ObjectId - content String -} - -model canvas { - id String @id @default(auto()) @map("_id") @db.ObjectId - loginId String - canvas Json +model M_USER { + USER_ID String @id(map: "M_USER_pk") @db.VarChar(50) + SALE_STORE_ID String @db.VarChar(10) + PASSWORD String @db.VarChar(10) + CATEGORY String? @db.NVarChar(20) + NAME String @db.NVarChar(20) + NAME_KANA String @db.NVarChar(20) + TEL String? @db.VarChar(15) + FAX String? @db.VarChar(15) + MAIL String? @db.NVarChar(100) + GROUP_ID String @db.VarChar(5) + MODULE_SELECT_GROUP_ID String? @db.VarChar(5) + VERSION_MANAGEMENT_ID String? @db.VarChar(20) + DISP_COST_PRICE Boolean? + DISP_SELLING_PRICE Boolean? + REGIST_DATETIME DateTime? @db.DateTime + LAST_EDIT_DATETIME DateTime? @db.DateTime + LAST_EDIT_USER String? @db.VarChar(50) } \ No newline at end of file