Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "storages/mongodb/schemas"

Index

Variables

Const blockMetaSchema

blockMetaSchema: Schema = new Schema({height: { type: 'Number', unique: true, required: true, dropDups: true },time: Number,size: Number,generationTime: Number,transactionCount: Number,createdBy: String,apiLevel: Number,},{ timestamps: true })

Const blockSchema

blockSchema: Schema = new Schema({height: Number,createdBy: String,source: String,userAgent: String,payload: {hash: String,size: Number,version: Number,previousblockhash: String,merkleroot: String,time: Number,index: { type: 'Number', required: true },nonce: String,nextconsensus: String,script: {invocation: String,verification: String,},tx: [],confirmations: Number,nextblockhash: String,},},{ timestamps: true })

Const transactionMetaSchema

transactionMetaSchema: Schema = new Schema({height: Number,time: Number,transactionId: { type: 'String', unique: true, required: true, dropDups: true },type: String,size: Number,networkFee: Number,systemFee: Number,voutCount: Number,vinCount: Number,createdBy: String,apiLevel: Number,},{ timestamps: true })

Generated using TypeDoc