mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 21:00:31 +00:00
21 lines
531 B
JavaScript
21 lines
531 B
JavaScript
|
|
exports.up = function(knex) {
|
|
return knex.schema.createTable('users', (table) => {
|
|
table.increments();
|
|
table.string('first_name');
|
|
table.string('last_name');
|
|
table.string('email').unique();
|
|
table.string('phone_number').unique();
|
|
table.string('password');
|
|
table.boolean('active');
|
|
table.integer('role_id').unique();
|
|
table.string('language');
|
|
table.date('last_login_at');
|
|
table.timestamps();
|
|
});
|
|
};
|
|
|
|
exports.down = function(knex) {
|
|
return knex.schema.dropTableIfExists('users');
|
|
};
|