@admc-go-th/admc-library 1.0.13 → 1.0.15

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.
Files changed (60) hide show
  1. package/authAssignment-B6rhOsb-.d.ts +146 -0
  2. package/authItem-CRUblP_g.d.ts +85 -0
  3. package/databases/models/index.ts +2 -0
  4. package/databases/models/menu.ts +14 -0
  5. package/databases/models/users.ts +15 -0
  6. package/databases/schema/authAssignment.ts +72 -0
  7. package/databases/schema/authItem.ts +93 -0
  8. package/databases/schema/authItemChild.ts +34 -0
  9. package/databases/schema/authRole.ts +66 -0
  10. package/databases/schema/authRoleChild.ts +37 -0
  11. package/databases/schema/index.ts +10 -0
  12. package/databases/schema/mdContent.ts +139 -0
  13. package/databases/schema/mdContentGroup.ts +73 -0
  14. package/databases/schema/menu.ts +108 -0
  15. package/databases/schema/msModule.ts +66 -0
  16. package/databases/schema/users.ts +186 -0
  17. package/databases/tables/authAssignment.d.ts +2 -0
  18. package/databases/tables/authAssignment.js +499 -0
  19. package/databases/tables/authItem.d.ts +2 -0
  20. package/databases/tables/authItem.js +294 -0
  21. package/databases/tables/authItemChild.d.ts +2 -0
  22. package/databases/tables/authItemChild.js +296 -0
  23. package/databases/tables/authRole.d.ts +2 -0
  24. package/databases/tables/authRole.js +501 -0
  25. package/databases/{models → tables}/authRoleChild.js +1 -1
  26. package/databases/tables/index.d.ts +4 -0
  27. package/databases/{models → tables}/index.js +433 -346
  28. package/databases/tables/mdContent.d.ts +2 -0
  29. package/databases/tables/mdContent.js +499 -0
  30. package/databases/tables/mdContentGroup.d.ts +2 -0
  31. package/databases/tables/mdContentGroup.js +501 -0
  32. package/databases/tables/menu.d.ts +2 -0
  33. package/databases/tables/menu.js +294 -0
  34. package/databases/tables/msModule.d.ts +2 -0
  35. package/databases/tables/msModule.js +296 -0
  36. package/databases/tables/users.d.ts +2 -0
  37. package/databases/tables/users.js +499 -0
  38. package/middleware/authenticate-token.js +35 -24
  39. package/middleware/error-handler.js +1 -1
  40. package/package.json +4 -2
  41. package/databases/models/authAssignment.d.ts +0 -20
  42. package/databases/models/authAssignment.js +0 -88
  43. package/databases/models/authItem.d.ts +0 -26
  44. package/databases/models/authItem.js +0 -104
  45. package/databases/models/authItemChild.d.ts +0 -12
  46. package/databases/models/authItemChild.js +0 -58
  47. package/databases/models/authRole.d.ts +0 -20
  48. package/databases/models/authRole.js +0 -86
  49. package/databases/models/index.d.ts +0 -11
  50. package/databases/models/mdContent.d.ts +0 -38
  51. package/databases/models/mdContent.js +0 -146
  52. package/databases/models/mdContentGroup.d.ts +0 -22
  53. package/databases/models/mdContentGroup.js +0 -92
  54. package/databases/models/menu.d.ts +0 -26
  55. package/databases/models/menu.js +0 -106
  56. package/databases/models/msModule.d.ts +0 -20
  57. package/databases/models/msModule.js +0 -86
  58. package/databases/models/users.d.ts +0 -50
  59. package/databases/models/users.js +0 -185
  60. /package/databases/{models → tables}/authRoleChild.d.ts +0 -0
