Add base.py, command_line.py and five other files
This commit is contained in:
13
models/sector.py
Normal file
13
models/sector.py
Normal 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
15
models/setting.py
Normal 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
13
models/system.py
Normal 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
13
models/waypoint.py
Normal 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
|
||||
Reference in New Issue
Block a user