@admc-go-th/admc-library 1.0.125 → 1.0.127

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.
@@ -85,6 +85,32 @@ declare class mdContent extends Model<mdContentAttributes, mdContentAttributes>
85
85
  mdContentGroup?: mdContentGroup;
86
86
  }
87
87
 
88
+ interface mdQuestionnaireDataAttributes {
89
+ id?: number;
90
+ uuid?: string;
91
+ questionnaireId?: number;
92
+ dataInfo?: object;
93
+ status?: number;
94
+ ipAddress?: string;
95
+ createdBy?: string;
96
+ createdDate?: Date;
97
+ updatedBy?: string;
98
+ updatedDate?: Date;
99
+ }
100
+ declare class mdQuestionnaireData extends Model<mdQuestionnaireDataAttributes, mdQuestionnaireDataAttributes> implements mdQuestionnaireDataAttributes {
101
+ id?: number;
102
+ uuid?: string;
103
+ questionnaireId?: number;
104
+ dataInfo?: object;
105
+ status?: number;
106
+ ipAddress?: string;
107
+ createdBy?: string;
108
+ createdDate?: Date;
109
+ updatedBy?: string;
110
+ updatedDate?: Date;
111
+ mdQuestionnaire?: mdQuestionnaire;
112
+ }
113
+
88
114
  interface mdQuestionnaireAttributes {
89
115
  id?: number;
90
116
  uuid?: string;
@@ -127,6 +153,7 @@ declare class mdQuestionnaire extends Model<mdQuestionnaireAttributes, mdQuestio
127
153
  updatedBy?: string;
128
154
  updatedDate?: Date;
129
155
  user?: users;
156
+ mdQuestionnaireData?: mdQuestionnaireData[];
130
157
  }
131
158
 
132
159
  interface usersVerifyAttributes {
@@ -268,4 +295,4 @@ declare class authAssignment extends Model<authAssignmentAttributes, authAssignm
268
295
  authRole?: authRole;
269
296
  }
270
297
 
271
- export { type authAssignmentAttributes as a, authAssignment as b, type authRoleAttributes as c, authRole as d, type authRoleChildAttributes as e, authRoleChild as f, mdContent as g, type mdContentGroupAttributes as h, mdContentGroup as i, type mdQuestionnaireAttributes as j, mdQuestionnaire as k, users as l, type mdContentAttributes as m, type usersVerifyAttributes as n, usersVerify as o, type usersAttributes as u };
298
+ export { type authAssignmentAttributes as a, authAssignment as b, type authRoleAttributes as c, authRole as d, type authRoleChildAttributes as e, authRoleChild as f, mdContent as g, type mdContentGroupAttributes as h, mdContentGroup as i, type mdQuestionnaireAttributes as j, mdQuestionnaire as k, type mdQuestionnaireDataAttributes as l, type mdContentAttributes as m, mdQuestionnaireData as n, users as o, type usersVerifyAttributes as p, usersVerify as q, type usersAttributes as u };
@@ -43,6 +43,7 @@ export * from "./mdNews";
43
43
  export * from "./mdNewsGroup";
44
44
  export * from "./mdPopup";
45
45
  export * from "./mdQuestionnaire";
46
+ export * from "./mdQuestionnaireData";
46
47
  export * from "./mdSetting";
47
48
  export * from "./mdTranslate";
48
49
  export * from "./mdTranslateGroup";
@@ -1,7 +1,8 @@
1
1
  import {
2
- Model, Table, Column, DataType, Index, Sequelize, ForeignKey, BelongsTo
2
+ Model, Table, Column, DataType, Index, Sequelize, ForeignKey, BelongsTo, HasMany
3
3
  } from "sequelize-typescript";
4
4
  import { users } from "./users";
5
+ import { mdQuestionnaireData } from "./mdQuestionnaireData";
5
6
 
6
7
  export interface mdQuestionnaireAttributes {
7
8
  id?: number;
@@ -160,4 +161,9 @@ export class mdQuestionnaire extends Model<mdQuestionnaireAttributes, mdQuestion
160
161
  @BelongsTo(() => users)
161
162
  declare user?: users;
162
163
 
164
+ @HasMany(() => mdQuestionnaireData, {
165
+ sourceKey: "id"
166
+ })
167
+ declare mdQuestionnaireData?: mdQuestionnaireData[];
168
+
163
169
  }
