rez_core 2.0.14 → 2.0.16
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/dist/module/enterprise/entity/organization-app-mapping.entity.d.ts +5 -0
- package/dist/module/enterprise/entity/organization-app-mapping.entity.js +32 -0
- package/dist/module/enterprise/entity/organization-app-mapping.entity.js.map +1 -0
- package/dist/module/meta/entity/base-entity.entity.d.ts +2 -0
- package/dist/module/meta/entity/base-entity.entity.js +10 -0
- package/dist/module/meta/entity/base-entity.entity.js.map +1 -1
- package/dist/module/user/entity/role.entity.d.ts +2 -0
- package/dist/module/user/entity/role.entity.js +8 -0
- package/dist/module/user/entity/role.entity.js.map +1 -1
- package/dist/module/user/entity/user-role-mapping.entity.d.ts +3 -0
- package/dist/module/user/entity/user-role-mapping.entity.js +12 -0
- package/dist/module/user/entity/user-role-mapping.entity.js.map +1 -1
- package/dist/module/user/entity/user.entity.d.ts +2 -0
- package/dist/module/user/entity/user.entity.js +8 -0
- package/dist/module/user/entity/user.entity.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/module/enterprise/entity/organization-app-mapping.entity.ts +13 -0
- package/src/module/meta/entity/base-entity.entity.ts +22 -1
- package/src/module/user/entity/role.entity.ts +6 -0
- package/src/module/user/entity/user-role-mapping.entity.ts +9 -0
- package/src/module/user/entity/user.entity.ts +7 -1
package/package.json
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
|
|
2
|
+
|
|
3
|
+
@Entity({ name: 'cr_organization_app_mapping' })
|
|
4
|
+
export class OrganizationAppMapping {
|
|
5
|
+
@PrimaryGeneratedColumn({ name: 'id', type: 'int' })
|
|
6
|
+
id: number;
|
|
7
|
+
|
|
8
|
+
@Column({ name: 'organization_id', nullable: true })
|
|
9
|
+
organization_id: string;
|
|
10
|
+
|
|
11
|
+
@Column({ name: 'appcode', nullable: true })
|
|
12
|
+
appcode: string;
|
|
13
|
+
}
|
|
@@ -9,27 +9,35 @@ export class BaseEntity {
|
|
|
9
9
|
@PrimaryGeneratedColumn({ type: 'bigint' })
|
|
10
10
|
@Expose()
|
|
11
11
|
id: number;
|
|
12
|
+
|
|
12
13
|
@Column({ name: 'entity_type', type: 'varchar', length: 100, nullable: true })
|
|
13
14
|
@Expose()
|
|
14
15
|
entity_type: string;
|
|
16
|
+
|
|
15
17
|
@Column({ name: 'name', type: 'varchar', length: 100, nullable: true })
|
|
16
18
|
@Expose()
|
|
17
19
|
name: string;
|
|
20
|
+
|
|
18
21
|
@Column({ name: 'status', type: 'varchar', nullable: true, length: 100 })
|
|
19
22
|
@Expose()
|
|
20
23
|
status: string;
|
|
24
|
+
|
|
21
25
|
@Column({ name: 'parent_type', type: 'varchar', length: 100, nullable: true })
|
|
22
26
|
@Expose()
|
|
23
27
|
parent_type: string;
|
|
28
|
+
|
|
24
29
|
@Column({ name: 'parent_id', type: 'bigint', nullable: true })
|
|
25
30
|
@Expose()
|
|
26
31
|
parent_id: number;
|
|
32
|
+
|
|
27
33
|
@Column({ name: 'code', type: 'varchar', length: 100, nullable: true })
|
|
28
34
|
@Expose()
|
|
29
35
|
code: string;
|
|
36
|
+
|
|
30
37
|
@Column({ name: 'created_by', type: 'bigint', nullable: true })
|
|
31
38
|
@Expose()
|
|
32
39
|
created_by: number;
|
|
40
|
+
|
|
33
41
|
@Column({
|
|
34
42
|
name: 'created_date',
|
|
35
43
|
type: 'datetime',
|
|
@@ -37,19 +45,32 @@ export class BaseEntity {
|
|
|
37
45
|
})
|
|
38
46
|
@Expose()
|
|
39
47
|
created_date: Date;
|
|
48
|
+
|
|
40
49
|
@Column({ name: 'modified_by', type: 'bigint', nullable: true })
|
|
41
50
|
@Expose()
|
|
42
51
|
modified_by: number;
|
|
52
|
+
|
|
43
53
|
@Column({ name: 'modified_date', type: 'datetime', nullable: true })
|
|
44
54
|
@Expose()
|
|
45
55
|
modified_date: Date;
|
|
56
|
+
|
|
46
57
|
@Column({ name: 'enterprise_id', type: 'int', nullable: true })
|
|
47
58
|
@Expose()
|
|
48
59
|
enterprise_id: number;
|
|
60
|
+
|
|
49
61
|
@Column({ name: 'organization_id', type: 'int', nullable: true })
|
|
50
62
|
@Expose()
|
|
51
63
|
organization_id: number;
|
|
52
|
-
|
|
64
|
+
|
|
65
|
+
@Column({ name: 'appcode', type: 'varchar', length: 100, nullable: true })
|
|
53
66
|
@Expose()
|
|
54
67
|
appcode: string;
|
|
68
|
+
|
|
69
|
+
@Column({ name: 'level_id', type: 'varchar', length: 100, nullable: true })
|
|
70
|
+
@Expose()
|
|
71
|
+
level_id: string;
|
|
72
|
+
|
|
73
|
+
@Column({ name: 'level_type', type: 'varchar', length: 100, nullable: true })
|
|
74
|
+
@Expose()
|
|
75
|
+
level_type: string;
|
|
55
76
|
}
|
|
@@ -16,6 +16,12 @@ export class Role extends BaseEntity {
|
|
|
16
16
|
@Column({ type: 'varchar', length: 250, nullable: true })
|
|
17
17
|
description: string;
|
|
18
18
|
|
|
19
|
+
@Column({ type: 'int', nullable: true })
|
|
20
|
+
organization_id: number;
|
|
21
|
+
|
|
19
22
|
@Exclude()
|
|
20
23
|
copy_from_role_id: number;
|
|
24
|
+
|
|
25
|
+
@Column({ type: 'int', nullable: true })
|
|
26
|
+
is_factory: number;
|
|
21
27
|
}
|
|
@@ -21,9 +21,18 @@ export class UserRoleMapping {
|
|
|
21
21
|
@Column({ type: 'bigint', nullable: true })
|
|
22
22
|
role_id: number;
|
|
23
23
|
|
|
24
|
+
@Column({ type: 'int', nullable: true })
|
|
25
|
+
organization_id: number;
|
|
26
|
+
|
|
24
27
|
@Column({ type: 'int', nullable: true })
|
|
25
28
|
is_default: number;
|
|
26
29
|
|
|
27
30
|
@Column({ type: 'varchar', nullable: true })
|
|
28
31
|
appcode: string;
|
|
32
|
+
|
|
33
|
+
@Column({ name: 'level_id', type: 'varchar', length: 100, nullable: true })
|
|
34
|
+
level_id: string;
|
|
35
|
+
|
|
36
|
+
@Column({ name: 'level_type', type: 'varchar', length: 100, nullable: true })
|
|
37
|
+
level_type: string;
|
|
29
38
|
}
|
|
@@ -33,6 +33,12 @@ export class UserData extends BaseEntity {
|
|
|
33
33
|
@Column({ type: 'varchar', length: 50, nullable: true })
|
|
34
34
|
invitation_status: string;
|
|
35
35
|
|
|
36
|
-
@Column({ type: 'int',
|
|
36
|
+
@Column({ type: 'int', nullable: true })
|
|
37
37
|
is_customer: number;
|
|
38
|
+
|
|
39
|
+
@Column({ type: 'int', nullable: true })
|
|
40
|
+
organization_id: number;
|
|
41
|
+
|
|
42
|
+
@Column({ type: 'int', nullable: true })
|
|
43
|
+
is_factory: number;
|
|
38
44
|
}
|