@kipicore/dbcore 1.1.561 → 1.1.563
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.
|
@@ -2,64 +2,60 @@
|
|
|
2
2
|
/** @type {import('sequelize-cli').Migration} */
|
|
3
3
|
module.exports = {
|
|
4
4
|
async up(queryInterface, Sequelize) {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
allowNull: true,
|
|
58
|
-
},
|
|
59
|
-
});
|
|
60
|
-
}
|
|
5
|
+
await queryInterface.createTable('dynamic_variable', {
|
|
6
|
+
id: {
|
|
7
|
+
allowNull: false,
|
|
8
|
+
primaryKey: true,
|
|
9
|
+
type: Sequelize.UUID,
|
|
10
|
+
defaultValue: Sequelize.UUIDV4,
|
|
11
|
+
},
|
|
12
|
+
path: {
|
|
13
|
+
type: Sequelize.STRING,
|
|
14
|
+
allowNull: true,
|
|
15
|
+
},
|
|
16
|
+
user_types: {
|
|
17
|
+
type: Sequelize.ARRAY(Sequelize.STRING),
|
|
18
|
+
allowNull: true,
|
|
19
|
+
},
|
|
20
|
+
data_type: {
|
|
21
|
+
type: Sequelize.STRING,
|
|
22
|
+
allowNull: true,
|
|
23
|
+
},
|
|
24
|
+
description: {
|
|
25
|
+
type: Sequelize.TEXT,
|
|
26
|
+
allowNull: true,
|
|
27
|
+
},
|
|
28
|
+
code: {
|
|
29
|
+
type: Sequelize.STRING,
|
|
30
|
+
allowNull: true,
|
|
31
|
+
},
|
|
32
|
+
created_by: {
|
|
33
|
+
type: Sequelize.UUID,
|
|
34
|
+
allowNull: true,
|
|
35
|
+
},
|
|
36
|
+
updated_by: {
|
|
37
|
+
type: Sequelize.UUID,
|
|
38
|
+
allowNull: true,
|
|
39
|
+
},
|
|
40
|
+
deleted_by: {
|
|
41
|
+
type: Sequelize.UUID,
|
|
42
|
+
allowNull: true,
|
|
43
|
+
},
|
|
44
|
+
created_at: {
|
|
45
|
+
allowNull: true,
|
|
46
|
+
type: Sequelize.DATE,
|
|
47
|
+
},
|
|
48
|
+
updated_at: {
|
|
49
|
+
allowNull: true,
|
|
50
|
+
type: Sequelize.DATE,
|
|
51
|
+
},
|
|
52
|
+
deleted_at: {
|
|
53
|
+
type: Sequelize.DATE,
|
|
54
|
+
allowNull: true,
|
|
55
|
+
},
|
|
56
|
+
});
|
|
61
57
|
},
|
|
62
|
-
async down(queryInterface
|
|
58
|
+
async down(queryInterface) {
|
|
63
59
|
await queryInterface.dropTable('dynamic_variable');
|
|
64
|
-
}
|
|
60
|
+
},
|
|
65
61
|
};
|
|
@@ -2,59 +2,56 @@
|
|
|
2
2
|
/** @type {import('sequelize-cli').Migration} */
|
|
3
3
|
module.exports = {
|
|
4
4
|
async up(queryInterface, Sequelize) {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
},
|
|
54
|
-
});
|
|
55
|
-
}
|
|
5
|
+
await queryInterface.createTable('dynamic_variable_label', {
|
|
6
|
+
id: {
|
|
7
|
+
allowNull: false,
|
|
8
|
+
primaryKey: true,
|
|
9
|
+
type: Sequelize.UUID,
|
|
10
|
+
defaultValue: Sequelize.UUIDV4,
|
|
11
|
+
},
|
|
12
|
+
name: {
|
|
13
|
+
type: Sequelize.STRING,
|
|
14
|
+
allowNull: true,
|
|
15
|
+
},
|
|
16
|
+
variable_ids: {
|
|
17
|
+
type: Sequelize.ARRAY(Sequelize.UUID),
|
|
18
|
+
allowNull: true,
|
|
19
|
+
},
|
|
20
|
+
path: {
|
|
21
|
+
type: Sequelize.STRING,
|
|
22
|
+
allowNull: true,
|
|
23
|
+
},
|
|
24
|
+
user_types: {
|
|
25
|
+
type: Sequelize.ARRAY(Sequelize.STRING),
|
|
26
|
+
allowNull: true,
|
|
27
|
+
},
|
|
28
|
+
created_by: {
|
|
29
|
+
type: Sequelize.UUID,
|
|
30
|
+
allowNull: true,
|
|
31
|
+
},
|
|
32
|
+
updated_by: {
|
|
33
|
+
type: Sequelize.UUID,
|
|
34
|
+
allowNull: true,
|
|
35
|
+
},
|
|
36
|
+
deleted_by: {
|
|
37
|
+
type: Sequelize.UUID,
|
|
38
|
+
allowNull: true,
|
|
39
|
+
},
|
|
40
|
+
created_at: {
|
|
41
|
+
allowNull: true,
|
|
42
|
+
type: Sequelize.DATE,
|
|
43
|
+
},
|
|
44
|
+
updated_at: {
|
|
45
|
+
allowNull: true,
|
|
46
|
+
type: Sequelize.DATE,
|
|
47
|
+
},
|
|
48
|
+
deleted_at: {
|
|
49
|
+
type: Sequelize.DATE,
|
|
50
|
+
allowNull: true,
|
|
51
|
+
},
|
|
52
|
+
});
|
|
56
53
|
},
|
|
57
|
-
async down(queryInterface
|
|
54
|
+
async down(queryInterface) {
|
|
58
55
|
await queryInterface.dropTable('dynamic_variable_label');
|
|
59
|
-
}
|
|
56
|
+
},
|
|
60
57
|
};
|
package/package.json
CHANGED