@@ -0,0 +1,97 @@
1
+ import {
2
+ Model, Table, Column, DataType, Index, Sequelize, ForeignKey, BelongsTo
3
+ } from "sequelize-typescript";
4
+ import { mdQuestionnaire } from "./mdQuestionnaire";
5
+
6
+ export interface mdQuestionnaireDataAttributes {
7
+ id?: number;
8
+ uuid?: string;
9
+ questionnaireId?: number;
10
+ dataInfo?: object;
11
+ status?: number;
12
+ ipAddress?: string;
13
+ createdBy?: string;
14
+ createdDate?: Date;
15
+ updatedBy?: string;
16
+ updatedDate?: Date;
17
+ }
18
+
19
+ @Table({
20
+ tableName: "md_questionnaire_data",
21
+ timestamps: false
22
+ })
23
+ export class mdQuestionnaireData extends Model<mdQuestionnaireDataAttributes, mdQuestionnaireDataAttributes> implements mdQuestionnaireDataAttributes {
24
+
25
+ @Column({
26
+ primaryKey: true,
27
+ autoIncrement: true,
28
+ type: DataType.INTEGER
29
+ })
30
+ declare id?: number;
31
+
32
+ @Column({
33
+ allowNull: true,
34
+ type: DataType.STRING(60)
35
+ })
36
+ declare uuid?: string;
37
+
38
+ @ForeignKey(() => mdQuestionnaire)
39
+ @Column({
40
+ field: "questionnaire_id",
41
+ allowNull: true,
42
+ type: DataType.INTEGER
43
+ })
44
+ declare questionnaireId?: number;
45
+
46
+ @Column({
47
+ field: "data_info",
48
+ allowNull: true,
49
+ type: DataType.JSON
50
+ })
51
+ declare dataInfo?: object;
52
+
53
+ @Column({
54
+ allowNull: true,
55
+ type: DataType.INTEGER
56
+ })
57
+ declare status?: number;
58
+
59
+ @Column({
60
+ field: "ip_address",
61
+ allowNull: true,
62
+ type: DataType.STRING(255)
63
+ })
64
+ declare ipAddress?: string;
65
+
66
+ @Column({
67
+ field: "created_by",
68
+ allowNull: true,
69
+ type: DataType.STRING(60)
70
+ })
71
+ declare createdBy?: string;
72
+
73
+ @Column({
74
+ field: "created_date",
75
+ allowNull: true,
76
+ type: DataType.DATE
77
+ })
78
+ declare createdDate?: Date;
79
+
80
+ @Column({
81
+ field: "updated_by",
82
+ allowNull: true,
83
+ type: DataType.STRING(60)
84
+ })
85
+ declare updatedBy?: string;
86
+
87
+ @Column({
88
+ field: "updated_date",
89
+ allowNull: true,
90
+ type: DataType.DATE
91
+ })
92
+ declare updatedDate?: Date;
93
+
94
+ @BelongsTo(() => mdQuestionnaire)
95
+ declare mdQuestionnaire?: mdQuestionnaire;
96
+
97
+ }
@@ -20,6 +20,8 @@ export interface msWebsiteAttributes {
20
20
  fax?: string;
21
21
  office?: string;
22
22
  opened?: string;
23
+ latitude?: string;
24
+ longitude?: string;
23
25
  info?: object;
24
26
  createdBy?: string;
25
27
  createdDate?: Date;
@@ -138,6 +140,18 @@ export class msWebsite extends Model<msWebsiteAttributes, msWebsiteAttributes> i
138
140
  })
139
141
  declare opened?: string;
140
142
 
143
+ @Column({
144
+ allowNull: true,
145
+ type: DataType.DECIMAL(10,8)
146
+ })
147
+ declare latitude?: string;
148
+
149
+ @Column({
150
+ allowNull: true,
151
+ type: DataType.DECIMAL(11,8)
152
+ })
153
+ declare longitude?: string;
154
+
141
155
  @Column({
142
156
  allowNull: true,
143
157
  type: DataType.JSON
@@ -1,2 +1,2 @@
1
1
  import 'sequelize-typescript';
2
- export { b as authAssignment, a as authAssignmentAttributes } from '../../authAssignment-BSZ2AlIE.js';
2
+ export { b as authAssignment, a as authAssignmentAttributes } from '../../authAssignment-Te_XO-S8.js';