@valentine-efagene/qshelter-common 2.0.150 → 2.0.151
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/dist/generated/client/commonInputTypes.d.ts +30 -0
- package/dist/generated/client/enums.d.ts +7 -0
- package/dist/generated/client/enums.js +6 -0
- package/dist/generated/client/internal/class.js +2 -2
- package/dist/generated/client/internal/prismaNamespace.d.ts +4 -2
- package/dist/generated/client/internal/prismaNamespace.js +0 -2
- package/dist/generated/client/internal/prismaNamespaceBrowser.d.ts +0 -2
- package/dist/generated/client/internal/prismaNamespaceBrowser.js +0 -2
- package/dist/generated/client/models/Property.d.ts +59 -120
- package/package.json +1 -1
- package/prisma/migrations/20260125090213_remove_is_published_use_status_enum/migration.sql +10 -0
- package/prisma/schema.prisma +8 -2
package/package.json
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Warnings:
|
|
3
|
+
|
|
4
|
+
- You are about to drop the column `isPublished` on the `properties` table. All the data in the column will be lost.
|
|
5
|
+
- You are about to alter the column `status` on the `properties` table. The data in that column could be lost. The data in that column will be cast from `VarChar(191)` to `Enum(EnumId(5))`.
|
|
6
|
+
|
|
7
|
+
*/
|
|
8
|
+
-- AlterTable
|
|
9
|
+
ALTER TABLE `properties` DROP COLUMN `isPublished`,
|
|
10
|
+
MODIFY `status` ENUM('DRAFT', 'PUBLISHED', 'SOLD_OUT', 'ARCHIVED') NOT NULL DEFAULT 'DRAFT';
|
package/prisma/schema.prisma
CHANGED
|
@@ -51,6 +51,13 @@ enum PaymentFrequency {
|
|
|
51
51
|
CUSTOM
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
+
enum PropertyStatus {
|
|
55
|
+
DRAFT
|
|
56
|
+
PUBLISHED
|
|
57
|
+
SOLD_OUT
|
|
58
|
+
ARCHIVED
|
|
59
|
+
}
|
|
60
|
+
|
|
54
61
|
enum ApplicationStatus {
|
|
55
62
|
DRAFT
|
|
56
63
|
PENDING
|
|
@@ -1112,11 +1119,10 @@ model Property {
|
|
|
1112
1119
|
streetAddress String?
|
|
1113
1120
|
longitude Float?
|
|
1114
1121
|
latitude Float?
|
|
1115
|
-
status
|
|
1122
|
+
status PropertyStatus @default(DRAFT)
|
|
1116
1123
|
description String? @db.Text
|
|
1117
1124
|
displayImageId String?
|
|
1118
1125
|
displayImage PropertyMedia? @relation("DisplayImage", fields: [displayImageId], references: [id], onDelete: SetNull)
|
|
1119
|
-
isPublished Boolean @default(false)
|
|
1120
1126
|
publishedAt DateTime?
|
|
1121
1127
|
createdAt DateTime @default(now())
|
|
1122
1128
|
updatedAt DateTime @updatedAt
|