mirror of https://github.com/docusealco/docuseal
				
				
				
			
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							33 lines
						
					
					
						
							792 B
						
					
					
				
			
		
		
	
	
							33 lines
						
					
					
						
							792 B
						
					
					
				| # 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'
 | |
|   INITIALS_KEY = 'initials'
 | |
|   RECEIVE_COMPLETED_EMAIL = 'receive_completed_email'
 | |
|   RECEIVE_DECLINED_EMAIL = 'receive_declined_email'
 | |
| 
 | |
|   belongs_to :user
 | |
| 
 | |
|   serialize :value, coder: JSON
 | |
| end
 |