import { ApiProperty } from '@nestjs/swagger';

export class UserPublicDto {
  @ApiProperty({ description: 'User ID (bigint serialized as string)' })
  id!: string;

  @ApiProperty()
  username!: string;

  @ApiProperty()
  createdAt!: string;
}

export class LoginResponseDto {
  @ApiProperty()
  accessToken!: string;

  @ApiProperty({ type: UserPublicDto })
  user!: UserPublicDto;
}
