Loading services/webapp/code/rosetta/core_app/migrations/0038_auto_20250716_0837.py 0 → 100644 +26 −0 Original line number Diff line number Diff line # Generated by Django 2.2.1 on 2025-07-16 08:37 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('core_app', '0037_storage_read_only'), ] operations = [ migrations.AddField( model_name='computing', name='user', field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='computings', to=settings.AUTH_USER_MODEL), ), migrations.AddField( model_name='storage', name='user', field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='storages', to=settings.AUTH_USER_MODEL), ), ] services/webapp/code/rosetta/core_app/models.py +6 −1 Original line number Diff line number Diff line Loading @@ -207,8 +207,10 @@ class Container(models.Model): class Computing(models.Model): uuid = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) user = models.ForeignKey(User, related_name='computings', on_delete=models.CASCADE, blank=True, null=True) # If a computing has no user, it will be available to anyone. Can be created, edited and deleted only by admins. group = models.ForeignKey(Group, related_name='computings', on_delete=models.CASCADE, blank=True, null=True) # If a compute resource has no group, it will be available to anyone. Can be created, edited and deleted only by admins. # If a computing resource has no group, it will be available to anyone. Can be created, edited and deleted only by admins. name = models.CharField('Name', max_length=255, blank=False, null=False) description = models.TextField('Description', blank=True, null=True) Loading Loading @@ -425,7 +427,10 @@ class Task(models.Model): class Storage(models.Model): uuid = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) user = models.ForeignKey(User, related_name='storages', on_delete=models.CASCADE, blank=True, null=True) # If a storage has no user, it will be available to anyone. Can be created, edited and deleted only by admins. group = models.ForeignKey(Group, related_name='storages', on_delete=models.CASCADE, blank=True, null=True) # If a comstorageputing has no user, it will be available to anyone. Can be created, edited and deleted only by admins. name = models.CharField('Name', max_length=255, blank=False, null=False) #description = models.TextField('Description', blank=True, null=True) Loading Loading
services/webapp/code/rosetta/core_app/migrations/0038_auto_20250716_0837.py 0 → 100644 +26 −0 Original line number Diff line number Diff line # Generated by Django 2.2.1 on 2025-07-16 08:37 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('core_app', '0037_storage_read_only'), ] operations = [ migrations.AddField( model_name='computing', name='user', field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='computings', to=settings.AUTH_USER_MODEL), ), migrations.AddField( model_name='storage', name='user', field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='storages', to=settings.AUTH_USER_MODEL), ), ]
services/webapp/code/rosetta/core_app/models.py +6 −1 Original line number Diff line number Diff line Loading @@ -207,8 +207,10 @@ class Container(models.Model): class Computing(models.Model): uuid = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) user = models.ForeignKey(User, related_name='computings', on_delete=models.CASCADE, blank=True, null=True) # If a computing has no user, it will be available to anyone. Can be created, edited and deleted only by admins. group = models.ForeignKey(Group, related_name='computings', on_delete=models.CASCADE, blank=True, null=True) # If a compute resource has no group, it will be available to anyone. Can be created, edited and deleted only by admins. # If a computing resource has no group, it will be available to anyone. Can be created, edited and deleted only by admins. name = models.CharField('Name', max_length=255, blank=False, null=False) description = models.TextField('Description', blank=True, null=True) Loading Loading @@ -425,7 +427,10 @@ class Task(models.Model): class Storage(models.Model): uuid = models.UUIDField(primary_key=True, default=uuid.uuid4, editable=False) user = models.ForeignKey(User, related_name='storages', on_delete=models.CASCADE, blank=True, null=True) # If a storage has no user, it will be available to anyone. Can be created, edited and deleted only by admins. group = models.ForeignKey(Group, related_name='storages', on_delete=models.CASCADE, blank=True, null=True) # If a comstorageputing has no user, it will be available to anyone. Can be created, edited and deleted only by admins. name = models.CharField('Name', max_length=255, blank=False, null=False) #description = models.TextField('Description', blank=True, null=True) Loading