fix(prisma): minor pay-period's type fixing

This commit is contained in:
Matthieu Haineault 2025-07-28 15:02:27 -04:00
parent 7cc97c9bce
commit dcf340325a
2 changed files with 5 additions and 4 deletions

View File

@ -9,6 +9,7 @@ WITH
), ),
bounds AS ( bounds AS (
SELECT SELECT
--ajouter vérification de la période actuel, validations et revoir la logique
(now()::date - INTERVAL '6 months')::date AS start_bound, (now()::date - INTERVAL '6 months')::date AS start_bound,
(now()::date + INTERVAL '1 month')::date AS end_bound, (now()::date + INTERVAL '1 month')::date AS end_bound,
anchor.anchor_date anchor.anchor_date

View File

@ -131,10 +131,10 @@ model LeaveRequestsArchive {
//pay-period vue //pay-period vue
view PayPeriods { view PayPeriods {
period_number Int @id period_number Int @id
start_date DateTime? @db.Date start_date DateTime @db.Date
end_date DateTime? @db.Date end_date DateTime @db.Date
year Int? year Int
label String? label String
@@map("pay_period") @@map("pay_period")
} }