forked from steedos/steedos-platform
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaudit_logs.object.js
38 lines (36 loc) · 870 Bytes
/
audit_logs.object.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
const core = require('@steedos/core');
db.audit_logs = Creator.Collections.audit_logs ? Creator.Collections.audit_logs : core.newCollection('audit_logs');
// db.audit_logs._simpleSchema = new SimpleSchema({
// c_name: {
// type: String
// },
// c_action: {
// type: String
// },
// object_id: {
// type: String
// },
// object_name: {
// type: String
// },
// value_previous: {
// type: Object,
// optional: true,
// blackbox: true
// },
// value: {
// type: Object,
// optional: true,
// blackbox: true
// },
// created_by: {
// type: String
// },
// created_by_name: {
// type: String
// },
// created: {
// type: Date
// }
// });
// db.audit_logs.attachSchema(db.audit_logs._simpleSchema);