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
/
migrations
/
20160414201953_users.js
12 lines
(9 loc)
•
262 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
'use strict'
exports
.
up
=
(
knex
) =>
knex.
schema
.
createTable
(
'users'
,
(
table
) =>
{ table.
uuid
(
'id'
).
primary
() table.
string
(
'name'
) table.
string
(
'email'
) table.
string
(
'bio'
) table.
timestamps
() })
exports
.
down
=
(
knex
) =>
knex.
schema
.
dropTable
(
'users'
)