Skip to content

Commit

Permalink
chore: update year
Browse files Browse the repository at this point in the history
  • Loading branch information
casperiv0 committed Dec 17, 2023
1 parent 81ac32d commit e058852
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
32 changes: 16 additions & 16 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/utils/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[] = [
Expand Down

1 comment on commit e058852

@vercel
Copy link

@vercel vercel bot commented on e058852 Dec 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.