feat: ✨ implemented pwa capabillities and refactored lots of backend things
This commit is contained in:
27
class/model/geoObjects.py
Normal file
27
class/model/geoObjects.py
Normal file
@ -0,0 +1,27 @@
|
||||
from sqlalchemy.ext.declarative import declarative_base
|
||||
from sqlalchemy.pool import NullPool
|
||||
|
||||
Base = declarative_base()
|
||||
|
||||
def getBase():
|
||||
# i dont know if i ever need this but if i might here it is
|
||||
return Base
|
||||
|
||||
def createTables(engine):
|
||||
Base.metadata.create_all(engine)
|
||||
|
||||
class Track(Base):
|
||||
__tablename__ = 'track'
|
||||
pass
|
||||
|
||||
class Coordinate(Base):
|
||||
__tablename__ = 'coordinate'
|
||||
pass
|
||||
|
||||
class Driver(Base):
|
||||
__tablename__ = 'driver'
|
||||
pass
|
||||
|
||||
class Vehicle(Base):
|
||||
__tablename__ = 'vehicle'
|
||||
pass
|
Reference in New Issue
Block a user