from django.db import models

from django.contrib.auth.models import User

# Create your models here.
class TicketStatus(models.TextChoices):
	TO_DO = 'To Do'
	IN_PROGRESS = 'In Progress'
	IN_REVIEW = 'In Review'
	DONE = 'Done'


class Ticket(models.Model):
	title = models.CharField(max_length=100)
	assignee = models.ForeignKey(User, null=True, blank = True, on_delete=models.CASCADE)
	status = models.CharField(max_length=25, choices=TicketStatus.choices, default=TicketStatus.TO_DO)
	description = models.TextField()
	created_at = models.DateTimeField('created at', auto_now_add=True)
	updated_at = models.DateTimeField('updated at', auto_now=True)
9db1dabb5a2cd0340099118e33f834dab60295e2
<mask token>


class Ticket(models.Model):
    title = models.CharField(max_length=100)
    assignee = models.ForeignKey(User, null=True, blank=True, on_delete=
        models.CASCADE)
    status = models.CharField(max_length=25, choices=TicketStatus.choices,
        default=TicketStatus.TO_DO)
    description = models.TextField()
    created_at = models.DateTimeField('created at', auto_now_add=True)
    updated_at = models.DateTimeField('updated at', auto_now=True)

<mask token>


class TicketStatus(models.TextChoices):
    <mask token>
    <mask token>
    <mask token>
    <mask token>


class Ticket(models.Model):
    title = models.CharField(max_length=100)
    assignee = models.ForeignKey(User, null=True, blank=True, on_delete=
        models.CASCADE)
    status = models.CharField(max_length=25, choices=TicketStatus.choices,
        default=TicketStatus.TO_DO)
    description = models.TextField()
    created_at = models.DateTimeField('created at', auto_now_add=True)
    updated_at = models.DateTimeField('updated at', auto_now=True)

<mask token>


class TicketStatus(models.TextChoices):
    TO_DO = 'To Do'
    IN_PROGRESS = 'In Progress'
    IN_REVIEW = 'In Review'
    DONE = 'Done'


class Ticket(models.Model):
    title = models.CharField(max_length=100)
    assignee = models.ForeignKey(User, null=True, blank=True, on_delete=
        models.CASCADE)
    status = models.CharField(max_length=25, choices=TicketStatus.choices,
        default=TicketStatus.TO_DO)
    description = models.TextField()
    created_at = models.DateTimeField('created at', auto_now_add=True)
    updated_at = models.DateTimeField('updated at', auto_now=True)

from django.db import models
from django.contrib.auth.models import User


class TicketStatus(models.TextChoices):
    TO_DO = 'To Do'
    IN_PROGRESS = 'In Progress'
    IN_REVIEW = 'In Review'
    DONE = 'Done'


class Ticket(models.Model):
    title = models.CharField(max_length=100)
    assignee = models.ForeignKey(User, null=True, blank=True, on_delete=
        models.CASCADE)
    status = models.CharField(max_length=25, choices=TicketStatus.choices,
        default=TicketStatus.TO_DO)
    description = models.TextField()
    created_at = models.DateTimeField('created at', auto_now_add=True)
    updated_at = models.DateTimeField('updated at', auto_now=True)

from django.db import models

from django.contrib.auth.models import User

# Create your models here.
class TicketStatus(models.TextChoices):
	TO_DO = 'To Do'
	IN_PROGRESS = 'In Progress'
	IN_REVIEW = 'In Review'
	DONE = 'Done'


class Ticket(models.Model):
	title = models.CharField(max_length=100)
	assignee = models.ForeignKey(User, null=True, blank = True, on_delete=models.CASCADE)
	status = models.CharField(max_length=25, choices=TicketStatus.choices, default=TicketStatus.TO_DO)
	description = models.TextField()
	created_at = models.DateTimeField('created at', auto_now_add=True)
	updated_at = models.DateTimeField('updated at', auto_now=True)