Added free_sms_fragment_limit model, schema, dao and Rest

This commit is contained in:
venusbb
2017-10-24 13:23:24 +01:00
parent b0872d9466
commit 59dd343254
7 changed files with 286 additions and 8 deletions

View File

@@ -0,0 +1,14 @@
from app.schema_validation.definitions import uuid, https_url
create_or_update_free_sms_fragment_limit_schema = {
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "POST annual billing schema",
"type": "object",
"title": "Create",
"properties": {
"free_sms_fragment_limit": {"type": "integer", "minimum": 1},
"financial_year_start": {"type": "integer", "minimum": 1}
},
"required": ["free_sms_fragment_limit", "financial_year_start"]
}