@virtality/schema 0.0.1-alpha0.1.2 → 0.0.1-alpha0.1.4

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-alpha0.1.2",
3
+ "version": "0.0.1-alpha0.1.4",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -0,0 +1,14 @@
1
+ /*
2
+ Warnings:
3
+
4
+ - You are about to drop the column `nprs` on the `SessionData` table. All the data in the column will be lost.
5
+ - You are about to drop the column `otherTherapies` on the `SessionData` table. All the data in the column will be lost.
6
+
7
+ */
8
+ -- AlterTable
9
+ ALTER TABLE "PatientSession" ADD COLUMN "nprs" TEXT,
10
+ ADD COLUMN "otherTherapies" JSONB;
11
+
12
+ -- AlterTable
13
+ ALTER TABLE "SessionData" DROP COLUMN "nprs",
14
+ DROP COLUMN "otherTherapies";
@@ -0,0 +1,5 @@
1
+ -- AlterTable
2
+ ALTER TABLE "MedicalHistory" ADD COLUMN "deltas" TEXT;
3
+
4
+ -- AlterTable
5
+ ALTER TABLE "PatientSession" ADD COLUMN "notes" TEXT;
@@ -182,6 +182,7 @@ model MedicalHistory {
182
182
  nprs String?
183
183
  bodyFront Json?
184
184
  bodyBack Json?
185
+ deltas String?
185
186
  patient Patient @relation(fields: [patientId], references: [id], onDelete: Cascade)
186
187
  }
187
188
 
@@ -242,6 +243,9 @@ model PatientSession {
242
243
  id String @id
243
244
  patientId String
244
245
  programId String?
246
+ nprs String?
247
+ otherTherapies Json?
248
+ notes String?
245
249
  createdAt DateTime @db.Timestamp(6)
246
250
  completedAt DateTime? @db.Timestamp(6)
247
251
  deletedAt DateTime? @db.Timestamp(6)
@@ -270,8 +274,6 @@ model SessionData {
270
274
  patientSessionId String?
271
275
  sessionExerciseId String?
272
276
  value String
273
- nprs String?
274
- otherTherapies Json?
275
277
  session PatientSession? @relation(fields: [patientSessionId], references: [id], onDelete: SetNull)
276
278
  sessionExercise SessionExercise? @relation(fields: [sessionExerciseId], references: [id], onDelete: SetNull)
277
279
  }