add models for Project, Task, Note, Category

This commit is contained in:
2025-06-11 19:56:30 +02:00
parent 2a458f74d6
commit 9906b291f1
29 changed files with 345 additions and 1 deletions

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

@@ -0,0 +1,8 @@
class Project < ApplicationRecord
belongs_to :user
belongs_to :project_category
has_many :contacts, through: :user
has_many :tasks
has_many :notes
enum business_type: { type1: 0, type2: 1 }
end