adds target-exchange and initial migrations

This commit is contained in:
Gardient
2021-09-19 23:55:36 +03:00
parent cc44c4056e
commit 472f682c58
11 changed files with 273 additions and 3 deletions

View File

@@ -0,0 +1,10 @@
from api.database import (Model, SurrogatePK, db,
Column, reference_col, relationship)
class TargetExchange(SurrogatePK, Model):
__tablename__ = "target-exchange"
name = Column(db.String(255), unique=True, nullable=False)
def __init__(self, name, **kwargs) -> None:
Model.__init__(self, name=name, **kwargs)