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[] = [