Add base.py, command_line.py and five other files

This commit is contained in:
Richard Bronkhorst
2023-06-07 21:48:28 +02:00
parent 5153a3fcdd
commit 20e63d2d0f
7 changed files with 151 additions and 0 deletions

13
models/sector.py Normal file
View File

@@ -0,0 +1,13 @@
from sqlalchemy import Column, String, Integer, Date
from base import Base
class Sector(Base):
__tablename__ = 'sectors'
id = Column(Integer, primary_key=True)
symbol = Column(String)
magic = Column(Integer)
def __init__(self, symbol):
self.symbol = symbol

15
models/setting.py Normal file
View File

@@ -0,0 +1,15 @@
from sqlalchemy import Column, String, Integer, Date
from base import Base
class Setting(Base):
__tablename__ = 'settings'
id = Column(Integer, primary_key=True)
name = Column(String)
value = Column(String)
def __init__(self, name, value):
self.name = name
self.value = value

13
models/system.py Normal file
View File

@@ -0,0 +1,13 @@
from sqlalchemy import Column, String, Integer, Date
from base import Base
class System(Base):
__tablename__ = 'systems'
id = Column(Integer, primary_key=True)
symbol = Column(String)
def __init__(self, symbol):
self.symbol = symbol

13
models/waypoint.py Normal file
View File

@@ -0,0 +1,13 @@
from sqlalchemy import Column, String, Integer, Date
from base import Base
class Waypoint(Base):
__tablename__ = 'waypoints'
id = Column(Integer, primary_key=True)
symbol = Column(String)
def __init__(self, symbol):
self.symbol = symbol