mirror of
https://github.com/stronk-dev/LivepeerEvents.git
synced 2025-07-05 18:55:09 +02:00
27 lines
460 B
JavaScript
27 lines
460 B
JavaScript
import mongoose from 'mongoose';
|
|
|
|
const EventSchema = new mongoose.Schema({
|
|
address: {
|
|
type: String,
|
|
required: true
|
|
},
|
|
transactionHash: {
|
|
type: String,
|
|
required: true
|
|
},
|
|
transactionUrl: {
|
|
type: String,
|
|
required: true
|
|
},
|
|
name: {
|
|
type: String,
|
|
required: true
|
|
},
|
|
data: {
|
|
type: Object,
|
|
required: true
|
|
},
|
|
}, { timestamps: true });
|
|
|
|
const Event = mongoose.model('Event', EventSchema);
|
|
export default Event; |