mirror of
https://github.com/dadosfera/maestro.git
synced 2026-11-18 21:49:08 +00:00
FIX: new user columns
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { ApiProperty, ApiPropertyOptional, OmitType } from '@nestjs/swagger';
|
||||
import { RoleDto, UserRole } from 'src/modules/roles/dto/entities';
|
||||
import { UserRole } from 'src/modules/roles/dto/entities';
|
||||
export class Hierarchy {
|
||||
@ApiProperty()
|
||||
id: number;
|
||||
@@ -45,27 +45,17 @@ export class User {
|
||||
createdAt: string;
|
||||
@ApiProperty()
|
||||
updatedAt: string;
|
||||
@ApiProperty()
|
||||
status: string;
|
||||
@ApiPropertyOptional()
|
||||
lastLogin?: string;
|
||||
}
|
||||
export class UserNoRoles extends OmitType(User, ['roles']) {}
|
||||
export class UserNoRolesAndCustomer extends OmitType(UserNoRoles, [
|
||||
'customer',
|
||||
]) {}
|
||||
export class UserByCustomer {
|
||||
@ApiProperty({ type: [RoleDto] })
|
||||
roles: RoleDto[];
|
||||
@ApiProperty()
|
||||
id: string;
|
||||
@ApiProperty()
|
||||
name: string;
|
||||
@ApiProperty()
|
||||
username: string;
|
||||
@ApiProperty()
|
||||
mfaStatus: string;
|
||||
@ApiProperty()
|
||||
createdAt: string;
|
||||
@ApiProperty()
|
||||
updatedAt: string;
|
||||
}
|
||||
export class UserByCustomer extends OmitType(User, ['customer']) {}
|
||||
|
||||
export class CreateUserReq {
|
||||
@ApiPropertyOptional()
|
||||
name?: string;
|
||||
|
||||
Reference in New Issue
Block a user