14 lines
275 B
Python
14 lines
275 B
Python
|
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
|