13 lines
373 B
JavaScript
Executable File
13 lines
373 B
JavaScript
Executable File
exports.up = async knex => {
|
|
return knex.schema.createTable('users', table => {
|
|
table.uuid('id').primary();
|
|
table.string('name', 42).notNullable().unique();
|
|
table.string('password').notNullable();
|
|
table.string('token', 64).notNullable();
|
|
|
|
table.index('name');
|
|
table.index('id');
|
|
});
|
|
};
|
|
|
|
exports.down = async () => {}; |