@ccci/micro-server 1.0.87 → 1.0.88
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.
- package/dist/index.js +3 -2
- package/dist/utils/BaseModel.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -119681,13 +119681,14 @@ class BaseModel extends Model {
|
|
|
119681
119681
|
}
|
|
119682
119682
|
static getCommonAssociations() {
|
|
119683
119683
|
}
|
|
119684
|
-
static initialize(fields,
|
|
119684
|
+
static initialize(fields, tableName, schema) {
|
|
119685
119685
|
this.init({
|
|
119686
119686
|
...fields,
|
|
119687
119687
|
...this.getCommonAttributes()
|
|
119688
119688
|
}, {
|
|
119689
119689
|
sequelize: DatabaseConnector.getConnection(),
|
|
119690
|
-
tableName
|
|
119690
|
+
tableName,
|
|
119691
|
+
schema: schema || process.env.DB_SCHEMA,
|
|
119691
119692
|
paranoid: true
|
|
119692
119693
|
});
|
|
119693
119694
|
}
|
|
@@ -22,6 +22,6 @@ export default class BaseModel extends Model implements IBaseModel {
|
|
|
22
22
|
};
|
|
23
23
|
};
|
|
24
24
|
static getCommonAssociations(): void;
|
|
25
|
-
static initialize(fields: ModelAttributes,
|
|
25
|
+
static initialize(fields: ModelAttributes, tableName: string, schema?: string): void;
|
|
26
26
|
}
|
|
27
27
|
//# sourceMappingURL=BaseModel.d.ts.map
|