add assessement endpoint

This commit is contained in:
2023-09-21 14:00:00 -03:00
parent 0e21b13035
commit 1edd26bf1b
7 changed files with 124 additions and 8 deletions

23
app/models/assessment.rb Normal file
View File

@@ -0,0 +1,23 @@
# == Schema Information
#
# Table name: assessments
#
# id :bigint not null, primary key
# observations :text
# params :jsonb
# title :string
# created_at :datetime not null
# updated_at :datetime not null
# user_id :bigint not null
#
# Indexes
#
# index_assessments_on_user_id (user_id)
#
# Foreign Keys
#
# fk_rails_... (user_id => users.id)
#
class Assessment < ApplicationRecord
belongs_to :user
end