timestamp accounts
This commit is contained in:
parent
bdd8997141
commit
008bc71527
@ -1,6 +1,7 @@
|
|||||||
exports.up = async knex => {
|
exports.up = async knex => {
|
||||||
return knex.schema.createTable('accounts', table => {
|
return knex.schema.createTable('accounts', table => {
|
||||||
table.uuid('id').primary();
|
table.uuid('id').primary();
|
||||||
|
table.timestamps();
|
||||||
table.string('name', 42).notNullable().unique();
|
table.string('name', 42).notNullable().unique();
|
||||||
table.string('password').notNullable();
|
table.string('password').notNullable();
|
||||||
table.string('token', 64).notNullable();
|
table.string('token', 64).notNullable();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user