Some checks failed
		
		
	
	Run unit tests / rubocop (pull_request) Successful in 48s
				
			Run unit tests / check-licenses (pull_request) Successful in 55s
				
			Run unit tests / copyright_notice (pull_request) Successful in 1m16s
				
			Run unit tests / unit_tests (pull_request) Failing after 3m39s
				
			Run unit tests / build-static-assets (pull_request) Has been skipped
				
			
		
			
				
	
	
		
			34 lines
		
	
	
		
			1012 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
		
			1012 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
# Copyright (C) 2024-2025 LibreWeddingPlanner contributors
 | 
						|
 | 
						|
# frozen_string_literal: true
 | 
						|
 | 
						|
# == Schema Information
 | 
						|
#
 | 
						|
# Table name: seats
 | 
						|
#
 | 
						|
#  id                    :uuid             not null, primary key
 | 
						|
#  table_number          :integer
 | 
						|
#  created_at            :datetime         not null
 | 
						|
#  updated_at            :datetime         not null
 | 
						|
#  guest_id              :uuid             not null
 | 
						|
#  tables_arrangement_id :uuid             not null
 | 
						|
#  wedding_id            :uuid             not null
 | 
						|
#
 | 
						|
# Indexes
 | 
						|
#
 | 
						|
#  index_seats_on_guest_id               (guest_id)
 | 
						|
#  index_seats_on_tables_arrangement_id  (tables_arrangement_id)
 | 
						|
#  index_seats_on_wedding_id             (wedding_id)
 | 
						|
#
 | 
						|
# Foreign Keys
 | 
						|
#
 | 
						|
#  fk_rails_...  (guest_id => guests.id)
 | 
						|
#  fk_rails_...  (tables_arrangement_id => tables_arrangements.id) ON DELETE => cascade
 | 
						|
#  fk_rails_...  (wedding_id => weddings.id) ON DELETE => cascade
 | 
						|
#
 | 
						|
class Seat < ApplicationRecord
 | 
						|
  acts_as_tenant :wedding
 | 
						|
  belongs_to :guest
 | 
						|
  belongs_to :table_arrangement
 | 
						|
end
 |