fix: invite user to the system.

fix: soft delete system user.
This commit is contained in:
a.bouhuolia
2021-01-19 13:18:48 +02:00
parent ef53b25c18
commit 59f44d9ef6
17 changed files with 320 additions and 136 deletions

View File

@@ -1,6 +1,6 @@
import { Model } from 'objection';
export interface ISystemUser {
export interface ISystemUser extends Model {
id: number,
firstName: string,
lastName: string,
@@ -34,4 +34,12 @@ export interface IInviteUserInput {
lastName: string,
phoneNumber: string,
password: string,
};
export interface IUserInvite {
id: number,
email: string,
token: string,
tenantId: number,
createdAt?: Date,
}