Simplify Assets and UserAccounts database tables.

This commit is contained in:
Severiano Jaramillo 2018-11-01 14:41:10 -06:00
parent ff43dcc4f4
commit eed3407b7d
2 changed files with 2 additions and 10 deletions

View file

@ -10,14 +10,6 @@ data class Asset(
@ColumnInfo(name = "id") val id: String,
@ColumnInfo(name = "symbol") val symbol: String,
@ColumnInfo(name = "precision") val precision: Int,
@ColumnInfo(name = "issuer") val issuer: String,
@ColumnInfo(name = "description") val description: String,
@ColumnInfo(name = "max_supply") val maxSupply: Long, // TODO verify type
@ColumnInfo(name = "market_fee_percent") val marketFeePercent: Float, // TODO verify type
@ColumnInfo(name = "max_market_fee") val maxMarketFee: Float, // TODO verify type
@ColumnInfo(name = "issuer_permissions") val issuerPermissions: Int,
@ColumnInfo(name = "flags") val flags: Int,
@ColumnInfo(name = "asset_type") val assetType: Int,
@ColumnInfo(name = "bit_asset_id") val bitAssetId: String,
@ColumnInfo(name = "holders_count") val holdersCount: Int
@ColumnInfo(name = "bit_asset_id") val bitAssetId: String
)

View file

@ -9,6 +9,6 @@ data class UserAccount (
@PrimaryKey
@ColumnInfo(name = "id") val id: String,
@ColumnInfo(name = "name") val name: String,
@ColumnInfo(name = "is_ltm") val isLtm: Boolean, // Todo verify data type
@ColumnInfo(name = "is_ltm") val isLtm: Boolean,
@ColumnInfo(name = "weight_threshold") val weightThreshold: Int // TODO verify data type
)