feat: db tables and repo and service written

This commit is contained in:
2025-01-06 14:05:03 +01:00
parent 62847f569d
commit c2e0fe94a4
9 changed files with 278 additions and 29 deletions

View File

@ -6,8 +6,6 @@ export class WifiScan extends Model {
public wifi_scan_id!: string;
public mac!: string;
public rssi!: number;
public latitude!: number;
public longitude!: number;
public created_at_utc!: Date;
public updated_at_utc!: Date;
}
@ -32,14 +30,6 @@ WifiScan.init(
type: DataTypes.NUMBER,
allowNull: false,
},
latitude: {
type: DataTypes.NUMBER,
allowNull: false,
},
longitude: {
type: DataTypes.NUMBER,
allowNull: false,
},
created_at_utc: {
type: DataTypes.DATE,
defaultValue: DataTypes.NOW,