add TTN Gateway based location to DB model

This commit is contained in:
2024-12-31 14:00:32 +01:00
parent 393eab2b45
commit c27763fc11
2 changed files with 12 additions and 0 deletions

View File

@ -8,6 +8,8 @@ export class Location extends Model {
public wifi_longitude!: number;
public gnss_latitude!: number;
public gnss_longitude!: number;
public ttn_gw_latitude!: number;
public ttn_gw_longitude!: number;
public created_at_utc!: Date;
public updated_at_utc!: Date;
}
@ -40,6 +42,14 @@ Location.init(
type: DataTypes.NUMBER,
allowNull: true,
},
ttn_gw_latitude: {
type: DataTypes.NUMBER,
allowNull: true,
},
ttn_gw__longitude: {
type: DataTypes.NUMBER,
allowNull: true,
},
created_at_utc: {
type: DataTypes.DATE,
defaultValue: DataTypes.NOW,