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


# Create your models here.
class Ourclient(models.Model):
    class Meta:
        db_table = 'our_client'

    name = models.CharField(max_length=225,blank=True, null=True)
    description = models.TextField(blank=True, null=True)
    image = models.FileField(blank=True, null=True, upload_to='static/images/client')
    caption = models.CharField(max_length=225, blank=True, null=True)
    position = models.IntegerField(blank=True, null=True)
    status = models.BooleanField(blank=True)
    created_by = models.ForeignKey(User, blank=True, null=True, on_delete=models.DO_NOTHING, db_column='created_by', related_name='%(class)s_created_by')
    created_datetime = models.DateTimeField(auto_now_add=True, blank=True, null=True)
    modified_by = models.ForeignKey(User, blank=True, null=True, on_delete=models.DO_NOTHING, db_column='modified_by', related_name='%(class)s_modified_by')
    modified_datetime = models.DateTimeField(auto_now=True, blank=True, null=True)
