add wifilocation flags

This commit is contained in:
2025-01-06 21:47:13 +01:00
parent f6db27a225
commit df9c84e9df
10 changed files with 65 additions and 214 deletions

View File

@ -5,6 +5,8 @@ export class WifiLocation extends Model {
public mac!: string;
public latitude!: number;
public longitude!: number;
public request_limit_exceeded!: boolean;
public location_not_resolvable!: boolean;
public created_at_utc!: Date;
public updated_at_utc!: Date;
}
@ -18,11 +20,17 @@ WifiLocation.init(
},
latitude: {
type: DataTypes.NUMBER,
allowNull: false,
},
longitude: {
type: DataTypes.NUMBER,
allowNull: false,
},
request_limit_exceeded: {
type: DataTypes.BOOLEAN,
defaultValue: false,
},
location_not_resolvable: {
type: DataTypes.BOOLEAN,
defaultValue: false,
},
created_at_utc: {
type: DataTypes.DATE,