chore: update migrations from previous days work

ref: #244 #71 #245
This commit is contained in:
2024-08-17 17:42:50 +09:30
parent 0020550dde
commit efce9c0219
5 changed files with 67 additions and 6 deletions

View File

@ -1,4 +1,4 @@
# Generated by Django 5.0.7 on 2024-07-21 02:35
# Generated by Django 5.0.7 on 2024-08-17 08:05
import access.fields
import access.models
@ -14,7 +14,7 @@ class Migration(migrations.Migration):
dependencies = [
('access', '0001_initial'),
('itam', '0002_device_config'),
('itam', '0003_alter_device_options_alter_devicemodel_options_and_more'),
]
operations = [
@ -43,11 +43,13 @@ class Migration(migrations.Migration):
('name', models.CharField(help_text='Name of the Cluster', max_length=50, verbose_name='Name')),
('slug', access.fields.AutoSlugField()),
('config', models.JSONField(blank=True, default=None, help_text='Cluster Configuration', null=True, verbose_name='Configuration')),
('created', access.fields.AutoCreatedField(default=django.utils.timezone.now, editable=False)),
('modified', access.fields.AutoLastModifiedField(default=django.utils.timezone.now, editable=False)),
('devices', models.ManyToManyField(blank=True, default=None, help_text='Devices that are deployed upon the cluster.', related_name='cluster_device', to='itam.device', verbose_name='Devices')),
('node', models.ManyToManyField(blank=True, default=None, help_text='Hosts for resource consumption that the cluster is deployed upon', related_name='cluster_node', to='itam.device', verbose_name='Nodes')),
('nodes', models.ManyToManyField(blank=True, default=None, help_text='Hosts for resource consumption that the cluster is deployed upon', related_name='cluster_node', to='itam.device', verbose_name='Nodes')),
('organization', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='access.organization', validators=[access.models.TenancyObject.validatate_organization_exists])),
('parent_cluster', models.ForeignKey(blank=True, default=None, help_text='Parent Cluster for this cluster', null=True, on_delete=django.db.models.deletion.CASCADE, to='itim.cluster', verbose_name='Parent Cluster')),
('cluster_type', models.ForeignKey(blank=True, default=None, help_text='Parent Cluster for this cluster', null=True, on_delete=django.db.models.deletion.CASCADE, to='itim.clustertype', verbose_name='Parent Cluster')),
('cluster_type', models.ForeignKey(blank=True, default=None, help_text='Type of Cluster', null=True, on_delete=django.db.models.deletion.CASCADE, to='itim.clustertype', verbose_name='Cluster Type')),
],
options={
'verbose_name': 'Cluster',