17 lines
398 B
JavaScript
17 lines
398 B
JavaScript
const mongoose = require('mongoose');
|
|
|
|
const Schema = mongoose.Schema;
|
|
|
|
const OutputSchema = new Schema({
|
|
address: { type: String, default: '' },
|
|
script: { type: String, default: '' },
|
|
value: { type: Number, default: 0 },
|
|
type: { type: String, default: '' },
|
|
});
|
|
|
|
OutputSchema.index({ address: 1 });
|
|
|
|
const Output = mongoose.model('Output', OutputSchema);
|
|
|
|
module.exports = Output;
|