feat: User invitation system.

This commit is contained in:
Ahmed Bouhuolia
2020-04-23 20:09:07 +02:00
parent 1e13aa16ac
commit 11e3d4c1a9
23 changed files with 970 additions and 50 deletions

View File

@@ -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');

View File

@@ -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');

View File

@@ -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();
});
};

View File

@@ -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();
});