Correct database design #11
No reviewers
Labels
No labels
bug
confirmed
critical
discussion
documentation
enhancement
suggestion
support
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Vergara_Tech/zgo-backend#11
Loading…
Reference in a new issue
No description provided.
Delete branch "rav001"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Persistent creates IDs automatically
@ -62,4 +59,3 @@
time Int default=0
deriving Show Eq
-- | Block transactions table (child table)
ZgoBlockTx
What is this table for?
@ -53,4 +53,2 @@
[mkPersist sqlSettings, mkMigrate "migrateAll"]
[persistLowerCase|
-- |
-- | Block table (ref. #49)
There is no need to add the
country_
prefix. Persistent will automatically create azgoCountryCode
accessor@ -81,3 +71,3 @@
ZgoItem json
owner ZgoOwnerId
owner_id Int
name T.Text
Text values should be
T.Text
instead ofString
@ -98,4 +83,2 @@
-- | (Owner child table)
-- |
ZgoOrder json
owner ZgoOwnerId
Using the
ZgoOwnerId
automatically created by Persistent, we can declare relationships between tables.@ -104,4 +86,4 @@
timestamp Int
closed Word8
currency T.Text
price Double
Persistent uses
Double
instead ofFloat
@ -108,3 +90,3 @@
total Double
totalZec Double
totalzec Double
paid Bool
Flags should be
Bool
notWord8
@ -155,9 +130,6 @@ share
paid Bool
expiration UTCTime
Dates should be
UTCTime
@ -171,4 +143,1 @@
-- |
-- | Price Table (ref. #56)
-- |
ZgoPrice
These fields do not correspond with the definition in Mantis #56
@ -195,3 +159,1 @@
amount Double default=0.00
txid T.Text
memo T.Text
zaddress T.Text default=""
These fields do not correspond with the definition in Mantis #58.
@ -230,3 +177,3 @@
expires UTCTime
expires Int
refreshtoken T.Text
accexpires Int
Should be
UTCTime
@ -232,3 +179,3 @@
accexpires Int
accCode T.Text
refexpires UTCTime
refexpires Int
Should be
UTCTime
Pull request closed