新增:反馈意见模型及接口

This commit is contained in:
2022-11-08 13:27:46 +08:00
parent 07aefa79eb
commit 3e5c1da2c5
6 changed files with 78 additions and 0 deletions

20
app/models/feedback.rb Normal file
View File

@@ -0,0 +1,20 @@
# == Schema Information
#
# Table name: feedbacks
#
# id :integer not null, primary key
# user_id :integer
# content :text(65535)
# created_at :datetime not null
# updated_at :datetime not null
#
# Indexes
#
# index_feedbacks_on_user_id (user_id)
#
class Feedback < ApplicationRecord
belongs_to :user
end