terakhir yaitu mengupdate setiap transaksi jatuh tempo yang telah berhasil lelang ke pegadaian terkait.
1.2.8 Entity Relationship Diagram ERD
Entity relationship diagram digunakan untuk melihat hubungan antar tabel yang ada pada sistem yang dibangun. ERD dibagi menjadi 2 dua bagian,
yaitu: a.
Conceptual Data Model CDM
Gambar 1.2-12 CDM Web Lelang Online
auction o
o o
o o
idauction publicationdate
startdateauction enddateauction
startbit multiplebit
directpurchase auctionstatue
loanspay takingmethod
takingstatue created_at
updated_at Serial 10
Date Time Date Time
Date Time Integer
Integer Integer
Variable characters 50 Variable characters 50
Variable characters 50 Variable characters 50
Timestamp Timestamp
bank idbank
bank recnum
isactive Serial 10
Variable characters 50 Integer
Byte 1 category
o idcategory
category created_at
updated_at Serial 10
Variable characters 50 Timestamp
Timestamp customer
o idcustomer
idcustomerbranch customername
customerphone idpawnshop
created_at updated_at
Serial 10 Variable characters 50
Variable characters 50 Variable characters 50
Variable characters 50 Timestamp
Timestamp
level o
idlevel level
isblock created_at
updated_at Serial 10
Variable characters 50 Byte 1
Timestamp Timestamp
message o
o o
o o
idmessage msgcode
idpeople phone
message download
upload senddate
sendstatue created_at
updated_at Serial 10
Variable characters 50 Variable characters 50
Variable characters 50 Variable characters 200
Date Time Date Time
Date Time Variable characters 50
Timestamp Timestamp
migrations migration
batch Variable characters 255
Integer participant
o o
o o
o o
o idparticipant
accountname phonenumber
addresscard addressdomicile
confirmemail confirmcard
picprofile picidentity
registrationdate created_at
updated_at bank
recnum Serial 10
Variable characters 50 Variable characters 12
Variable characters 200 Variable characters 200
Byte 1 Byte 1
Variable characters 255 Variable characters 255
Date Time Timestamp
Timestamp Variable characters 45
Integer participate
ididparticipate coin
dateoffer Serial 10
Integer Date Time
pawnshop idpawnshop
pawnshop created_at
updated_at Serial 10
Variable characters 50 Timestamp
Timestamp
purchase o
o o
o o
o idpurchase
purchase coin
status datepurchase
uploaddateevidence phototransfer
transferdate frombank
fromrecnum iscancel
Serial 10 Integer
Integer Variable characters 50
Date Time Date Time
Date Time Date Time
Variable characters 50 Variable characters 50
Byte 1 transaction
o o
o o
o idtransaction
idtransactionbranch goodsname
loans haspay
goodspic1 goodspic2
goodspic3 isauctionregister
transactionstatue created_at
updated_at Serial 10
Variable characters 50 Variable characters 50
Integer Integer
Variable characters 50 Variable characters 50
Variable characters 50 Byte 1
Variable characters 50 Timestamp
Timestamp
users o
o o
o o
iduser username
password email
createondate userpicture
idsession forgetkey
isblock remember_token
created_at updated_at
Serial 10 Variable characters 50
Variable characters 60 Variable characters 100
Date Time Variable characters 100
Variable characters 100 Variable characters 100
Byte 1 Variable characters 100
Timestamp Timestamp
withdrawal o
o o
o o
o idwithdrawal
withdrawal coin
status datewithdrawal
uploaddateevidence phototransfer
transferdate tobank
torecnum iscancel
Integer Integer
Integer Variable characters 50
Date Time Date Time
Date Time Date Time
Variable characters 50 Variable characters 50
Byte 1 auction_idtransaction_foreign
auction_msgtocustomer_foreign auction_msgtoparticipant_foreign
auction_participantwin_foreign participate_idauction_foreign
participate_idparticipant_foreign
purchase_idparticipant_foreign
purchase_tobank_foreign transaction_category_foreign
transaction_idcustomer_foreign
users_idlevel_foreign withdrawal_idparticipant_foreign
participant_iduser_foreign customer_idpawnshop
b. Physical Data Model PDM
Gambar 1.2-13 PDM Web Lelang Online
1.2.9 Struktur Tabel