From e0588528a44e1a4d8a2c864be0102f8f9eb87b5b Mon Sep 17 00:00:00 2001 From: casperiv0 <53900565+casperiv0@users.noreply.github.com> Date: Sun, 17 Dec 2023 11:03:11 +0100 Subject: [PATCH] chore: update year --- prisma/schema.prisma | 32 ++++++++++++++++---------------- src/utils/constants.ts | 2 +- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/prisma/schema.prisma b/prisma/schema.prisma index 80e8ff3..2e6287e 100644 --- a/prisma/schema.prisma +++ b/prisma/schema.prisma @@ -12,29 +12,29 @@ datasource db { } model User { - id String @id @default(auto()) @map("_id") @db.ObjectId - email String @unique - name String - imageUrl String? - Expenses Expenses[] - Income Income[] - Subscriptions Subscription[] - accounts Account[] - - createdAt DateTime @default(now()) - updatedAt DateTime @updatedAt + id String @id @default(auto()) @map("_id") @db.ObjectId + email String @unique @db.String + name String @db.String + imageUrl String? @db.String + createdAt DateTime @default(now()) @db.Timestamp + updatedAt DateTime @updatedAt @db.Timestamp + configuration Configuration? @relation(fields: [configurationId], references: [id]) + configurationId String? @db.ObjectId + ProcessedExpense ProcessedExpense[] Hours Hours[] - configuration Configuration? @relation(fields: [configurationId], references: [id]) - configurationId String? @db.ObjectId + Expenses Expenses[] + Income Income[] + Subscriptions Subscription[] + accounts Account[] } model Account { id String @id @default(auto()) @map("_id") @db.ObjectId - email String + email String @db.String provider Provider - imageUrl String? - name String? + imageUrl String? @db.String + name String? @db.String user User @relation(fields: [userId], references: [id]) userId String @db.ObjectId diff --git a/src/utils/constants.ts b/src/utils/constants.ts index 28381b4..73e756d 100644 --- a/src/utils/constants.ts +++ b/src/utils/constants.ts @@ -2,7 +2,7 @@ import { Month } from "@prisma/client"; export const MAX_ITEMS_PER_TABLE = 35; -export const DEFINED_YEARS = [2018, 2019, 2020, 2021, 2022, 2023] as const; +export const DEFINED_YEARS = [2018, 2019, 2020, 2021, 2022, 2023, 2024, 2025] as const; export type Year = (typeof DEFINED_YEARS)[number]; export const DEFINED_MONTHS: Month[] = [