@admc-go-th/admc-library 1.0.87 → 1.0.89

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.
@@ -0,0 +1,134 @@
1
+ import {
2
+ Model, Table, Column, DataType, Index, Sequelize, ForeignKey
3
+ } from "sequelize-typescript";
4
+
5
+ export interface appFaqAttributes {
6
+ id?: number;
7
+ uuid?: string;
8
+ titleName?: string;
9
+ firstName?: string;
10
+ lastName?: string;
11
+ phone?: string;
12
+ email?: string;
13
+ question?: string;
14
+ detail?: string;
15
+ attachments?: object;
16
+ answer?: string;
17
+ status?: number;
18
+ createdBy?: string;
19
+ createdDate?: Date;
20
+ updatedBy?: string;
21
+ updatedDate?: Date;
22
+ }
23
+
24
+ @Table({
25
+ tableName: "app_faq",
26
+ timestamps: false
27
+ })
28
+ export class appFaq extends Model<appFaqAttributes, appFaqAttributes> implements appFaqAttributes {
29
+
30
+ @Column({
31
+ primaryKey: true,
32
+ autoIncrement: true,
33
+ type: DataType.INTEGER
34
+ })
35
+ declare id?: number;
36
+
37
+ @Column({
38
+ allowNull: true,
39
+ type: DataType.STRING(60)
40
+ })
41
+ declare uuid?: string;
42
+
43
+ @Column({
44
+ field: "title_name",
45
+ allowNull: true,
46
+ type: DataType.STRING(50)
47
+ })
48
+ declare titleName?: string;
49
+
50
+ @Column({
51
+ field: "first_name",
52
+ allowNull: true,
53
+ type: DataType.STRING(255)
54
+ })
55
+ declare firstName?: string;
56
+
57
+ @Column({
58
+ field: "last_name",
59
+ allowNull: true,
60
+ type: DataType.STRING(255)
61
+ })
62
+ declare lastName?: string;
63
+
64
+ @Column({
65
+ allowNull: true,
66
+ type: DataType.STRING(255)
67
+ })
68
+ declare phone?: string;
69
+
70
+ @Column({
71
+ allowNull: true,
72
+ type: DataType.STRING(255)
73
+ })
74
+ declare email?: string;
75
+
76
+ @Column({
77
+ allowNull: true,
78
+ type: DataType.STRING(255)
79
+ })
80
+ declare question?: string;
81
+
82
+ @Column({
83
+ allowNull: true,
84
+ type: DataType.STRING
85
+ })
86
+ declare detail?: string;
87
+
88
+ @Column({
89
+ allowNull: true,
90
+ type: DataType.JSON
91
+ })
92
+ declare attachments?: object;
93
+
94
+ @Column({
95
+ allowNull: true,
96
+ type: DataType.STRING
97
+ })
98
+ declare answer?: string;
99
+
100
+ @Column({
101
+ allowNull: true,
102
+ type: DataType.INTEGER
103
+ })
104
+ declare status?: number;
105
+
106
+ @Column({
107
+ field: "created_by",
108
+ allowNull: true,
109
+ type: DataType.STRING(60)
110
+ })
111
+ declare createdBy?: string;
112
+
113
+ @Column({
114
+ field: "created_date",
115
+ allowNull: true,
116
+ type: DataType.DATE
117
+ })
118
+ declare createdDate?: Date;
119
+
120
+ @Column({
121
+ field: "updated_by",
122
+ allowNull: true,
123
+ type: DataType.STRING(60)
124
+ })
125
+ declare updatedBy?: string;
126
+
127
+ @Column({
128
+ field: "updated_date",
129
+ allowNull: true,
130
+ type: DataType.DATE
131
+ })
132
+ declare updatedDate?: Date;
133
+
134
+ }
@@ -1,12 +1,12 @@
1
1
  export * from "./appBlessings";
2
2
  export * from "./appBlessingsTransaction";
3
+ export * from "./appFaq";
3
4
  export * from "./authAssignment";
4
5
  export * from "./authItem";
