The schemata can be found in
src/database/schemata.js
. Each schema defines an flow type that represent it's value so that it can be better consumed by flow. All types are realm types.
ProfileSchema
Properties:
id
(type:int
) - used by realmname
(type:string
) - is the username of the profile. Later this will be searchablelocation
(type:string
) - location of the user (like Germany, or Colon)latitude
(type:string
)longitude
(type:string
)description
(type:string
) - short description of the userimage
(type:string
) - base64 encoded image profile image of the userversion
(type:string
) - specifies the version of the profile
AccountBalanceSchema
Properties:
id
(type:string
) - this is the ETH address +_ETH
as a prefix. E.g:0xaf137676a815a09302a348e339cf9d85d2c91706_ETH
address
(type:string
) - e.g. ethereum addressamount
(type:string
) - amount in the smallest unitsynced_at
: (type:Date
) - the last synccurrency
: (type:string
) - e.g.ether
MessageJobSchema
Properties:
id
(type:int
) - internal idheading
(type:string
, optional:true
) - the heading. This is only needed when the message is displayed in an alertversion
(type:int
) - version of the typeinterpret
(type:bool
) - msg / heading can be an key likenation.created
. You might convert that key to an meaningful text.interpret
basically mean's if you should convert the value or not.params
(type:string
) - JSON object as string that hold's the parametersdisplay
(type:bool
) - Should the message be displayed in an Alert?msg
(type:bool
) - The messageversion
(type:int
) - The version of this jobcreated_at
(type:Date
) - Moment when persisted to the database
TransactionJobSchema
It's not sure if we will continue using the transaction job in the future. That's the reason why we will not document it here.
NationSchema
Properties:
id
(type:int
) - internal id for the applicationidInSmartContract
(type:int
) - id in nation smart contracttxHash
(type:string
) - the transaction hash of the transaction where the nation was createdcreated
(type:bool
) - When an nation is created by it's owner it's persisted immediately BUT this flag is set to false so that we can use this in the UI to determine if we should display it different etc.nationName
(type:string
)nationDescription
(type:string
)exists
(type:bool
) - if the nation does existvirtualNation
(type:bool
) - is virtual nation?nationCode
(type:bool
) - code of lawlawEnforcementMechanism
(type:string
)profit
(type:bool
) - for profit use?nonCitizenUse
(type:bool
) - can non citizens use the services?diplomaticRecognition
(type:bool
)decisionMakingProcess
(type:string
)governanceService
(type:string
) - a list of servicescitizens
(type:int
) - the number of citizensjoined
(type:bool
) - did I join?