remove provider_rates table

this was added five years ago but never used. if we want to bring back
variable rates per client we might as well get a fresh start since a lot
has changed since then.
This commit is contained in:
Leo Hemsted
2022-05-03 14:42:59 +01:00
parent 43206b1656
commit 51646af92e
7 changed files with 32 additions and 60 deletions

View File

@@ -1,11 +0,0 @@
from app import db
from app.dao.dao_utils import autocommit
from app.models import ProviderDetails, ProviderRates
@autocommit
def create_provider_rates(provider_identifier, valid_from, rate):
provider = ProviderDetails.query.filter_by(identifier=provider_identifier).one()
provider_rates = ProviderRates(provider_id=provider.id, valid_from=valid_from, rate=rate)
db.session.add(provider_rates)