Merge pull request #29 from bipproduction/investasi/beli_saham
Investasi/beli saham
@@ -22,7 +22,8 @@ model User {
|
|||||||
UserSession UserSession?
|
UserSession UserSession?
|
||||||
Profile Profile?
|
Profile Profile?
|
||||||
Investasi Investasi[]
|
Investasi Investasi[]
|
||||||
SahamTerbeli SahamTerbeli[]
|
// Investor Investor[]
|
||||||
|
TransaksiInvestasi TransaksiInvestasi[]
|
||||||
}
|
}
|
||||||
|
|
||||||
model MasterUserRole {
|
model MasterUserRole {
|
||||||
@@ -110,6 +111,10 @@ model Investasi {
|
|||||||
updatedAt DateTime @default(now()) @updatedAt
|
updatedAt DateTime @default(now()) @updatedAt
|
||||||
author User? @relation(fields: [authorId], references: [id])
|
author User? @relation(fields: [authorId], references: [id])
|
||||||
authorId String?
|
authorId String?
|
||||||
|
catatan String?
|
||||||
|
sisaLembar String
|
||||||
|
lembarTerbeli String? @default("0")
|
||||||
|
progress String? @default("0")
|
||||||
|
|
||||||
MasterPeriodeDeviden MasterPeriodeDeviden? @relation(fields: [masterPeriodeDevidenId], references: [id])
|
MasterPeriodeDeviden MasterPeriodeDeviden? @relation(fields: [masterPeriodeDevidenId], references: [id])
|
||||||
masterPeriodeDevidenId String?
|
masterPeriodeDevidenId String?
|
||||||
@@ -123,12 +128,13 @@ model Investasi {
|
|||||||
|
|
||||||
ProspektusInvestasi ProspektusInvestasi?
|
ProspektusInvestasi ProspektusInvestasi?
|
||||||
|
|
||||||
SahamTerbeli SahamTerbeli? @relation(fields: [sahamTerbeliId], references: [id])
|
|
||||||
sahamTerbeliId String?
|
|
||||||
MasterStatusInvestasi MasterStatusInvestasi? @relation(fields: [masterStatusInvestasiId], references: [id])
|
MasterStatusInvestasi MasterStatusInvestasi? @relation(fields: [masterStatusInvestasiId], references: [id])
|
||||||
masterStatusInvestasiId String? @default("1")
|
masterStatusInvestasiId String? @default("1")
|
||||||
BeritaInvestasi BeritaInvestasi[]
|
BeritaInvestasi BeritaInvestasi[]
|
||||||
DokumenInvestasi DokumenInvestasi[]
|
DokumenInvestasi DokumenInvestasi[]
|
||||||
|
|
||||||
|
// Investor Investor[]
|
||||||
|
TransaksiInvestasi TransaksiInvestasi[]
|
||||||
}
|
}
|
||||||
|
|
||||||
model MasterPencarianInvestor {
|
model MasterPencarianInvestor {
|
||||||
@@ -202,15 +208,53 @@ model BeritaInvestasi {
|
|||||||
investasiId String
|
investasiId String
|
||||||
}
|
}
|
||||||
|
|
||||||
model SahamTerbeli {
|
model MasterBank {
|
||||||
id String @id @default(cuid())
|
id String @id @default(cuid())
|
||||||
totalBeli String
|
name String
|
||||||
jumlahLembar String
|
norek String
|
||||||
active Boolean @default(true)
|
active Boolean @default(true)
|
||||||
createdAt DateTime @default(now())
|
createdAt DateTime @default(now())
|
||||||
updatedAt DateTime @default(now()) @updatedAt
|
updatedAt DateTime @updatedAt
|
||||||
|
|
||||||
author User @relation(fields: [authorId], references: [id])
|
|
||||||
authorId String
|
|
||||||
investasi Investasi[]
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
model TransaksiInvestasi {
|
||||||
|
id String @id @default(cuid())
|
||||||
|
Investasi Investasi? @relation(fields: [investasiId], references: [id])
|
||||||
|
investasiId String?
|
||||||
|
Author User? @relation(fields: [authorId], references: [id])
|
||||||
|
authorId String?
|
||||||
|
|
||||||
|
namaBank String
|
||||||
|
nomorRekening String
|
||||||
|
lembarTerbeli String
|
||||||
|
totalTransfer String
|
||||||
|
active Boolean @default(true)
|
||||||
|
createdAt DateTime @default(now())
|
||||||
|
updatedAt DateTime @updatedAt
|
||||||
|
MasterStatusTransaksiInvestasi MasterStatusTransaksiInvestasi? @relation(fields: [masterStatusTransaksiInvestasiId], references: [id])
|
||||||
|
masterStatusTransaksiInvestasiId String? @default("1")
|
||||||
|
}
|
||||||
|
|
||||||
|
model MasterStatusTransaksiInvestasi {
|
||||||
|
id String @id @default(cuid())
|
||||||
|
name String
|
||||||
|
color String?
|
||||||
|
active Boolean @default(true)
|
||||||
|
createdAt DateTime @default(now())
|
||||||
|
updatedAt DateTime @updatedAt
|
||||||
|
TransaksiInvestasi TransaksiInvestasi[]
|
||||||
|
}
|
||||||
|
|
||||||
|
// model Investor {
|
||||||
|
// id String @id @default(cuid())
|
||||||
|
// totalBeli String
|
||||||
|
// jumlahLembar String
|
||||||
|
// active Boolean @default(true)
|
||||||
|
// createdAt DateTime @default(now())
|
||||||
|
// updatedAt DateTime @updatedAt
|
||||||
|
|
||||||
|
// Investasi Investasi? @relation(fields: [investasiId], references: [id])
|
||||||
|
// investasiId String?
|
||||||
|
// User User? @relation(fields: [userId], references: [id])
|
||||||
|
// userId String?
|
||||||
|
// }
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 103 KiB |
|
Before Width: | Height: | Size: 64 KiB |
|
Before Width: | Height: | Size: 122 KiB |
|
Before Width: | Height: | Size: 103 KiB |
|
Before Width: | Height: | Size: 122 KiB |
|
Before Width: | Height: | Size: 94 KiB |
|
Before Width: | Height: | Size: 103 KiB |
|
Before Width: | Height: | Size: 57 KiB |
|
Before Width: | Height: | Size: 103 KiB |
|
Before Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 2.3 MiB |
|
Before Width: | Height: | Size: 159 KiB |
|
Before Width: | Height: | Size: 263 KiB After Width: | Height: | Size: 263 KiB |
|
Before Width: | Height: | Size: 159 KiB |
|
Before Width: | Height: | Size: 268 KiB |
|
Before Width: | Height: | Size: 94 KiB |
|
Before Width: | Height: | Size: 2.3 MiB |
|
Before Width: | Height: | Size: 7.1 KiB |
|
Before Width: | Height: | Size: 2.3 MiB |
|
Before Width: | Height: | Size: 159 KiB |
|
Before Width: | Height: | Size: 94 KiB |
|
Before Width: | Height: | Size: 110 KiB |
|
Before Width: | Height: | Size: 268 KiB After Width: | Height: | Size: 268 KiB |
|
Before Width: | Height: | Size: 7.1 KiB |
|
Before Width: | Height: | Size: 2.3 MiB |
|
Before Width: | Height: | Size: 268 KiB |
|
Before Width: | Height: | Size: 268 KiB |
|
Before Width: | Height: | Size: 268 KiB |
|
Before Width: | Height: | Size: 263 KiB |
|
Before Width: | Height: | Size: 94 KiB |
|
Before Width: | Height: | Size: 2.3 MiB |
|
Before Width: | Height: | Size: 156 KiB |
|
Before Width: | Height: | Size: 94 KiB |
|
Before Width: | Height: | Size: 110 KiB |
|
Before Width: | Height: | Size: 2.3 MiB |
|
Before Width: | Height: | Size: 132 KiB |
|
Before Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 263 KiB |
|
Before Width: | Height: | Size: 217 KiB |
|
Before Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 40 KiB |
|
Before Width: | Height: | Size: 6.1 KiB |
|
Before Width: | Height: | Size: 7.1 KiB |
|
Before Width: | Height: | Size: 263 KiB |
|
Before Width: | Height: | Size: 7.1 KiB |
|
Before Width: | Height: | Size: 94 KiB |
|
Before Width: | Height: | Size: 202 KiB |
|
Before Width: | Height: | Size: 57 KiB |
|
Before Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 268 KiB |
|
Before Width: | Height: | Size: 5.8 KiB |
|
Before Width: | Height: | Size: 94 KiB |
|
Before Width: | Height: | Size: 49 KiB |
|
Before Width: | Height: | Size: 159 KiB |
|
Before Width: | Height: | Size: 268 KiB |
|
Before Width: | Height: | Size: 159 KiB |
|
Before Width: | Height: | Size: 156 KiB |
|
Before Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 94 KiB |
|
Before Width: | Height: | Size: 57 KiB |
|
Before Width: | Height: | Size: 217 KiB |
|
Before Width: | Height: | Size: 110 KiB |
|
Before Width: | Height: | Size: 263 KiB |
|
Before Width: | Height: | Size: 268 KiB |
|
Before Width: | Height: | Size: 110 KiB |
|
Before Width: | Height: | Size: 57 KiB |
|
Before Width: | Height: | Size: 263 KiB |
|
Before Width: | Height: | Size: 263 KiB |
BIN
public/investasi/9c22717f-2882-438b-8d1b-70ddb88ed305.jpeg
Normal file
|
After Width: | Height: | Size: 194 KiB |
|
Before Width: | Height: | Size: 5.8 KiB |
|
Before Width: | Height: | Size: 387 KiB |
|
Before Width: | Height: | Size: 159 KiB |
|
Before Width: | Height: | Size: 2.3 MiB |
|
Before Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 110 KiB |
|
Before Width: | Height: | Size: 268 KiB |
|
Before Width: | Height: | Size: 94 KiB |