@smarttj/core 1.0.1 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/prisma/schema.prisma +45 -2
package/package.json
CHANGED
package/prisma/schema.prisma
CHANGED
|
@@ -42,9 +42,10 @@ model User {
|
|
|
42
42
|
addresses Address[]
|
|
43
43
|
employee Employee[]
|
|
44
44
|
supportChats SupportChat[]
|
|
45
|
-
operatorChats SupportChat[]
|
|
45
|
+
operatorChats SupportChat[] @relation("AssignedOperator")
|
|
46
46
|
paymentAttempts PaymentAttempt[]
|
|
47
|
-
|
|
47
|
+
applications Application[]
|
|
48
|
+
region Region? @relation(fields: [regionId], references: [id], onDelete: SetNull)
|
|
48
49
|
partner Partner?
|
|
49
50
|
cart Cart?
|
|
50
51
|
|
|
@@ -774,3 +775,45 @@ model Report {
|
|
|
774
775
|
|
|
775
776
|
@@unique([year, month])
|
|
776
777
|
}
|
|
778
|
+
|
|
779
|
+
enum BannerPosition {
|
|
780
|
+
MAIN // Главный баннер на главной странице
|
|
781
|
+
CATEGORY // Баннер в категории товаров
|
|
782
|
+
PRODUCT // Баннер на странице товара
|
|
783
|
+
BRAND // Баннер на странице бренда
|
|
784
|
+
SEARCH // Баннер на поиске
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
model Banner {
|
|
788
|
+
id String @id @default(uuid(7))
|
|
789
|
+
title String
|
|
790
|
+
message String
|
|
791
|
+
url String
|
|
792
|
+
position BannerPosition @default(MAIN)
|
|
793
|
+
image String?
|
|
794
|
+
imageId String?
|
|
795
|
+
|
|
796
|
+
createdAt DateTime @default(now())
|
|
797
|
+
updatedAt DateTime @updatedAt
|
|
798
|
+
}
|
|
799
|
+
|
|
800
|
+
enum ApplicationStatus {
|
|
801
|
+
NEW // Новая заявка
|
|
802
|
+
IN_PROGRESS // В процессе обработки
|
|
803
|
+
COMPLETED // Обработана
|
|
804
|
+
REJECTED // Отклонена
|
|
805
|
+
}
|
|
806
|
+
|
|
807
|
+
model Application {
|
|
808
|
+
id String @id @default(uuid(7))
|
|
809
|
+
name String
|
|
810
|
+
phone String
|
|
811
|
+
message String?
|
|
812
|
+
status ApplicationStatus @default(NEW)
|
|
813
|
+
userId String?
|
|
814
|
+
|
|
815
|
+
createdAt DateTime @default(now())
|
|
816
|
+
updatedAt DateTime @updatedAt
|
|
817
|
+
|
|
818
|
+
user User? @relation(fields: [userId], references: [id])
|
|
819
|
+
}
|