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