mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 12:50:38 +00:00
feat: User invitation system.
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
|
||||
exports.up = (knex) => knex.schema.createTable('password_resets', (table) => {
|
||||
table.increments();
|
||||
table.string('user_id');
|
||||
table.string('token');
|
||||
table.timestamp('created_at');
|
||||
});
|
||||
|
||||
exports.down = (knex) => knex.schema.dropTableIfExists('password_resets');
|
||||
@@ -6,7 +6,6 @@ exports.up = function (knex) {
|
||||
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');
|
||||
|
||||
@@ -14,6 +14,7 @@ exports.up = function (knex) {
|
||||
table.text('note').nullable();
|
||||
table.integer('category_id').unsigned();
|
||||
table.integer('user_id').unsigned();
|
||||
table.string('attachment_file');
|
||||
table.timestamps();
|
||||
});
|
||||
};
|
||||
|
||||
@@ -9,6 +9,7 @@ exports.up = function(knex) {
|
||||
table.date('date');
|
||||
table.boolean('status').defaultTo(false);
|
||||
table.string('description');
|
||||
table.string('attachment_file');
|
||||
table.integer('user_id').unsigned();
|
||||
table.timestamps();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user