Skip to content

Commit 36e36f6

Browse files
committed
web: Remove deprecated subscription-related fields
1 parent 2b22451 commit 36e36f6

1 file changed

Lines changed: 2 additions & 13 deletions

File tree

packages/prisma-schemas/schemas/dm/schema.prisma

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,33 +12,22 @@ datasource db {
1212
model subscription {
1313
id Int @id @default(autoincrement()) @map("ID")
1414
userId Int @map("ID_Utilisateur")
15-
/// @deprecated
16-
country String? @map("Pays") @ignore @db.VarChar(3)
17-
/// @deprecated
18-
magazine String? @map("Magazine") @ignore @db.VarChar(6)
1915
publicationcode String @default(dbgenerated("(concat(convert(`Pays` using utf8mb3),'/',convert(`Magazine` using utf8mb3)))")) @db.VarChar(14)
2016
startDate DateTime @map("Date_debut") @db.Date
2117
endDate DateTime @map("Date_fin") @db.Date
2218
users user @relation(fields: [userId], references: [id], onDelete: Cascade, map: "abonnements_users_ID_fk")
2319
24-
@@unique([country, magazine, userId, startDate, endDate], map: "abonnements_unique")
2520
@@unique([publicationcode, userId, startDate, endDate], map: "abonnements_unique2")
2621
@@index([userId], map: "abonnements_users_ID_fk")
2722
@@map("abonnements")
2823
}
2924

3025
model subscriptionRelease {
31-
/// @deprecated
32-
countrycode String @map("Pays") @ignore @db.VarChar(3)
33-
/// @deprecated
34-
magazinecode String @map("Magazine") @ignore @db.VarChar(6)
35-
/// @deprecated
36-
issuenumber String @map("Numero") @ignore @db.VarChar(8)
26+
id Int @id @default(autoincrement()) @map("ID")
3727
releaseDate DateTime @map("Date_sortie") @db.Date
3828
haveIssuesBeenAdded Boolean @default(false) @map("Numeros_ajoutes")
39-
issuecode String @default(dbgenerated("(concat(convert(`Pays` using utf8mb3),'/',convert(`Magazine` using utf8mb3),' ',convert(`Numero` using utf8mb3)))")) @db.VarChar(25)
29+
issuecode String @db.VarChar(25)
4030
41-
@@id([countrycode, magazinecode, issuenumber])
4231
@@index([issuecode], map: "abonnements_sorties_issuecode_unique")
4332
@@map("abonnements_sorties")
4433
}

0 commit comments

Comments
 (0)