@bmstravel/nvp-plop-templates 0.2.6 → 0.2.61
Sign up to get free protection for your applications and to get access to all the features.
@@ -77,12 +77,16 @@ const {{pascalCase name}}Model: ISequelizeModel<I{{pascalCase name}}> = {
|
|
77
77
|
createdAt: {
|
78
78
|
type: DataTypes.BIGINT,
|
79
79
|
allowNull: false,
|
80
|
-
defaultValue:
|
80
|
+
defaultValue: function () {
|
81
|
+
return dayjs().valueOf()
|
82
|
+
},
|
81
83
|
},
|
82
84
|
updatedAt: {
|
83
85
|
type: DataTypes.BIGINT,
|
84
86
|
allowNull: false,
|
85
|
-
defaultValue:
|
87
|
+
defaultValue: function () {
|
88
|
+
return dayjs().valueOf()
|
89
|
+
},
|
86
90
|
},
|
87
91
|
deletedAt: { type: DataTypes.BIGINT },
|
88
92
|
{{/if}}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@bmstravel/nvp-plop-templates",
|
3
|
-
"version": "0.2.
|
3
|
+
"version": "0.2.61",
|
4
4
|
"description": "🏆 Using for plop templates",
|
5
5
|
"license": "MIT",
|
6
6
|
"main": "lib/index.js",
|
@@ -15,5 +15,5 @@
|
|
15
15
|
"phongnv86 <phongnguyenvan86@gmail.com>",
|
16
16
|
"phongnv86 <phongnv@media-one.vn>"
|
17
17
|
],
|
18
|
-
"gitHead": "
|
18
|
+
"gitHead": "6acafa3c6719a21132e6aaf8705830092afc7052"
|
19
19
|
}
|