p00001/task_card/models.py
2024-09-07 07:47:37 -04:00

26 lines
759 B
Python

from django.db import models
class Task_Id(models.Model):
taskId = models.AutoField(primary_key=True, unique=True)
class Task_Name(models.Model):
name = models.CharField(max_length=100)
class Task_Start_Date(models.Model):
taskStartDate = models.DateField(auto_now=False, auto_now_add=False, attributes)
class Task_End_Date(models.Model):
taskStartDate = models.DateField(auto_now=False, auto_now_add=False, attributes)
class Task_Status(models.Model):
CHOICES = [
('choice1', 'initiated'),
('choice2', 'started'),
('choice3', 'stalled'),
('choice4', 'parked'),
('choice5', 'abandonned'),
('choice6', 'completed'),
]
selected_word = models.CharField(max_length=50, choices=CHOICES)