Spaces:
Sleeping
Sleeping
File size: 355 Bytes
8bc50ed |
1 2 3 4 5 6 7 8 9 10 11 |
from flask_sqlalchemy import SQLAlchemy
db = SQLAlchemy()
class WifiSignal(db.Model):
id = db.Column(db.Integer, primary_key=True)
latitude = db.Column(db.Float, nullable=False)
longitude = db.Column(db.Float, nullable=False)
timestamp = db.Column(db.DateTime, nullable=False)
signal_strength = db.Column(db.Integer, nullable=False)
|