Files
parse/app/models/client.rb
Stefan Tollkühn 3735122750 initial commit
2025-07-21 12:14:42 +02:00

8 lines
387 B
Ruby

class Client < ApplicationRecord
has_many :client_subprojects, class_name: 'Subproject', foreign_key: 'client_id'
has_many :owner_subprojects, class_name: 'Subproject', foreign_key: 'owner_id'
has_many :builder_subprojects, class_name: 'Subproject', foreign_key: 'builder_id'
validates :company_name, :firstname, :lastname, presence: true
# Add other validations as needed
end