diff options
| -rw-r--r-- | python/Dawn/models.py | 11 | ||||
| -rw-r--r-- | sql/dawn.sql | 4 |
2 files changed, 0 insertions, 15 deletions
diff --git a/python/Dawn/models.py b/python/Dawn/models.py index 8ec88c09..b9eca2e6 100644 --- a/python/Dawn/models.py +++ b/python/Dawn/models.py @@ -624,19 +624,8 @@ class CapFloorDeal(db.Model): swap_type = db.Column(CAPFLOOR_TYPE, nullable=False) reset_lag = db.Column(db.Integer, default=2) trade_confirm = db.Column(db.String, info={"form_field_class": FileField}) - termination_date = db.Column(db.Date) - termination_fee = db.Column(db.Float) - termination_amount = db.Column(db.Float) - termination_cp = db.Column( - db.String(12), - db.ForeignKey("counterparties.code"), - info={"choices": [(None, "")], "label": "termination counterparty"}, - ) cpty_id = db.Column(db.Text) counterparty = db.relationship(Counterparties, foreign_keys=[cp_code]) - termination_counterparty = db.relationship( - Counterparties, foreign_keys=[termination_cp] - ) class Termination(db.Model): diff --git a/sql/dawn.sql b/sql/dawn.sql index ced47c7e..094148fb 100644 --- a/sql/dawn.sql +++ b/sql/dawn.sql @@ -271,10 +271,6 @@ CREATE TABLE capfloors ( swap_type capfloor_type NOT NULL, reset_lag int4, trade_confirm varchar, - termination_date date, - termination_fee float8, - termination_amount float8, - termination_cp varchar(12) REFERENCES counterparties(code) ON UPDATE CASCADE, cpty_id text, globeop_id text ) |
