@ccci/micro-server 1.0.207 → 1.0.208
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 +6 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -301660,7 +301660,8 @@ class BaseModel extends Model {
|
|
|
301660
301660
|
tableName: "",
|
|
301661
301661
|
schema: process.env.DB_SCHEMA,
|
|
301662
301662
|
paranoid,
|
|
301663
|
-
comment: ""
|
|
301663
|
+
comment: "",
|
|
301664
|
+
timestamps: true
|
|
301664
301665
|
};
|
|
301665
301666
|
if (typeof tableOption === "string") {
|
|
301666
301667
|
initOptions = {
|
|
@@ -301668,7 +301669,8 @@ class BaseModel extends Model {
|
|
|
301668
301669
|
tableName: tableOption,
|
|
301669
301670
|
schema: schema || process.env.DB_SCHEMA,
|
|
301670
301671
|
paranoid,
|
|
301671
|
-
comment: tableOption
|
|
301672
|
+
comment: tableOption,
|
|
301673
|
+
timestamps: true
|
|
301672
301674
|
};
|
|
301673
301675
|
} else {
|
|
301674
301676
|
initOptions = {
|
|
@@ -301676,7 +301678,8 @@ class BaseModel extends Model {
|
|
|
301676
301678
|
tableName: tableOption.tableName,
|
|
301677
301679
|
schema: tableOption.schema || process.env.DB_SCHEMA,
|
|
301678
301680
|
paranoid: tableOption.paranoid === undefined ? paranoid : tableOption.paranoid,
|
|
301679
|
-
comment: tableOption.comment ? tableOption.comment : tableOption.tableName
|
|
301681
|
+
comment: tableOption.comment ? tableOption.comment : tableOption.tableName,
|
|
301682
|
+
timestamps: true
|
|
301680
301683
|
};
|
|
301681
301684
|
}
|
|
301682
301685
|
this.init({
|