5
6
  export * from "./authItemChild";
6
7
  export * from "./authRole";
7
8
  export * from "./authRoleChild";
8
9
  export * from "./files";
9
- export * from "./formFaq";
10
10
  export * from "./helper";
11
11
  export * from "./logs";
12
12
  export * from "./mdBanner";
@@ -0,0 +1,40 @@
1
+ import { Model } from 'sequelize-typescript';
2
+
3
+ interface appFaqAttributes {
4
+ id?: number;
5
+ uuid?: string;
6
+ titleName?: string;
7
+ firstName?: string;
8
+ lastName?: string;
9
+ phone?: string;
10
+ email?: string;
11
+ question?: string;
12
+ detail?: string;
13
+ attachments?: object;
14
+ answer?: string;
15
+ status?: number;
16
+ createdBy?: string;
17
+ createdDate?: Date;
18
+ updatedBy?: string;
19
+ updatedDate?: Date;
20
+ }
21
+ declare class appFaq extends Model<appFaqAttributes, appFaqAttributes> implements appFaqAttributes {
22
+ id?: number;
23
+ uuid?: string;
24
+ titleName?: string;
25
+ firstName?: string;
26
+ lastName?: string;
27
+ phone?: string;
28
+ email?: string;
29
+ question?: string;
30
+ detail?: string;
31
+ attachments?: object;
32
+ answer?: string;
33
+ status?: number;
34
+ createdBy?: string;
35
+ createdDate?: Date;
36
+ updatedBy?: string;
37
+ updatedDate?: Date;
38
+ }
39
+
40
+ export { appFaq, type appFaqAttributes };
@@ -0,0 +1,150 @@
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/tables/appFaq.ts
29
+ var appFaq_exports = {};
30
+ __export(appFaq_exports, {
31
+ appFaq: () => appFaq
32
+ });
33
+ module.exports = __toCommonJS(appFaq_exports);
34
+ var import_sequelize_typescript = require("sequelize-typescript");
35
+ var appFaq = 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
+ ], appFaq.prototype, "id", 2);
44
+ __decorateClass([
45
+ (0, import_sequelize_typescript.Column)({
46
+ allowNull: true,
47
+ type: import_sequelize_typescript.DataType.STRING(60)
48
+ })
49
+ ], appFaq.prototype, "uuid", 2);
50
+ __decorateClass([
51
+ (0, import_sequelize_typescript.Column)({
52
+ field: "title_name",
53
+ allowNull: true,
54
+ type: import_sequelize_typescript.DataType.STRING(50)
55
+ })
56
+ ], appFaq.prototype, "titleName", 2);
57
+ __decorateClass([
58
+ (0, import_sequelize_typescript.Column)({
59
+ field: "first_name",
60
+ allowNull: true,
61
+ type: import_sequelize_typescript.DataType.STRING(255)
62
+ })
63
+ ], appFaq.prototype, "firstName", 2);
64
+ __decorateClass([
65
+ (0, import_sequelize_typescript.Column)({
66
+ field: "last_name",
67
+ allowNull: true,
68
+ type: import_sequelize_typescript.DataType.STRING(255)
69
+ })
70
+ ], appFaq.prototype, "lastName", 2);
71
+ __decorateClass([
72
+ (0, import_sequelize_typescript.Column)({
73
+ allowNull: true,
74
+ type: import_sequelize_typescript.DataType.STRING(255)
75
+ })
76
+ ], appFaq.prototype, "phone", 2);
77
+ __decorateClass([
78
+ (0, import_sequelize_typescript.Column)({
79
+ allowNull: true,
80
+ type: import_sequelize_typescript.DataType.STRING(255)
81
+ })
82
+ ], appFaq.prototype, "email", 2);
83
+ __decorateClass([
84
+ (0, import_sequelize_typescript.Column)({
85
+ allowNull: true,
86
+ type: import_sequelize_typescript.DataType.STRING(255)
87
+ })
88
+ ], appFaq.prototype, "question", 2);
89
+ __decorateClass([
90
+ (0, import_sequelize_typescript.Column)({
91
+ allowNull: true,
92
+ type: import_sequelize_typescript.DataType.STRING
93
+ })
94
+ ], appFaq.prototype, "detail", 2);
95
+ __decorateClass([
96
+ (0, import_sequelize_typescript.Column)({
97
+ allowNull: true,
98
+ type: import_sequelize_typescript.DataType.JSON
99
+ })
100
+ ], appFaq.prototype, "attachments", 2);
101
+ __decorateClass([
102
+ (0, import_sequelize_typescript.Column)({
103
+ allowNull: true,
104
+ type: import_sequelize_typescript.DataType.STRING
105
+ })
106
+ ], appFaq.prototype, "answer", 2);
107
+ __decorateClass([
108
+ (0, import_sequelize_typescript.Column)({
109
+ allowNull: true,
110
+ type: import_sequelize_typescript.DataType.INTEGER
111
+ })
112
+ ], appFaq.prototype, "status", 2);
113
+ __decorateClass([
114
+ (0, import_sequelize_typescript.Column)({
115
+ field: "created_by",
116
+ allowNull: true,
117
+ type: import_sequelize_typescript.DataType.STRING(60)
118
+ })
119
+ ], appFaq.prototype, "createdBy", 2);
120
+ __decorateClass([
121
+ (0, import_sequelize_typescript.Column)({
122
+ field: "created_date",
123
+ allowNull: true,
124
+ type: import_sequelize_typescript.DataType.DATE
125
+ })
126
+ ], appFaq.prototype, "createdDate", 2);
127
+ __decorateClass([
128
+ (0, import_sequelize_typescript.Column)({
129
+ field: "updated_by",
130
+ allowNull: true,
131
+ type: import_sequelize_typescript.DataType.STRING(60)
132
+ })
133
+ ], appFaq.prototype, "updatedBy", 2);
134
+ __decorateClass([
135
+ (0, import_sequelize_typescript.Column)({
136
+ field: "updated_date",
137
+ allowNull: true,
138
+ type: import_sequelize_typescript.DataType.DATE
139
+ })
140
+ ], appFaq.prototype, "updatedDate", 2);
141
+ appFaq = __decorateClass([
142
+ (0, import_sequelize_typescript.Table)({
143
+ tableName: "app_faq",
144
+ timestamps: false
145
+ })
146
+ ], appFaq);
147
+ // Annotate the CommonJS export names for ESM import in node:
148
+ 0 && (module.exports = {
149
+ appFaq
150
+ });
@@ -1,8 +1,8 @@
1
1
  export { b as appBlessings, a as appBlessingsAttributes, d as appBlessingsTransaction, c as appBlessingsTransactionAttributes } from '../../appBlessings-peNBIrhQ.js';
2
+ export { appFaq, appFaqAttributes } from './appFaq.js';
2
3
  export { b as authAssignment, a as authAssignmentAttributes, d as authRole, c as authRoleAttributes, f as authRoleChild, e as authRoleChildAttributes, g as mdContent, m as mdContentAttributes, i as mdContentGroup, h as mdContentGroupAttributes, k as mdQuestionnaire, j as mdQuestionnaireAttributes, l as users, u as usersAttributes, o as usersVerify, n as usersVerifyAttributes } from '../../authAssignment-CcMPKnNv.js';
3
4
  export { b as authItem, a as authItemAttributes, d as authItemChild, c as authItemChildAttributes, e as menu, m as menuAttributes, g as msModule, f as msModuleAttributes } from '../../authItem-DBSkCaSi.js';
4
5
  export { a as files, f as filesAttributes, b as mdBanner, m as mdBannerAttributes } from '../../files-C1bgSUjy.js';
5
- export { formFaq, formFaqAttributes } from './formFaq.js';
6
6
  export { helper, helperAttributes } from './helper.js';
7
7
  export { logs, logsAttributes } from './logs.js';
8
8
  export { mdCmsSingle, mdCmsSingleAttributes } from './mdCmsSingle.js';