chore: planning for project management

!21 #14
This commit is contained in:
2024-06-12 12:08:03 +09:30
parent c570fb114f
commit fe1a9d07f7
3 changed files with 106 additions and 1 deletions

View File

@ -1 +0,0 @@
from django.db import models

View File

@ -0,0 +1,59 @@
from django.db import models
from .projects import ProjectModel
from access.models import TenancyObject
class ProjectTaskModel(model.Model, TenancyObject):
class Meta:
ordering = [
'code',
'name',
]
verbose_name = 'Project Task'
verbose_name_plural = 'Project Tasks'
class ProjectTaskStates(enum):
OPEN = 1
CLOSED = 1
project
parent_task
name
description
priority
state
percent_done
task_type
code
planned_start_date
planned_finish_date
real_start_date
milestone = models.BooleanField(
blank = False,
default = False,
)

View File

@ -0,0 +1,47 @@
from django.db import models
from access.models import TenancyObject
class ProjectModel(TenancyObject):
class Meta:
ordering = [
'code',
'name',
]
verbose_name = 'Project'
verbose_name_plural = 'Projects'
class ProjectStates(enum):
OPEN = 1
CLOSED = 1
name
description
priority
state
percent_done # Auto-Calculate
project_type
code
planned_start_date
planned_finish_date
real_start_date