from django.db import models


# Create your models here.
class WorkingEmployee(models.Model):
    cdate = models.CharField(max_length=10, primary_key=True)
    rdate = models.DateField()
    vacation = models.IntegerField()
    biztravel = models.IntegerField()


class AbsentEmployee(models.Model):
    cdate = models.CharField(max_length=10)
    employee_number = models.CharField(max_length=6)
    employee_name = models.CharField(max_length=24)

    class Meta:
        unique_together = (("cdate", "employee_number"),)


class InterestingWorker(models.Model):
    employee_number = models.CharField(max_length=6)
    interesting_emp_no = models.CharField(max_length=6)

