Files
docuseal/app/models/user_config.rb
T
2024-02-14 22:13:07 +02:00

31 lines
712 B
Ruby

# frozen_string_literal: true
# == Schema Information
#
# Table name: user_configs
#
# id :bigint not null, primary key
# key :string not null
# value :text not null
# created_at :datetime not null
# updated_at :datetime not null
# user_id :bigint not null
#
# Indexes
#
# index_user_configs_on_user_id (user_id)
# index_user_configs_on_user_id_and_key (user_id,key) UNIQUE
#
# Foreign Keys
#
# fk_rails_... (user_id => users.id)
#
class UserConfig < ApplicationRecord
SIGNATURE_KEY = 'signature'
RECEIVE_COMPLETED_EMAIL = 'receive_completed_email'
belongs_to :user
serialize :value, coder: JSON
end