@virtality/schema 0.0.1-alpha.0.7 → 0.0.1-alpha.0.9
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
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Warnings:
|
|
3
|
+
|
|
4
|
+
- You are about to drop the column `name` on the `Preset` table. All the data in the column will be lost.
|
|
5
|
+
|
|
6
|
+
*/
|
|
7
|
+
-- AlterTable
|
|
8
|
+
ALTER TABLE "Preset" DROP COLUMN "name",
|
|
9
|
+
ADD COLUMN "presetName" TEXT NOT NULL DEFAULT '',
|
|
10
|
+
ALTER COLUMN "start" SET DATA TYPE TEXT,
|
|
11
|
+
ALTER COLUMN "end" SET DATA TYPE TEXT;
|
package/prisma/schema.prisma
CHANGED
|
@@ -174,10 +174,11 @@ model Patient {
|
|
|
174
174
|
model Preset {
|
|
175
175
|
id String @id
|
|
176
176
|
userId String?
|
|
177
|
-
|
|
177
|
+
presetName String @default("")
|
|
178
178
|
pathology String
|
|
179
|
-
|
|
180
|
-
|
|
179
|
+
description String?
|
|
180
|
+
start String?
|
|
181
|
+
end String?
|
|
181
182
|
createdAt DateTime @db.Timestamp(6)
|
|
182
183
|
updatedAt DateTime @db.Timestamp(6)
|
|
183
184
|
deletedAt DateTime? @db.Timestamp(6)
|
|
@@ -189,6 +190,7 @@ model PresetExercise {
|
|
|
189
190
|
id String @id
|
|
190
191
|
presetId String
|
|
191
192
|
exerciseId String
|
|
193
|
+
optional Boolean @default(false)
|
|
192
194
|
sets Int @default(3)
|
|
193
195
|
reps Int @default(10)
|
|
194
196
|
restTime Int @default(5)
|