Scott Baker | fe0e9d3 | 2019-02-20 21:19:41 -0800 | [diff] [blame] | 1 | # Copyright 2017-present Open Networking Foundation |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
Scott Baker | 5924109 | 2019-03-04 23:05:31 -0800 | [diff] [blame] | 14 | |
Scott Baker | fe0e9d3 | 2019-02-20 21:19:41 -0800 | [diff] [blame] | 15 | # -*- coding: utf-8 -*- |
| 16 | # Generated by Django 1.11.11 on 2019-02-21 05:15 |
| 17 | from __future__ import unicode_literals |
| 18 | |
| 19 | import core.models.xosbase_header |
| 20 | from django.db import migrations, models |
| 21 | import django.db.models.deletion |
| 22 | import django.utils.timezone |
| 23 | |
| 24 | |
| 25 | class Migration(migrations.Migration): |
| 26 | |
| 27 | initial = True |
| 28 | |
| 29 | dependencies = [ |
| 30 | ('core', '0002_initial_data'), |
| 31 | ] |
| 32 | |
| 33 | operations = [ |
| 34 | migrations.CreateModel( |
| 35 | name='ColorNew', |
| 36 | fields=[ |
| 37 | ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
| 38 | ('created', models.DateTimeField(auto_now_add=True, help_text=b'Time this model was created')), |
| 39 | ('updated', models.DateTimeField(default=django.utils.timezone.now, help_text=b'Time this model was changed by a non-synchronizer')), |
| 40 | ('enacted', models.DateTimeField(blank=True, default=None, help_text=b'When synced, set to the timestamp of the data that was synced', null=True)), |
| 41 | ('policed', models.DateTimeField(blank=True, default=None, help_text=b'When policed, set to the timestamp of the data that was policed', null=True)), |
| 42 | ('backend_register', models.CharField(blank=True, default=b'{}', max_length=1024, null=True)), |
| 43 | ('backend_need_delete', models.BooleanField(default=False)), |
| 44 | ('backend_need_reap', models.BooleanField(default=False)), |
| 45 | ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=1024, null=True)), |
| 46 | ('backend_code', models.IntegerField(default=0)), |
| 47 | ('deleted', models.BooleanField(default=False)), |
| 48 | ('write_protect', models.BooleanField(default=False)), |
| 49 | ('lazy_blocked', models.BooleanField(default=False)), |
| 50 | ('no_sync', models.BooleanField(default=False)), |
| 51 | ('no_policy', models.BooleanField(default=False)), |
| 52 | ('policy_status', models.CharField(blank=True, default=b'Policy in process', max_length=1024, null=True)), |
| 53 | ('policy_code', models.IntegerField(blank=True, default=0, null=True)), |
| 54 | ('leaf_model_name', models.CharField(help_text=b'The most specialized model in this chain of inheritance, often defined by a service developer', max_length=1024)), |
| 55 | ('backend_need_delete_policy', models.BooleanField(default=False, help_text=b'True if delete model_policy must be run before object can be reaped')), |
| 56 | ('xos_managed', models.BooleanField(default=True, help_text=b'True if xos is responsible for creating/deleting this object')), |
| 57 | ('backend_handle', models.CharField(blank=True, help_text=b'Handle used by the backend to track this object', max_length=1024, null=True)), |
| 58 | ('changed_by_step', models.DateTimeField(blank=True, default=None, help_text=b'Time this model was changed by a sync step', null=True)), |
| 59 | ('changed_by_policy', models.DateTimeField(blank=True, default=None, help_text=b'Time this model was changed by a model policy', null=True)), |
| 60 | ('name', models.CharField(help_text=b'Name for this color', max_length=256)), |
| 61 | ('html_code', models.CharField(help_text=b'HTML Code for this color', max_length=256)), |
| 62 | ], |
| 63 | options={ |
| 64 | 'verbose_name': 'Color', |
| 65 | }, |
| 66 | bases=(models.Model, core.models.xosbase_header.PlModelMixIn), |
| 67 | ), |
| 68 | migrations.CreateModel( |
| 69 | name='EmbeddedImageNew', |
| 70 | fields=[ |
| 71 | ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), |
| 72 | ('created', models.DateTimeField(auto_now_add=True, help_text=b'Time this model was created')), |
| 73 | ('updated', models.DateTimeField(default=django.utils.timezone.now, help_text=b'Time this model was changed by a non-synchronizer')), |
| 74 | ('enacted', models.DateTimeField(blank=True, default=None, help_text=b'When synced, set to the timestamp of the data that was synced', null=True)), |
| 75 | ('policed', models.DateTimeField(blank=True, default=None, help_text=b'When policed, set to the timestamp of the data that was policed', null=True)), |
| 76 | ('backend_register', models.CharField(blank=True, default=b'{}', max_length=1024, null=True)), |
| 77 | ('backend_need_delete', models.BooleanField(default=False)), |
| 78 | ('backend_need_reap', models.BooleanField(default=False)), |
| 79 | ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=1024, null=True)), |
| 80 | ('backend_code', models.IntegerField(default=0)), |
| 81 | ('deleted', models.BooleanField(default=False)), |
| 82 | ('write_protect', models.BooleanField(default=False)), |
| 83 | ('lazy_blocked', models.BooleanField(default=False)), |
| 84 | ('no_sync', models.BooleanField(default=False)), |
| 85 | ('no_policy', models.BooleanField(default=False)), |
| 86 | ('policy_status', models.CharField(blank=True, default=b'Policy in process', max_length=1024, null=True)), |
| 87 | ('policy_code', models.IntegerField(blank=True, default=0, null=True)), |
| 88 | ('leaf_model_name', models.CharField(help_text=b'The most specialized model in this chain of inheritance, often defined by a service developer', max_length=1024)), |
| 89 | ('backend_need_delete_policy', models.BooleanField(default=False, help_text=b'True if delete model_policy must be run before object can be reaped')), |
| 90 | ('xos_managed', models.BooleanField(default=True, help_text=b'True if xos is responsible for creating/deleting this object')), |
| 91 | ('backend_handle', models.CharField(blank=True, help_text=b'Handle used by the backend to track this object', max_length=1024, null=True)), |
| 92 | ('changed_by_step', models.DateTimeField(blank=True, default=None, help_text=b'Time this model was changed by a sync step', null=True)), |
| 93 | ('changed_by_policy', models.DateTimeField(blank=True, default=None, help_text=b'Time this model was changed by a model policy', null=True)), |
| 94 | ('name', models.CharField(help_text=b'Name for this image', max_length=256)), |
| 95 | ('url', models.CharField(help_text=b'URL for this image', max_length=256)), |
| 96 | ], |
| 97 | options={ |
| 98 | 'verbose_name': 'Embedded Image', |
| 99 | }, |
| 100 | bases=(models.Model, core.models.xosbase_header.PlModelMixIn), |
| 101 | ), |
| 102 | migrations.CreateModel( |
| 103 | name='ServiceInstanceWithCompute2', |
| 104 | fields=[ |
| 105 | ('serviceinstance_decl_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='core.ServiceInstance_decl')), |
| 106 | ], |
| 107 | options={ |
| 108 | 'verbose_name': 'ServiceInstanceWithCompute2', |
| 109 | }, |
| 110 | bases=('core.serviceinstance',), |
| 111 | ), |
| 112 | migrations.CreateModel( |
| 113 | name='SimpleExampleService', |
| 114 | fields=[ |
| 115 | ('service_decl_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='core.Service_decl')), |
| 116 | ('service_message', models.CharField(help_text=b'Service Message to display in web page', max_length=254)), |
| 117 | ('service_secret', models.TextField(blank=True, help_text=b'Service Secret to place in a file')), |
| 118 | ], |
| 119 | options={ |
| 120 | 'verbose_name': 'Simple Example Service', |
| 121 | }, |
| 122 | bases=('core.service',), |
| 123 | ), |
| 124 | migrations.CreateModel( |
| 125 | name='SimpleExampleServiceInstance', |
| 126 | fields=[ |
| 127 | ('serviceinstancewithcompute2_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='simpleexampleservice.ServiceInstanceWithCompute2')), |
| 128 | ('tenant_message', models.CharField(help_text=b'Tenant Message to Display', max_length=254)), |
| 129 | ('tenant_secret', models.TextField(blank=True, help_text=b'Tenant Secret to place in a file')), |
| 130 | ('background_color', models.ForeignKey(blank=True, help_text=b'Background color to use in web page', null=True, on_delete=django.db.models.deletion.CASCADE, related_name='serviceinstance_background_colors', to='simpleexampleservice.ColorNew')), |
| 131 | ('foreground_color', models.ForeignKey(blank=True, help_text=b'Foreground color to use in web page', null=True, on_delete=django.db.models.deletion.CASCADE, related_name='serviceinstance_foreground_colors', to='simpleexampleservice.ColorNew')), |
| 132 | ], |
| 133 | options={ |
| 134 | 'verbose_name': 'Example Service Instance', |
| 135 | }, |
| 136 | bases=('simpleexampleservice.serviceinstancewithcompute2',), |
| 137 | ), |
| 138 | migrations.AddField( |
| 139 | model_name='serviceinstancewithcompute2', |
| 140 | name='compute_instance', |
| 141 | field=models.ForeignKey(blank=True, help_text=b'ComputeServiceInstance that holds compute resources for this ServiceInstance', null=True, on_delete=django.db.models.deletion.CASCADE, related_name='service_instance_with_computes', to='core.ComputeServiceInstance'), |
| 142 | ), |
| 143 | migrations.AddField( |
| 144 | model_name='embeddedimagenew', |
| 145 | name='serviceinstance', |
| 146 | field=models.ForeignKey(blank=True, help_text=b'ServiceInstance that represents the web page where this embedded image should be placed', null=True, on_delete=django.db.models.deletion.CASCADE, related_name='embedded_images', to='simpleexampleservice.SimpleExampleServiceInstance'), |
| 147 | ), |
| 148 | ] |