petitspas/backend/src/routes/auth/dto/profile_response.dto.ts
Julien Martin 9e73116df2 feat(#75): Seed Super Administrateur par défaut
- Ajout INSERT super_admin dans BDD.sql
  - Email: admin@ptits-pas.fr
  - MDP: 4dm1n1strateur (hashé bcrypt)
  - Role: super_admin, Statut: actif
  - changement_mdp_obligatoire: true

- Profil API (/auth/me) retourne changement_mdp_obligatoire

- Nettoyage fichiers Prisma obsolètes :
  - admin/*, scripts/initAdmin.ts
  - routes/auth.ts, routes/theme.routes.ts
  - controllers/theme.controller.ts
  - services/theme.service.ts
2026-01-27 16:06:55 +01:00

26 lines
620 B
TypeScript

import { ApiProperty } from '@nestjs/swagger';
import { RoleType, StatutUtilisateurType } from 'src/entities/users.entity';
export class ProfileResponseDto {
@ApiProperty()
id: string;
@ApiProperty()
email: string;
@ApiProperty({ enum: RoleType })
role: RoleType;
@ApiProperty()
prenom?: string;
@ApiProperty()
nom?: string;
@ApiProperty({ enum: StatutUtilisateurType })
statut: StatutUtilisateurType;
@ApiProperty({ description: 'Indique si le changement de mot de passe est obligatoire à la première connexion' })
changement_mdp_obligatoire: boolean;
}