Add active scope to Codium model and set on delete (#11)
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
const Model = require('flitter-orm/src/model/Model')
|
||||
const uuid = require('uuid/v4')
|
||||
const ActiveScope = require('../scopes/Active.scope')
|
||||
|
||||
/*
|
||||
* Codium Model
|
||||
@@ -15,8 +16,11 @@ class Codium extends Model {
|
||||
PageId: String,
|
||||
code: String,
|
||||
UUID: { type: String, default: () => uuid() },
|
||||
Active: { type: Boolean, default: true },
|
||||
}
|
||||
}
|
||||
|
||||
static scopes = [new ActiveScope]
|
||||
|
||||
// Static and instance methods can go here
|
||||
get page() {
|
||||
|
||||
Reference in New Issue
Block a user