@@ -1,88 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var __decorateClass = (decorators, target, key, kind) => {
20
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
21
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
22
- if (decorator = decorators[i])
23
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
24
- if (kind && result) __defProp(target, key, result);
25
- return result;
26
- };
27
-
28
- // src/databases/models/authAssignment.ts
29
- var authAssignment_exports = {};
30
- __export(authAssignment_exports, {
31
- authAssignment: () => authAssignment
32
- });
33
- module.exports = __toCommonJS(authAssignment_exports);
34
- var import_sequelize_typescript = require("sequelize-typescript");
35
- var authAssignment = class extends import_sequelize_typescript.Model {
36
- };
37
- __decorateClass([
38
- (0, import_sequelize_typescript.Column)({
39
- field: "role_id",
40
- primaryKey: true,
41
- type: import_sequelize_typescript.DataType.INTEGER
42
- })
43
- ], authAssignment.prototype, "roleId", 2);
44
- __decorateClass([
45
- (0, import_sequelize_typescript.Column)({
46
- field: "user_id",
47
- primaryKey: true,
48
- type: import_sequelize_typescript.DataType.INTEGER
49
- })
50
- ], authAssignment.prototype, "userId", 2);
51
- __decorateClass([
52
- (0, import_sequelize_typescript.Column)({
53
- field: "created_by",
54
- allowNull: true,
55
- type: import_sequelize_typescript.DataType.STRING(60)
56
- })
57
- ], authAssignment.prototype, "createdBy", 2);
58
- __decorateClass([
59
- (0, import_sequelize_typescript.Column)({
60
- field: "created_date",
61
- allowNull: true,
62
- type: import_sequelize_typescript.DataType.DATE
63
- })
64
- ], authAssignment.prototype, "createdDate", 2);
65
- __decorateClass([
66
- (0, import_sequelize_typescript.Column)({
67
- field: "updated_by",
68
- allowNull: true,
69
- type: import_sequelize_typescript.DataType.STRING(60)
70
- })
71
- ], authAssignment.prototype, "updatedBy", 2);
72
- __decorateClass([
73
- (0, import_sequelize_typescript.Column)({
74
- field: "updated_date",
75
- allowNull: true,
76
- type: import_sequelize_typescript.DataType.DATE
77
- })
78
- ], authAssignment.prototype, "updatedDate", 2);
79
- authAssignment = __decorateClass([
80
- (0, import_sequelize_typescript.Table)({
81
- tableName: "auth_assignment",
82
- timestamps: false
83
- })
84
- ], authAssignment);
85
- // Annotate the CommonJS export names for ESM import in node:
86
- 0 && (module.exports = {
87
- authAssignment
88
- });
@@ -1,26 +0,0 @@
1
- import { Model } from 'sequelize-typescript';
2
-
3
- interface authItemAttributes {
4
- keyName: string;
5
- type: number;
6
- display: string;
7
- description?: string;
8
- status?: number;
9
- createdBy?: string;
10
- createdDate?: Date;
11
- updatedBy?: string;
12
- updatedDate?: Date;
13
- }
14
- declare class authItem extends Model<authItemAttributes, authItemAttributes> implements authItemAttributes {
15
- keyName: string;
16
- type: number;
17
- display: string;
18
- description?: string;
19
- status?: number;
20
- createdBy?: string;
21
- createdDate?: Date;
22
- updatedBy?: string;
23
- updatedDate?: Date;
24
- }
25
-
26
- export { authItem, type authItemAttributes };
@@ -1,104 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var __decorateClass = (decorators, target, key, kind) => {
20
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
21
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
22
- if (decorator = decorators[i])
23
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
24
- if (kind && result) __defProp(target, key, result);
25
- return result;
26
- };
27
-
28
- // src/databases/models/authItem.ts
29
- var authItem_exports = {};
30
- __export(authItem_exports, {
31
- authItem: () => authItem
32
- });
33
- module.exports = __toCommonJS(authItem_exports);
34
- var import_sequelize_typescript = require("sequelize-typescript");
35
- var authItem = class extends import_sequelize_typescript.Model {
36
- };
37
- __decorateClass([
38
- (0, import_sequelize_typescript.Column)({
39
- field: "key_name",
40
- primaryKey: true,
41
- type: import_sequelize_typescript.DataType.STRING(100)
42
- })
43
- ], authItem.prototype, "keyName", 2);
44
- __decorateClass([
45
- (0, import_sequelize_typescript.Column)({
46
- type: import_sequelize_typescript.DataType.SMALLINT
47
- })
48
- ], authItem.prototype, "type", 2);
49
- __decorateClass([
50
- (0, import_sequelize_typescript.Column)({
51
- type: import_sequelize_typescript.DataType.STRING(255)
52
- })
53
- ], authItem.prototype, "display", 2);
54
- __decorateClass([
55
- (0, import_sequelize_typescript.Column)({
56
- allowNull: true,
57
- type: import_sequelize_typescript.DataType.STRING
58
- })
59
- ], authItem.prototype, "description", 2);
60
- __decorateClass([
61
- (0, import_sequelize_typescript.Column)({
62
- allowNull: true,
63
- type: import_sequelize_typescript.DataType.INTEGER,
64
- defaultValue: "1"
65
- })
66
- ], authItem.prototype, "status", 2);
67
- __decorateClass([
68
- (0, import_sequelize_typescript.Column)({
69
- field: "created_by",
70
- allowNull: true,
71
- type: import_sequelize_typescript.DataType.STRING(60)
72
- })
73
- ], authItem.prototype, "createdBy", 2);
74
- __decorateClass([
75
- (0, import_sequelize_typescript.Column)({
76
- field: "created_date",
77
- allowNull: true,
78
- type: import_sequelize_typescript.DataType.DATE
79
- })
80
- ], authItem.prototype, "createdDate", 2);
81
- __decorateClass([
82
- (0, import_sequelize_typescript.Column)({
83
- field: "updated_by",
84
- allowNull: true,
85
- type: import_sequelize_typescript.DataType.STRING(60)
86
- })
87
- ], authItem.prototype, "updatedBy", 2);
88
- __decorateClass([
89
- (0, import_sequelize_typescript.Column)({
90
- field: "updated_date",
91
- allowNull: true,
92
- type: import_sequelize_typescript.DataType.DATE
93
- })
94
- ], authItem.prototype, "updatedDate", 2);
95
- authItem = __decorateClass([
96
- (0, import_sequelize_typescript.Table)({
97
- tableName: "auth_item",
98
- timestamps: false
99
- })
100
- ], authItem);
101
- // Annotate the CommonJS export names for ESM import in node:
102
- 0 && (module.exports = {
103
- authItem
104
- });
@@ -1,12 +0,0 @@
1
- import { Model } from 'sequelize-typescript';
2
-
3
- interface authItemChildAttributes {
4
- parent: string;
5
- child: string;
6
- }
7
- declare class authItemChild extends Model<authItemChildAttributes, authItemChildAttributes> implements authItemChildAttributes {
8
- parent: string;
9
- child: string;
10
- }
11
-
12
- export { authItemChild, type authItemChildAttributes };
@@ -1,58 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var __decorateClass = (decorators, target, key, kind) => {
20
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
21
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
22
- if (decorator = decorators[i])
23
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
24
- if (kind && result) __defProp(target, key, result);
25
- return result;
26
- };
27
-
28
- // src/databases/models/authItemChild.ts
29
- var authItemChild_exports = {};
30
- __export(authItemChild_exports, {
31
- authItemChild: () => authItemChild
32
- });
33
- module.exports = __toCommonJS(authItemChild_exports);
34
- var import_sequelize_typescript = require("sequelize-typescript");
35
- var authItemChild = class extends import_sequelize_typescript.Model {
36
- };
37
- __decorateClass([
38
- (0, import_sequelize_typescript.Column)({
39
- primaryKey: true,
40
- type: import_sequelize_typescript.DataType.STRING(64)
41
- })
42
- ], authItemChild.prototype, "parent", 2);
43
- __decorateClass([
44
- (0, import_sequelize_typescript.Column)({
45
- primaryKey: true,
46
- type: import_sequelize_typescript.DataType.STRING(64)
47
- })
48
- ], authItemChild.prototype, "child", 2);
49
- authItemChild = __decorateClass([
50
- (0, import_sequelize_typescript.Table)({
51
- tableName: "auth_item_child",
52
- timestamps: false
53
- })
54
- ], authItemChild);
55
- // Annotate the CommonJS export names for ESM import in node:
56
- 0 && (module.exports = {
57
- authItemChild
58
- });
@@ -1,20 +0,0 @@
1
- import { Model } from 'sequelize-typescript';
2
-
3
- interface authRoleAttributes {
4
- id?: number;
5
- name: string;
6
- createdBy?: string;
7
- createdDate?: Date;
8
- updatedBy?: string;
9
- updatedDate?: Date;
10
- }
11
- declare class authRole extends Model<authRoleAttributes, authRoleAttributes> implements authRoleAttributes {
12
- id?: number;
13
- name: string;
14
- createdBy?: string;
15
- createdDate?: Date;
16
- updatedBy?: string;
17
- updatedDate?: Date;
18
- }
19
-
20
- export { authRole, type authRoleAttributes };
@@ -1,86 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var __decorateClass = (decorators, target, key, kind) => {
20
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
21
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
22
- if (decorator = decorators[i])
23
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
24
- if (kind && result) __defProp(target, key, result);
25
- return result;
26
- };
27
-
28
- // src/databases/models/authRole.ts
29
- var authRole_exports = {};
30
- __export(authRole_exports, {
31
- authRole: () => authRole
32
- });
33
- module.exports = __toCommonJS(authRole_exports);
34
- var import_sequelize_typescript = require("sequelize-typescript");
35
- var authRole = class extends import_sequelize_typescript.Model {
36
- };
37
- __decorateClass([
38
- (0, import_sequelize_typescript.Column)({
39
- primaryKey: true,
40
- autoIncrement: true,
41
- type: import_sequelize_typescript.DataType.INTEGER
42
- })
43
- ], authRole.prototype, "id", 2);
44
- __decorateClass([
45
- (0, import_sequelize_typescript.Column)({
46
- type: import_sequelize_typescript.DataType.STRING(255)
47
- })
48
- ], authRole.prototype, "name", 2);
49
- __decorateClass([
50
- (0, import_sequelize_typescript.Column)({
51
- field: "created_by",
52
- allowNull: true,
53
- type: import_sequelize_typescript.DataType.STRING(60)
54
- })
55
- ], authRole.prototype, "createdBy", 2);
56
- __decorateClass([
57
- (0, import_sequelize_typescript.Column)({
58
- field: "created_date",
59
- allowNull: true,
60
- type: import_sequelize_typescript.DataType.DATE
61
- })
62
- ], authRole.prototype, "createdDate", 2);
63
- __decorateClass([
64
- (0, import_sequelize_typescript.Column)({
65
- field: "updated_by",
66
- allowNull: true,
67
- type: import_sequelize_typescript.DataType.STRING(60)
68
- })
69
- ], authRole.prototype, "updatedBy", 2);
70
- __decorateClass([
71
- (0, import_sequelize_typescript.Column)({
72
- field: "updated_date",
73
- allowNull: true,
74
- type: import_sequelize_typescript.DataType.DATE
75
- })
76
- ], authRole.prototype, "updatedDate", 2);
77
- authRole = __decorateClass([
78
- (0, import_sequelize_typescript.Table)({
79
- tableName: "auth_role",
80
- timestamps: false
81
- })
82
- ], authRole);
83
- // Annotate the CommonJS export names for ESM import in node:
84
- 0 && (module.exports = {
85
- authRole
86
- });
@@ -1,11 +0,0 @@
1
- export { authAssignment, authAssignmentAttributes } from './authAssignment.js';
2
- export { authItem, authItemAttributes } from './authItem.js';
3
- export { authItemChild, authItemChildAttributes } from './authItemChild.js';
4
- export { authRole, authRoleAttributes } from './authRole.js';
5
- export { authRoleChild, authRoleChildAttributes } from './authRoleChild.js';
6
- export { mdContent, mdContentAttributes } from './mdContent.js';
7
- export { mdContentGroup, mdContentGroupAttributes } from './mdContentGroup.js';
8
- export { menu, menuAttributes } from './menu.js';
9
- export { msModule, msModuleAttributes } from './msModule.js';
10
- export { users, usersAttributes } from './users.js';
11
- import 'sequelize-typescript';
@@ -1,38 +0,0 @@
1
- import { Model } from 'sequelize-typescript';
2
-
3
- interface mdContentAttributes {
4
- id?: number;
5
- uuid: number;
6
- groupId?: number;
7
- userId: number;
8
- title?: string;
9
- detail?: string;
10
- metaTitle?: string;
11
- metaKeyword?: string;
12
- metaDescription?: string;
13
- imageCover?: string;
14
- imageGallery?: string;
15
- createdBy?: string;
16
- createdDate?: Date;
17
- updatedBy?: string;
18
- updatedDate?: Date;
19
- }
20
- declare class mdContent extends Model<mdContentAttributes, mdContentAttributes> implements mdContentAttributes {
21
- id?: number;
22
- uuid: number;
23
- groupId?: number;
24
- userId: number;
25
- title?: string;
26
- detail?: string;
27
- metaTitle?: string;
28
- metaKeyword?: string;
29
- metaDescription?: string;
30
- imageCover?: string;
31
- imageGallery?: string;
32
- createdBy?: string;
33
- createdDate?: Date;
34
- updatedBy?: string;
35
- updatedDate?: Date;
36
- }
37
-
38
- export { mdContent, type mdContentAttributes };
@@ -1,146 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var __decorateClass = (decorators, target, key, kind) => {
20
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
21
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
22
- if (decorator = decorators[i])
23
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
24
- if (kind && result) __defProp(target, key, result);
25
- return result;
26
- };
27
-
28
- // src/databases/models/mdContent.ts
29
- var mdContent_exports = {};
30
- __export(mdContent_exports, {
31
- mdContent: () => mdContent
32
- });
33
- module.exports = __toCommonJS(mdContent_exports);
34
- var import_sequelize_typescript = require("sequelize-typescript");
35
- var mdContent = class extends import_sequelize_typescript.Model {
36
- };
37
- __decorateClass([
38
- (0, import_sequelize_typescript.Column)({
39
- primaryKey: true,
40
- autoIncrement: true,
41
- type: import_sequelize_typescript.DataType.INTEGER
42
- })
43
- ], mdContent.prototype, "id", 2);
44
- __decorateClass([
45
- (0, import_sequelize_typescript.Column)({
46
- type: import_sequelize_typescript.DataType.INTEGER
47
- })
48
- ], mdContent.prototype, "uuid", 2);
49
- __decorateClass([
50
- (0, import_sequelize_typescript.Column)({
51
- field: "group_id",
52
- allowNull: true,
53
- type: import_sequelize_typescript.DataType.INTEGER
54
- })
55
- ], mdContent.prototype, "groupId", 2);
56
- __decorateClass([
57
- (0, import_sequelize_typescript.Column)({
58
- field: "user_id",
59
- type: import_sequelize_typescript.DataType.INTEGER
60
- })
61
- ], mdContent.prototype, "userId", 2);
62
- __decorateClass([
63
- (0, import_sequelize_typescript.Column)({
64
- allowNull: true,
65
- type: import_sequelize_typescript.DataType.STRING(255)
66
- })
67
- ], mdContent.prototype, "title", 2);
68
- __decorateClass([
69
- (0, import_sequelize_typescript.Column)({
70
- allowNull: true,
71
- type: import_sequelize_typescript.DataType.STRING
72
- })
73
- ], mdContent.prototype, "detail", 2);
74
- __decorateClass([
75
- (0, import_sequelize_typescript.Column)({
76
- field: "meta_title",
77
- allowNull: true,
78
- type: import_sequelize_typescript.DataType.STRING(255)
79
- })
80
- ], mdContent.prototype, "metaTitle", 2);
81
- __decorateClass([
82
- (0, import_sequelize_typescript.Column)({
83
- field: "meta_keyword",
84
- allowNull: true,
85
- type: import_sequelize_typescript.DataType.STRING(255)
86
- })
87
- ], mdContent.prototype, "metaKeyword", 2);
88
- __decorateClass([
89
- (0, import_sequelize_typescript.Column)({
90
- field: "meta_description",
91
- allowNull: true,
92
- type: import_sequelize_typescript.DataType.STRING(255)
93
- })
94
- ], mdContent.prototype, "metaDescription", 2);
95
- __decorateClass([
96
- (0, import_sequelize_typescript.Column)({
97
- field: "image_cover",
98
- allowNull: true,
99
- type: import_sequelize_typescript.DataType.STRING(255)
100
- })
101
- ], mdContent.prototype, "imageCover", 2);
102
- __decorateClass([
103
- (0, import_sequelize_typescript.Column)({
104
- field: "image_gallery",
105
- allowNull: true,
106
- type: import_sequelize_typescript.DataType.STRING
107
- })
108
- ], mdContent.prototype, "imageGallery", 2);
109
- __decorateClass([
110
- (0, import_sequelize_typescript.Column)({
111
- field: "created_by",
112
- allowNull: true,
113
- type: import_sequelize_typescript.DataType.STRING(60)
114
- })
115
- ], mdContent.prototype, "createdBy", 2);
116
- __decorateClass([
117
- (0, import_sequelize_typescript.Column)({
118
- field: "created_date",
119
- allowNull: true,
120
- type: import_sequelize_typescript.DataType.DATE
121
- })
122
- ], mdContent.prototype, "createdDate", 2);
123
- __decorateClass([
124
- (0, import_sequelize_typescript.Column)({
125
- field: "updated_by",
126
- allowNull: true,
127
- type: import_sequelize_typescript.DataType.STRING(60)
128
- })
129
- ], mdContent.prototype, "updatedBy", 2);
130
- __decorateClass([
131
- (0, import_sequelize_typescript.Column)({
132
- field: "updated_date",
133
- allowNull: true,
134
- type: import_sequelize_typescript.DataType.DATE
135
- })
136
- ], mdContent.prototype, "updatedDate", 2);
137
- mdContent = __decorateClass([
138
- (0, import_sequelize_typescript.Table)({
139
- tableName: "md_content",
140
- timestamps: false
141
- })
142
- ], mdContent);
143
- // Annotate the CommonJS export names for ESM import in node:
144
- 0 && (module.exports = {
145
- mdContent
146
- });
@@ -1,22 +0,0 @@
1
- import { Model } from 'sequelize-typescript';
2
-
3
- interface mdContentGroupAttributes {
4
- id?: number;
5
- name: string;
6
- description?: string;
7
- createdBy?: string;
8
- createdDate?: Date;
9
- updatedBy?: string;
10
- updatedDate?: Date;
11
- }
12
- declare class mdContentGroup extends Model<mdContentGroupAttributes, mdContentGroupAttributes> implements mdContentGroupAttributes {
13
- id?: number;
14
- name: string;
15
- description?: string;
16
- createdBy?: string;
17
- createdDate?: Date;
18
- updatedBy?: string;
19
- updatedDate?: Date;
20
- }
21
-
22
- export { mdContentGroup, type mdContentGroupAttributes };