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.
		
		
		
		
		
			
		
			
				
					
					
						
							27 lines
						
					
					
						
							605 B
						
					
					
				
			
		
		
	
	
							27 lines
						
					
					
						
							605 B
						
					
					
				| # frozen_string_literal: true
 | |
| 
 | |
| # == Schema Information
 | |
| #
 | |
| # Table name: template_accesses
 | |
| #
 | |
| #  id          :bigint           not null, primary key
 | |
| #  created_at  :datetime         not null
 | |
| #  updated_at  :datetime         not null
 | |
| #  template_id :integer          not null
 | |
| #  user_id     :integer          not null
 | |
| #
 | |
| # Indexes
 | |
| #
 | |
| #  index_template_accesses_on_template_id_and_user_id  (template_id,user_id) UNIQUE
 | |
| #
 | |
| # Foreign Keys
 | |
| #
 | |
| #  fk_rails_...  (template_id => templates.id)
 | |
| #
 | |
| class TemplateAccess < ApplicationRecord
 | |
|   ADMIN_USER_ID = -1
 | |
| 
 | |
|   belongs_to :template
 | |
|   belongs_to :user, optional: true
 | |
| end
 |