Class: Quota
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Quota
- Defined in:
- api/app/models/quota.rb
Overview
A bucket of subjects that can be parented in a hierarchical structure
Root quotas do not have a parent_id
, demographic_id
, and their minimum
is always exactly their maximum
.
All other quotas must have a parent_id
.
Schema
- [Integer]
recruiting_campaign_id
, null: false - [Integer]
minimum
, null: false - [Integer]
maximum
, null: false - [Integer]
parent_id
- [Integer]
demographic_id
- [Decimal]
incidence_estimate
- [DateTime]
created_at
- [DateTime]
updated_at