Skip to content

Instantly share code, notes, and snippets.

@zehpatricio
Created March 30, 2022 18:53
Show Gist options
  • Save zehpatricio/627fb7cf8f103380e56788136b0d6ce8 to your computer and use it in GitHub Desktop.
Save zehpatricio/627fb7cf8f103380e56788136b0d6ce8 to your computer and use it in GitHub Desktop.
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