CoreID/app/models/Activity.model.js
2020-07-12 16:05:59 -05:00

16 lines
364 B
JavaScript

const { Model } = require('flitter-orm')
class ActivityModel extends Model {
static get schema() {
return {
user_id: String,
session_id: String,
action: String,
timestamp: { type: Date, default: () => new Date },
metadata: Object,
}
}
}
module.exports = exports = ActivityModel