@dynamatix/gb-schemas 2.0.44 → 2.0.45
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.
|
@@ -6,13 +6,13 @@ export declare class UserEntity {
|
|
|
6
6
|
email: string;
|
|
7
7
|
fullName: string;
|
|
8
8
|
organisationId?: string;
|
|
9
|
-
status:
|
|
9
|
+
status: number;
|
|
10
10
|
modifiedOn?: Date;
|
|
11
|
-
modifiedById?:
|
|
11
|
+
modifiedById?: number;
|
|
12
12
|
createdOnInApprivo?: Date;
|
|
13
|
-
createdById?:
|
|
13
|
+
createdById?: number;
|
|
14
14
|
deletedOn?: Date;
|
|
15
|
-
deletedById?:
|
|
15
|
+
deletedById?: number;
|
|
16
16
|
token?: string;
|
|
17
17
|
createdAt: Date;
|
|
18
18
|
updatedAt: Date;
|
|
@@ -6,13 +6,13 @@ export class UserEntity {
|
|
|
6
6
|
email!: string;
|
|
7
7
|
fullName!: string;
|
|
8
8
|
organisationId?: string;
|
|
9
|
-
status!:
|
|
9
|
+
status!: number;
|
|
10
10
|
modifiedOn?: Date;
|
|
11
|
-
modifiedById?:
|
|
11
|
+
modifiedById?: number;
|
|
12
12
|
createdOnInApprivo?: Date;
|
|
13
|
-
createdById?:
|
|
13
|
+
createdById?: number;
|
|
14
14
|
deletedOn?: Date;
|
|
15
|
-
deletedById?:
|
|
15
|
+
deletedById?: number;
|
|
16
16
|
token?: string;
|
|
17
17
|
createdAt!: Date;
|
|
18
18
|
updatedAt!: Date;
|
package/package.json
CHANGED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Warnings:
|
|
3
|
+
|
|
4
|
+
- The `modified_by_id` column on the `users` table would be dropped and recreated. This will lead to data loss if there is data in the column.
|
|
5
|
+
- The `created_by_id` column on the `users` table would be dropped and recreated. This will lead to data loss if there is data in the column.
|
|
6
|
+
- The `deleted_by_id` column on the `users` table would be dropped and recreated. This will lead to data loss if there is data in the column.
|
|
7
|
+
- Changed the type of `status` on the `users` table. No cast exists, the column would be dropped and recreated, which cannot be done if there is data, since the column is required.
|
|
8
|
+
|
|
9
|
+
*/
|
|
10
|
+
-- AlterTable
|
|
11
|
+
ALTER TABLE "users" DROP COLUMN "status",
|
|
12
|
+
ADD COLUMN "status" INTEGER NOT NULL,
|
|
13
|
+
DROP COLUMN "modified_by_id",
|
|
14
|
+
ADD COLUMN "modified_by_id" INTEGER,
|
|
15
|
+
DROP COLUMN "created_by_id",
|
|
16
|
+
ADD COLUMN "created_by_id" INTEGER,
|
|
17
|
+
DROP COLUMN "deleted_by_id",
|
|
18
|
+
ADD COLUMN "deleted_by_id" INTEGER;
|
package/prisma/schema.prisma
CHANGED
|
@@ -351,13 +351,13 @@ model User {
|
|
|
351
351
|
email String @unique
|
|
352
352
|
fullName String @map("full_name")
|
|
353
353
|
organisationId String? @map("organisation_id")
|
|
354
|
-
status
|
|
354
|
+
status Int
|
|
355
355
|
modifiedOn DateTime? @map("modified_on")
|
|
356
|
-
modifiedById
|
|
356
|
+
modifiedById Int? @map("modified_by_id")
|
|
357
357
|
createdOnInApprivo DateTime? @map("created_on_in_apprivo")
|
|
358
|
-
createdById
|
|
358
|
+
createdById Int? @map("created_by_id")
|
|
359
359
|
deletedOn DateTime? @map("deleted_on")
|
|
360
|
-
deletedById
|
|
360
|
+
deletedById Int? @map("deleted_by_id")
|
|
361
361
|
token String?
|
|
362
362
|
createdAt DateTime @default(now()) @map("created_at")
|
|
363
363
|
updatedAt DateTime @updatedAt @map("updated_at")
|
package/prisma/users/user.prisma
CHANGED
|
@@ -4,13 +4,13 @@ model User {
|
|
|
4
4
|
email String @unique
|
|
5
5
|
fullName String @map("full_name")
|
|
6
6
|
organisationId String? @map("organisation_id")
|
|
7
|
-
status
|
|
7
|
+
status Int
|
|
8
8
|
modifiedOn DateTime? @map("modified_on")
|
|
9
|
-
modifiedById
|
|
9
|
+
modifiedById Int? @map("modified_by_id")
|
|
10
10
|
createdOnInApprivo DateTime? @map("created_on_in_apprivo")
|
|
11
|
-
createdById
|
|
11
|
+
createdById Int? @map("created_by_id")
|
|
12
12
|
deletedOn DateTime? @map("deleted_on")
|
|
13
|
-
deletedById
|
|
13
|
+
deletedById Int? @map("deleted_by_id")
|
|
14
14
|
token String?
|
|
15
15
|
createdAt DateTime @default(now()) @map("created_at")
|
|
16
16
|
updatedAt DateTime @updatedAt @map("updated_at")
|