@admc-go-th/admc-library 1.0.55 → 1.0.56

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.
@@ -30,4 +30,5 @@ export * from "./setting";
30
30
  export * from "./userCenterV";
31
31
  export * from "./userRoleV";
32
32
  export * from "./users";
33
- export * from "./usersVerify";
33
+ export * from "./usersVerify";
34
+ export * from "./wordFilter";
@@ -0,0 +1,68 @@
1
+ import {
2
+ Model, Table, Column, DataType, Index, Sequelize, ForeignKey
3
+ } from "sequelize-typescript";
4
+
5
+ export interface wordFilterAttributes {
6
+ id?: number;
7
+ word?: string;
8
+ status?: number;
9
+ createdBy?: string;
10
+ createdDate?: Date;
11
+ updatedBy?: string;
12
+ updatedDate?: Date;
13
+ }
14
+
15
+ @Table({
16
+ tableName: "word_filter",
17
+ timestamps: false
18
+ })
19
+ export class wordFilter extends Model<wordFilterAttributes, wordFilterAttributes> implements wordFilterAttributes {
20
+
21
+ @Column({
22
+ primaryKey: true,
23
+ autoIncrement: true,
24
+ type: DataType.INTEGER
25
+ })
26
+ declare id?: number;
27
+
28
+ @Column({
29
+ allowNull: true,
30
+ type: DataType.STRING(255)
31
+ })
32
+ declare word?: string;
33
+
34
+ @Column({
35
+ allowNull: true,
36
+ type: DataType.INTEGER
37
+ })
38
+ declare status?: number;
39
+
40
+ @Column({
41
+ field: "created_by",
42
+ allowNull: true,
43
+ type: DataType.STRING(60)
44
+ })
45
+ declare createdBy?: string;
46
+
47
+ @Column({
48
+ field: "created_date",
49
+ allowNull: true,
50
+ type: DataType.DATE
51
+ })
52
+ declare createdDate?: Date;
53
+
54
+ @Column({
55
+ field: "updated_by",
56
+ allowNull: true,
57
+ type: DataType.STRING(60)
58
+ })
59
+ declare updatedBy?: string;
60
+
61
+ @Column({
62
+ field: "updated_date",
63
+ allowNull: true,
64
+ type: DataType.DATE
65
+ })
66
+ declare updatedDate?: Date;
67
+
68
+ }
@@ -16,4 +16,5 @@ export { oauthRefreshToken, oauthRefreshTokenAttributes } from './oauthRefreshTo
16
16
  export { setting, settingAttributes } from './setting.js';
17
17
  export { userCenterV, userCenterVAttributes } from './userCenterV.js';
18
18
  export { userRoleV, userRoleVAttributes } from './userRoleV.js';
19
+ export { wordFilter, wordFilterAttributes } from './wordFilter.js';
19
20
  import 'sequelize-typescript';
@@ -60,7 +60,8 @@ __export(tables_exports, {
60
60
  userCenterV: () => userCenterV,
61
61
  userRoleV: () => userRoleV,
62
62
  users: () => users,
63
- usersVerify: () => usersVerify
63
+ usersVerify: () => usersVerify,
64
+ wordFilter: () => wordFilter
64
65
  });
65
66
  module.exports = __toCommonJS(tables_exports);
66
67
 
@@ -3456,6 +3457,64 @@ userRoleV = __decorateClass([
3456
3457
  comment: "VIEW"
3457
3458
  })
3458
3459
  ], userRoleV);
3460
+
3461
+ // src/databases/tables/wordFilter.ts
3462
+ var import_sequelize_typescript34 = require("sequelize-typescript");
3463
+ var wordFilter = class extends import_sequelize_typescript34.Model {
3464
+ };
3465
+ __decorateClass([
3466
+ (0, import_sequelize_typescript34.Column)({
3467
+ primaryKey: true,
3468
+ autoIncrement: true,
3469
+ type: import_sequelize_typescript34.DataType.INTEGER
3470
+ })
3471
+ ], wordFilter.prototype, "id", 2);
3472
+ __decorateClass([
3473
+ (0, import_sequelize_typescript34.Column)({
3474
+ allowNull: true,
3475
+ type: import_sequelize_typescript34.DataType.STRING(255)
3476
+ })
3477
+ ], wordFilter.prototype, "word", 2);
3478
+ __decorateClass([
3479
+ (0, import_sequelize_typescript34.Column)({
3480
+ allowNull: true,
3481
+ type: import_sequelize_typescript34.DataType.INTEGER
3482
+ })
3483
+ ], wordFilter.prototype, "status", 2);
3484
+ __decorateClass([
3485
+ (0, import_sequelize_typescript34.Column)({
3486
+ field: "created_by",
3487
+ allowNull: true,
3488
+ type: import_sequelize_typescript34.DataType.STRING(60)
3489
+ })
3490
+ ], wordFilter.prototype, "createdBy", 2);
3491
+ __decorateClass([
3492
+ (0, import_sequelize_typescript34.Column)({
3493
+ field: "created_date",
3494
+ allowNull: true,
3495
+ type: import_sequelize_typescript34.DataType.DATE
3496
+ })
3497
+ ], wordFilter.prototype, "createdDate", 2);
3498
+ __decorateClass([
3499
+ (0, import_sequelize_typescript34.Column)({
3500
+ field: "updated_by",
3501
+ allowNull: true,
3502
+ type: import_sequelize_typescript34.DataType.STRING(60)
3503
+ })
3504
+ ], wordFilter.prototype, "updatedBy", 2);
3505
+ __decorateClass([
3506
+ (0, import_sequelize_typescript34.Column)({
3507
+ field: "updated_date",
3508
+ allowNull: true,
3509
+ type: import_sequelize_typescript34.DataType.DATE
3510
+ })
3511
+ ], wordFilter.prototype, "updatedDate", 2);
3512
+ wordFilter = __decorateClass([
3513
+ (0, import_sequelize_typescript34.Table)({
3514
+ tableName: "word_filter",
3515
+ timestamps: false
3516
+ })
3517
+ ], wordFilter);
3459
3518
  // Annotate the CommonJS export names for ESM import in node:
