from djongo import models
from datetime import datetime
import django


# Create your models here.
class Emp(models.Model):
    emp_id = models.IntegerField(auto_created=True, unique=True,default=9999)
    name = models.CharField(max_length=100, default='none')
    email = models.EmailField(default='none')
    username = models.CharField(max_length=100, default='undefined')
    password = models.CharField(max_length=32, default='none')
    role = models.CharField(max_length=100, default='Employee')
    is_active = models.BooleanField(default=True)
    created_date = models.DateTimeField(default=django.utils.timezone.now)
    end_date = models.DateTimeField(default=datetime(2100, 8, 31, 1, 32, 9, 168460))

    def __str__(self):
        return self.name
