
from django.db import models
from Subscriber.models import User
# Create your models here.
class Django_cms(models.Model):
    content=models.TextField()
    title=models.CharField(max_length=255,blank=True,null=True)
    createdBy = models.ForeignKey(User,related_name="blogcontent",on_delete=models.CASCADE)
    modified_By = models.ForeignKey(User, related_name='blogmc',on_delete=models.CASCADE)
    createdDate = models.DateTimeField(auto_now_add=True)
    modifiedDate = models.DateTimeField(auto_now=True)


class Science_applied(models.Model):
    link=models.CharField(max_length=255,blank=True,null=True)
    science_title=models.CharField(max_length=255,blank=True,null=True)
    status=models.BooleanField(default=False)
    createdBy = models.ForeignKey(User,related_name="scicontent",on_delete=models.CASCADE)
    modified_By = models.ForeignKey(User, related_name='scimc',on_delete=models.CASCADE)
    createdDate = models.DateTimeField(auto_now_add=True)
    modifiedDate = models.DateTimeField(auto_now=True)