3460
3519
  0 && (module.exports = {
3461
3520
  authAssignment,
@@ -3490,5 +3549,6 @@ userRoleV = __decorateClass([
3490
3549
  userCenterV,
3491
3550
  userRoleV,
3492
3551
  users,
3493
- usersVerify
3552
+ usersVerify,
3553
+ wordFilter
3494
3554
  });
@@ -0,0 +1,22 @@
1
+ import { Model } from 'sequelize-typescript';
2
+
3
+ interface wordFilterAttributes {
4
+ id?: number;
5
+ word?: string;
6
+ status?: number;
7
+ createdBy?: string;
8
+ createdDate?: Date;
9
+ updatedBy?: string;
10
+ updatedDate?: Date;
11
+ }
12
+ declare class wordFilter extends Model<wordFilterAttributes, wordFilterAttributes> implements wordFilterAttributes {
13
+ id?: number;
14
+ word?: string;
15
+ status?: number;
16
+ createdBy?: string;
17
+ createdDate?: Date;
18
+ updatedBy?: string;
19
+ updatedDate?: Date;
20
+ }
21
+
22
+ export { wordFilter, type wordFilterAttributes };
@@ -0,0 +1,93 @@
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/wordFilter.ts
29
+ var wordFilter_exports = {};
30
+ __export(wordFilter_exports, {
31
+ wordFilter: () => wordFilter
32
+ });
33
+ module.exports = __toCommonJS(wordFilter_exports);
34
+ var import_sequelize_typescript = require("sequelize-typescript");
35
+ var wordFilter = 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
+ ], wordFilter.prototype, "id", 2);
44
+ __decorateClass([
45
+ (0, import_sequelize_typescript.Column)({
46
+ allowNull: true,
47
+ type: import_sequelize_typescript.DataType.STRING(255)
48
+ })
49
+ ], wordFilter.prototype, "word", 2);
50
+ __decorateClass([
51
+ (0, import_sequelize_typescript.Column)({
52
+ allowNull: true,
53
+ type: import_sequelize_typescript.DataType.INTEGER
54
+ })
55
+ ], wordFilter.prototype, "status", 2);
56
+ __decorateClass([
57
+ (0, import_sequelize_typescript.Column)({
58
+ field: "created_by",
59
+ allowNull: true,
60
+ type: import_sequelize_typescript.DataType.STRING(60)
61
+ })
62
+ ], wordFilter.prototype, "createdBy", 2);
63
+ __decorateClass([
64
+ (0, import_sequelize_typescript.Column)({
65
+ field: "created_date",
66
+ allowNull: true,
67
+ type: import_sequelize_typescript.DataType.DATE
68
+ })
69
+ ], wordFilter.prototype, "createdDate", 2);
70
+ __decorateClass([
71
+ (0, import_sequelize_typescript.Column)({
72
+ field: "updated_by",
73
+ allowNull: true,
74
+ type: import_sequelize_typescript.DataType.STRING(60)
75
+ })
76
+ ], wordFilter.prototype, "updatedBy", 2);
77
+ __decorateClass([
78
+ (0, import_sequelize_typescript.Column)({
79
+ field: "updated_date",
80
+ allowNull: true,
81
+ type: import_sequelize_typescript.DataType.DATE
82
+ })
83
+ ], wordFilter.prototype, "updatedDate", 2);
84
+ wordFilter = __decorateClass([
85
+ (0, import_sequelize_typescript.Table)({
86
+ tableName: "word_filter",
87
+ timestamps: false
88
+ })
89
+ ], wordFilter);
90
+ // Annotate the CommonJS export names for ESM import in node:
91
+ 0 && (module.exports = {
92
+ wordFilter
93
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@admc-go-th/admc-library",
3
- "version": "1.0.55",
3
+ "version": "1.0.56",
4
4
  "description": "",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",