refactor: improve team management, OKRs, and session components
This commit is contained in:
@@ -47,6 +47,7 @@ Application de gestion d'ateliers pour entretiens managériaux.
|
||||
|
||||
- [x] Installer et configurer Prisma
|
||||
- [x] Créer le schéma de base de données :
|
||||
|
||||
```prisma
|
||||
model User {
|
||||
id String @id @default(cuid())
|
||||
@@ -110,10 +111,11 @@ Application de gestion d'ateliers pour entretiens managériaux.
|
||||
action Action @relation(fields: [actionId], references: [id], onDelete: Cascade)
|
||||
swotItemId String
|
||||
swotItem SwotItem @relation(fields: [swotItemId], references: [id], onDelete: Cascade)
|
||||
|
||||
|
||||
@@unique([actionId, swotItemId])
|
||||
}
|
||||
```
|
||||
|
||||
- [x] Générer le client Prisma
|
||||
- [x] Créer les migrations initiales
|
||||
- [x] Créer le service database.ts (pool de connexion)
|
||||
@@ -260,7 +262,7 @@ Application de gestion d'ateliers pour entretiens managériaux.
|
||||
|
||||
```typescript
|
||||
// actions/swot-items.ts
|
||||
'use server'
|
||||
'use server';
|
||||
|
||||
import { swotService } from '@/services/swot';
|
||||
import { revalidatePath } from 'next/cache';
|
||||
@@ -310,4 +312,3 @@ npm run build
|
||||
# Lint
|
||||
npm run lint
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user