-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
30 lines (30 loc) · 1.3 KB
/
index.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
module.exports = function(bookshelf) {
require('./models/django_session')(bookshelf);
require('./models/django_site')(bookshelf);
require('./models/django_flatpage')(bookshelf);
require('./models/django_redirect')(bookshelf);
require('./models/django_content_type')(bookshelf);
require('./models/auth_permission')(bookshelf);
require('./models/auth_group')(bookshelf);
require('./models/auth_user')(bookshelf);
return {
Session: bookshelf.model('Django.Session'),
Sessions: bookshelf.collection('Django.Sessions'),
Site: bookshelf.model('Django.Site'),
Sites: bookshelf.collection('Django.Sites'),
FlatPage: bookshelf.model('Django.FlatPage'),
FlatPages: bookshelf.collection('Django.FlatPages'),
Redirect: bookshelf.model('Django.Redirect'),
Redirects: bookshelf.collection('Django.Redirects'),
ContentType: bookshelf.model('Django.ContentType'),
ContentTypes: bookshelf.collection('Django.ContentTypes'),
Auth: {
Permission: bookshelf.model('Django.Auth.Permission'),
Permissions: bookshelf.collection('Django.Auth.Permissions'),
Group: bookshelf.model('Django.Auth.Group'),
Groups: bookshelf.collection('Django.Auth.Groups'),
User: bookshelf.model('Django.Auth.User'),
Users: bookshelf.collection('Django.Auth.Users')
}
};
};