what the
This commit is contained in:
@@ -1,8 +1,13 @@
|
||||
exports.up = async knex => {
|
||||
return knex.schema.createTable('users', table => {
|
||||
table.uuid('id').primary();
|
||||
table.text('name');
|
||||
});
|
||||
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 () => {};
|
||||
Reference in New Issue
Block a user