diff --git a/admin/app/models/cohort.rb b/admin/app/models/cohort.rb new file mode 100644 index 000000000..86966cdea --- /dev/null +++ b/admin/app/models/cohort.rb @@ -0,0 +1,4 @@ +class Cohort < ActiveRecord::Base + +end + diff --git a/db/up/cohorts.sql b/db/up/cohorts.sql new file mode 100644 index 000000000..a9598189d --- /dev/null +++ b/db/up/cohorts.sql @@ -0,0 +1,9 @@ +CREATE TABLE cohorts { + id VARCHAR(64) PRIMARY KEY DEFAULT uuid_generate_v4(), + + start_date TIMESTAMP NOT NULL, + end_date TIMESTAMP NOT NULL, + group_type VARCHAR(64) NOT NULL, + + created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, +};