add timestamps in DB model
This commit is contained in:
parent
a745aaf9d0
commit
452589d11d
@ -42,6 +42,9 @@ Location.init(
|
|||||||
ttn_gw_longitude: {
|
ttn_gw_longitude: {
|
||||||
type: DataTypes.NUMBER,
|
type: DataTypes.NUMBER,
|
||||||
},
|
},
|
||||||
|
gnss_location_at_utc: {
|
||||||
|
type: DataTypes.DATE,
|
||||||
|
},
|
||||||
created_at_utc: {
|
created_at_utc: {
|
||||||
type: DataTypes.DATE,
|
type: DataTypes.DATE,
|
||||||
defaultValue: DataTypes.NOW,
|
defaultValue: DataTypes.NOW,
|
||||||
|
@ -30,6 +30,9 @@ WifiScan.init(
|
|||||||
type: DataTypes.NUMBER,
|
type: DataTypes.NUMBER,
|
||||||
allowNull: false,
|
allowNull: false,
|
||||||
},
|
},
|
||||||
|
scanned_at_utc: {
|
||||||
|
type: DataTypes.DATE,
|
||||||
|
},
|
||||||
created_at_utc: {
|
created_at_utc: {
|
||||||
type: DataTypes.DATE,
|
type: DataTypes.DATE,
|
||||||
defaultValue: DataTypes.NOW,
|
defaultValue: DataTypes.NOW,
|
||||||
|
Loading…
Reference in New Issue
Block a user