@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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@virtality/schema",
3
- "version": "0.0.1-alpha.0.7",
3
+ "version": "0.0.1-alpha.0.9",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -0,0 +1,5 @@
1
+ -- AlterTable
2
+ ALTER TABLE "Preset" ADD COLUMN "description" TEXT;
3
+
4
+ -- AlterTable
5
+ ALTER TABLE "PresetExercise" ADD COLUMN "optional" BOOLEAN NOT NULL DEFAULT false;
@@ -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;
@@ -174,10 +174,11 @@ model Patient {
174
174
  model Preset {
175
175
  id String @id
176
176
  userId String?
177
- name String
177
+ presetName String @default("")
178
178
  pathology String
179
- start Int?
180
- end Int?
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)