mirror of
https://github.com/rjNemo/copro-api
synced 2026-06-06 10:26:44 +00:00
18 lines
525 B
Python
18 lines
525 B
Python
from django.db import models
|
|
|
|
|
|
class CondominiumExpense(models.Model):
|
|
mean = models.FloatField()
|
|
first_quantile = models.FloatField()
|
|
ninth_quantile = models.FloatField()
|
|
|
|
|
|
class CondominiumExpenseQuery(models.Model):
|
|
QUERY_TYPES = [
|
|
('DEPT_CODE', 'Department'),
|
|
('ZIP_CODE', 'Postal Code'),
|
|
('CITY', 'City'),
|
|
]
|
|
query_type = models.CharField(
|
|
max_length=20, choices=QUERY_TYPES, default='DEPT_CODE')
|
|
value = models.CharField(max_length=40, blank=True, default="")
|