Created
March 30, 2022 18:53
-
-
Save zehpatricio/627fb7cf8f103380e56788136b0d6ce8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sqlalchemy import Column, Integer, Float, DateTime | |
from app.adapter.db import sql_db | |
class Location(sql_db.Base): | |
__tablename__ = 'locations' | |
id = Column(Integer, primary_key=True, index=True) | |
device_id = Column(Integer) | |
lat = Column(Float) | |
long = Column(Float) | |
date = Column(DateTime) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment