Add Department module for relationship
This commit is contained in:
@@ -10,7 +10,7 @@ import {
|
||||
export class CreateUserDto {
|
||||
// NOTE: Since the id is autoinc, so no id for user creation
|
||||
// @ApiProperty({
|
||||
// type: 'number',
|
||||
// type: Number,
|
||||
// name: 'id',
|
||||
// description: 'id of user',
|
||||
// required: false,
|
||||
|
||||
@@ -11,7 +11,7 @@ import { UpdateUserDto } from '../dto/update-user.dto';
|
||||
// export class User implements IUser {
|
||||
export class User {
|
||||
@ApiProperty({
|
||||
type: 'number',
|
||||
type: Number,
|
||||
name: 'id',
|
||||
description: 'id of user',
|
||||
required: false,
|
||||
@@ -19,7 +19,7 @@ export class User {
|
||||
id: number;
|
||||
|
||||
@ApiProperty({
|
||||
type: 'string',
|
||||
type: String,
|
||||
name: 'name',
|
||||
description: 'name of user',
|
||||
required: false,
|
||||
|
||||
Reference in New Issue
Block a user