CoreID/app/models/Activity.model.js

16 lines
364 B
JavaScript
Raw Permalink Normal View History

2020-07-12 21:05:59 +00:00
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