@virtality/schema 0.0.1-alpha.0.8 → 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.8",
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,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,11 +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
179
  description String?
180
- start Int?
181
- end Int?
180
+ start String?
181
+ end String?
182
182
  createdAt DateTime @db.Timestamp(6)
183
183
  updatedAt DateTime @db.Timestamp(6)
184
184
  deletedAt DateTime? @db.Timestamp(6)