initial commit

This commit is contained in:
Stefan Tollkühn
2025-07-21 12:14:42 +02:00
parent a77fc87832
commit 3735122750
156 changed files with 3862 additions and 1 deletions

8
app/models/client.rb Normal file
View File

@@ -0,0 +1,8 @@
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