@ccci/micro-server 0.0.31 → 0.0.32

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 (2) hide show
  1. package/dist/index.js +10 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -88260,6 +88260,16 @@ class BaseModel extends Model {
88260
88260
  }
88261
88261
  static getCommonAssociations() {
88262
88262
  }
88263
+ static initialize(fields, name) {
88264
+ this.init({
88265
+ ...fields,
88266
+ ...this.getCommonAttributes()
88267
+ }, {
88268
+ sequelize: DatabaseConnector.getConnection(),
88269
+ tableName: name,
88270
+ paranoid: true
88271
+ });
88272
+ }
88263
88273
  }
88264
88274
  // src/decorators/Endpoints.ts
88265
88275
  var endpoint = (target, methodName, descriptor) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ccci/micro-server",
3
- "version": "0.0.31",
3
+ "version": "0.0.32",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",