Skip to content
Snippets Groups Projects
Commit f5c751ed authored by Ulung32's avatar Ulung32
Browse files

chore: create table historydetail

parent 39bb3356
No related merge requests found
...@@ -17,7 +17,7 @@ model User { ...@@ -17,7 +17,7 @@ model User {
password String password String
saldo Float @default(0.0) saldo Float @default(0.0)
histories History[] histories History[]
foto_file String foto_file String @default("default.jpg")
} }
model History { model History {
...@@ -27,8 +27,19 @@ model History { ...@@ -27,8 +27,19 @@ model History {
alamat_tujuan String alamat_tujuan String
nama_penerima String nama_penerima String
rating Int @default(0) rating Int @default(0)
history_detail HistoryDetail[]
} }
model HistoryDetail {
id Int @id @default(autoincrement())
history_id Int
history History @relation(fields: [history_id], references: [id])
product_name String
quantity Int
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment