Django backend for WorkX project
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

15 lines
487 B

  1. from django.db import models
  2. from client.models import Client
  3. class Project(models.Model):
  4. name = models.CharField(max_length=30)
  5. project_image = models.ImageField(upload_to='project_images', null=True, blank=True)
  6. client = models.ForeignKey(Client, on_delete=models.CASCADE)
  7. total_compensation = models.DecimalField(max_digits=15, decimal_places=2)
  8. start_date = models.DateField()
  9. end_date = models.DateField()
  10. def __str__(self):
  11. return self.name