from django.db import models import uuid from django.contrib.auth import get_user_model # from centralisedFileSystem.models import BeatSheet # from subtitling3.models import Subtitles # from centralisedFileSystem.models import BeatSheet # from projectcenter.models import Generatedmodel from mnfapp.models import MNFScriptDatabase User = get_user_model() # Create your models here. class JuggernautPackage(models.Model): id = models.UUIDField(max_length=36, primary_key=True, default=uuid.uuid4, editable=False) user_id = models.ForeignKey(User, on_delete=models.CASCADE) package_name = models.CharField(max_length=20,null=True, blank=True) date = models.DateTimeField(auto_now_add=True) updated_at = models.DateTimeField(auto_now=True) validity_days = models.IntegerField(default=0, null=True, blank=True) price = models.IntegerField(default=0, null=True, blank=True) beat_scene_generation = models.IntegerField(default=0, null=True, blank=True) beat_scene_generation_initial = models.IntegerField(default=0, null=True, blank=True) audit_pages = models.IntegerField(default=0, null=True, blank=True) conversion_pages_initial = models.IntegerField(default=0, null=True, blank=True) conversion_pages = models.IntegerField(default=0, null=True, blank=True) subtitling_minutes_initial = models.IntegerField(default=0, null=True, blank=True) subtitling_minutes = models.IntegerField(default=0, null=True, blank=True) scheduling_and_budget_projects = models.IntegerField(default=0, null=True, blank=True) scheduling_and_budget_projects_initial = models.IntegerField(default=0, null=True, blank=True) pitchdeck_one_pager = models.IntegerField(default=0, null=True, blank=True) pitchdeck_elevator = models.IntegerField(default=0, null=True, blank=True) pitchdeck_screenplay = models.IntegerField(default=0, null=True, blank=True) narrarion_character_intro = models.IntegerField(default=0, null=True, blank=True) narrarion_line_by_line = models.IntegerField(default=0, null=True, blank=True) narrarion_characterwise = models.IntegerField(default=0, null=True, blank=True) conversion_iteration = models.IntegerField(default=0, null=True, blank=True) conversion_languages = models.IntegerField(default=0, null=True, blank=True) subtitling_iteration = models.IntegerField(default=0, null=True, blank=True) subtitling_languages = models.IntegerField(default=0, null=True, blank=True) language_alert = models.BooleanField(default=False, null=True, blank=True) class JuggernautConversionSet(models.Model): uuid = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) associated_project = models.ForeignKey(MNFScriptDatabase, on_delete=models.CASCADE) actionline_lang = models.CharField(max_length=150, null=False, blank=False) actionline_script = models.CharField(max_length=150, null=False, blank=False) dial_lang = models.CharField(max_length=150, null=False, blank=False) dial_script = models.CharField(max_length=150, null=False, blank=False) class JuggernautConversion(models.Model): id = models.UUIDField(max_length=36, primary_key=True, default=uuid.uuid4, editable=False) package = models.ForeignKey(JuggernautPackage, on_delete=models.CASCADE) created_at = models.DateTimeField(auto_now_add=True) updated_at = models.DateTimeField(auto_now=True) associated_project = models.ForeignKey(MNFScriptDatabase, on_delete=models.CASCADE) project_name = models.CharField(max_length=200,null=True, blank=True) project_details = models.IntegerField(default=0, null=True, blank=True) #pages in this case languages = models.IntegerField(default=0, null=True, blank=True) iterations = models.IntegerField(default=0, null=True, blank=True) # class JuggernautPitchdeck(models.Model): # id = models.UUIDField(max_length=36, primary_key=True, default=uuid.uuid4, editable=False) # package = models.ForeignKey(JuggernautPackage, on_delete=models.CASCADE) # created_at = models.DateTimeField(auto_now_add=True) # updated_at = models.DateTimeField(auto_now=True) # associated_project = models.ForeignKey(MNFScriptDatabase, on_delete=models.CASCADE) # project_name = models.CharField(max_length=200,null=True, blank=True) # class JuggernautNarration(models.Model): # id = models.UUIDField(max_length=36, primary_key=True, default=uuid.uuid4, editable=False) # package = models.ForeignKey(JuggernautPackage, on_delete=models.CASCADE) # created_at = models.DateTimeField(auto_now_add=True) # updated_at = models.DateTimeField(auto_now=True) # associated_project = models.ForeignKey(MNFScriptDatabase, on_delete=models.CASCADE) # project_name = models.CharField(max_length=200,null=True, blank=True) # class JuggernautSubtitling(models.Model): # id = models.UUIDField(max_length=36, primary_key=True, default=uuid.uuid4, editable=False) # package = models.ForeignKey(JuggernautPackage, on_delete=models.CASCADE) # created_at = models.DateTimeField(auto_now_add=True) # updated_at = models.DateTimeField(auto_now=True) # associated_project = models.ForeignKey(Subtitles, on_delete=models.CASCADE) # project_name = models.CharField(max_length=200,null=True, blank=True) # project_details = models.IntegerField(default=0, null=True, blank=True) #minutes in this case # languages = models.IntegerField(default=0, null=True, blank=True) # iterations= models.IntegerField(default=0, null=True, blank=True) # class JuggernautProjectCenter(models.Model): # id = models.UUIDField(max_length=36, primary_key=True, default=uuid.uuid4, editable=False) # package = models.ForeignKey(JuggernautPackage, on_delete=models.CASCADE) # created_at = models.DateTimeField(auto_now_add=True) # updated_at = models.DateTimeField(auto_now=True) # associated_project = models.ForeignKey(Generatedmodel, on_delete=models.CASCADE) # project_name = models.CharField(max_length=200,null=True, blank=True) # class JuggernautBeatSheet(models.Model): # id = models.UUIDField(max_length=36, primary_key=True, default=uuid.uuid4, editable=False) # package = models.ForeignKey(JuggernautPackage, on_delete=models.CASCADE) # created_at = models.DateTimeField(auto_now_add=True) # updated_at = models.DateTimeField(auto_now=True) # associated_project = models.ForeignKey(BeatSheet, on_delete=models.CASCADE) # project_name = models.CharField(max_length=200,null=True, blank=True)