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

9
app/models/task.rb Normal file
View File

@@ -0,0 +1,9 @@
class Task < ApplicationRecord
belongs_to :creator, class_name: 'User'
belongs_to :reporter, class_name: 'User', optional: true
belongs_to :reportee, class_name: 'User', optional: true
belongs_to :project
enum priority: { low: 0, medium: 1, high: 2 }
enum status: { open: 0, in_progress: 1, closed: 2 }
enum type: { bug: 0, feature: 1, chore: 2 }
end