2024-12-19 15:23:36 +01:00
|
|
|
package data
|
|
|
|
|
|
|
|
// Subset of urdt/ussd/common specifically for syncing to the central data store i.e Graph.
|
|
|
|
// TODO: Replace with imported data types from the common package once lib-gdbm dependency is removed.
|
|
|
|
const (
|
|
|
|
keyPrefix = 32
|
|
|
|
|
|
|
|
ACCOUNT_BLOCKCHAIN_ADDRESS = 1
|
|
|
|
ACCOUNT_FIRST_NAME = 3
|
|
|
|
ACCOUNT_LAST_NAME = 4
|
|
|
|
ACCOUNT_YOB = 5
|
|
|
|
ACCOUNT_LOCATION = 6
|
|
|
|
ACCOUNT_GENDER = 7
|
|
|
|
ACCOUNT_COMMODITIES = 8
|
|
|
|
ACCOUNT_ACTIVE_VOUCHER = 17
|
|
|
|
)
|
2025-01-02 10:05:09 +01:00
|
|
|
|
2025-01-09 07:28:41 +01:00
|
|
|
// ValidDataTypeLookup allows us to filter go-vise data types, additionally the value maps to the ussd_data coulmn
|
|
|
|
var ValidDataTypeLookup = map[uint16]string{
|
|
|
|
ACCOUNT_BLOCKCHAIN_ADDRESS: "blockchain_address",
|
|
|
|
ACCOUNT_FIRST_NAME: "first_name",
|
|
|
|
ACCOUNT_LAST_NAME: "last_name",
|
|
|
|
ACCOUNT_YOB: "yob",
|
|
|
|
ACCOUNT_LOCATION: "location_name",
|
|
|
|
ACCOUNT_GENDER: "gender",
|
|
|
|
ACCOUNT_COMMODITIES: "commodities",
|
|
|
|
ACCOUNT_ACTIVE_VOUCHER: "active_voucher",
|
2025-01-02 10:05:09 +01:00
|
|
|
}
|