Files
nginx-proxy-manager/backend/models/user_permission.js
Jamie Curnow a12553fec7 Convert backend to ESM
- About 5 years overdue
- Remove eslint, use bomejs instead
2025-09-03 13:59:40 +10:00

30 lines
490 B
JavaScript

// Objection Docs:
// http://vincit.github.io/objection.js/
import { Model } from "objection";
import db from "../db.js";
import now from "./now_helper.js";
Model.knex(db);
class UserPermission extends Model {
$beforeInsert () {
this.created_on = now();
this.modified_on = now();
}
$beforeUpdate () {
this.modified_on = now();
}
static get name () {
return 'UserPermission';
}
static get tableName () {
return 'user_permission';
}
}
export default UserPermission;