UNPKG
egg-rbac-instance
Version:
latest (1.1.0)
1.1.0
1.0.0
0.5.9
0.5.8
0.5.7
0.5.6
0.5.5
0.5.4
0.5.3
0.5.2
0.5.1
0.5.0
0.4.9
0.4.8
0.4.7
0.4.6
0.4.5
0.4.4
0.4.3
0.4.2
0.4.1
0.4.0
Role Based Access Control for eggjs
github.com/reboy/egg-rbac-instance
reboy/egg-rbac-instance
egg-rbac-instance
/
lib
/
mongoose
/
model
/
adpt.js
14 lines
(9 loc)
•
252 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
'use strict'
;
module
.
exports
=
(
mongoose,db
) =>
{
const
AdptSchema
=
new
mongoose.
Schema
({
name
: {
type
:
String
},
alias
: {
type
:
String
},
values
: {
type
:
String
} }, {
timestamps
:
true
})
return
db.
model
(
'Adpt'
,
AdptSchema
) };