mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 21:00:31 +00:00
feat: User invitation system.
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
|
||||
exports.up = (knex) => knex.schema.createTable('password_resets', (table) => {
|
||||
table.increments();
|
||||
table.string('email');
|
||||
table.string('token');
|
||||
table.timestamp('created_at');
|
||||
});
|
||||
|
||||
exports.down = (knex) => knex.schema.dropTableIfExists('password_resets');
|
||||
@@ -0,0 +1,14 @@
|
||||
|
||||
exports.up = function(knex) {
|
||||
return knex.schema.createTable('user_invites', (table) => {
|
||||
table.increments();
|
||||
table.string('email');
|
||||
table.string('token').unique();
|
||||
table.integer('tenant_id').unsigned();
|
||||
table.timestamps();
|
||||
});
|
||||
};
|
||||
|
||||
exports.down = function(knex) {
|
||||
return knex.schema.dropTableIfExists('user_invites');
|
||||
};
|
||||
Reference in New Issue
Block a user