Skip to content

Commit

Permalink
fix: Tables for databases cleaned up and updated
Browse files Browse the repository at this point in the history
  • Loading branch information
Axeloooo committed Feb 4, 2024
1 parent 7751041 commit 55d0470
Showing 1 changed file with 2 additions and 25 deletions.
27 changes: 2 additions & 25 deletions backend/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ generator client {
}

datasource db {
provider = "mysql"
url = env("DATABASE_URL")
relationMode = "prisma"
provider = "mysql"
url = env("DATABASE_URL")
}

model Product {
Expand All @@ -21,25 +20,3 @@ model Product {
createdAt DateTime @default(now()) @map("created_at")
updatedAt DateTime @updatedAt @map("updated_at")
}

model Order {
id String @id @default(uuid())
email String
productId String @map("product_id")
createdAt DateTime @default(now()) @map("created_at")
updatedAt DateTime @updatedAt @map("updated_at")
}

model User {
id String @id @default(uuid())
phoneNumber String @unique @map("phone_number")
email String @unique
password String
firstName String @map("first_name")
lastName String @map("last_name")
gender String
postalCode String @map("postal_code")
dateOfBirth DateTime @map("date_of_birth")
createdAt DateTime @default(now()) @map("created_at")
updatedAt DateTime @updatedAt @map("updated_at")
}

0 comments on commit 55d0470

Please sign in to comment.