UNPKG
bookshelf-uuid
Version:
latest (1.0.1)
1.0.1
1.0.0
Automatically generates UUID for your models
github.com/estate/bookshelf-uuid
estate/bookshelf-uuid
bookshelf-uuid
/
test
/
db
/
models
/
user.js
12 lines
(9 loc)
•
160 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
'use strict'
let
db =
require
(
'../'
)
module
.
exports
= db.
bookshelf
.
model
(
'User'
, {
tableName
:
'users'
,
uuid
:
true
,
defaults
: {
bio
:
'No bio'
} })