cc-husky-solo / back

Back-end for my solo Code Chrysalis project
0 stars 0 forks source link

Fix: RiotLolAccount table change #8

Open gminetoma opened 2 months ago

gminetoma commented 2 months ago

With the following code, update the database schema. Including table name and field name.

model RiotLolAccount {
  puuid     String   @id
  gameName  String?
  tagLine   String?
  createdAt DateTime @default(now())
  updatedAt DateTime @default(now()) @updatedAt
}
gminetoma commented 2 months ago

This was modified to:

model RiotLolAccount {
  puuid     String   @id
  gameName  String?
  tagLine   String?
  region    Region?
  createdAt DateTime @default(now())
  updatedAt DateTime @default(now()) @updatedAt
}

enum Region {
  AMERICAS
  ASIA
  ESPORTS
  EUROPE
}