|
|
@@ -0,0 +1,30 @@
|
|
|
+import taggit.managers
|
|
|
+import utilities.json
|
|
|
+from django.db import migrations, models
|
|
|
+
|
|
|
+
|
|
|
+class Migration(migrations.Migration):
|
|
|
+
|
|
|
+ dependencies = [
|
|
|
+ ('dummy_plugin', '0001_initial'),
|
|
|
+ ('extras', '0122_charfield_null_choices'),
|
|
|
+ ]
|
|
|
+
|
|
|
+ operations = [
|
|
|
+ migrations.CreateModel(
|
|
|
+ name='DummyNetBoxModel',
|
|
|
+ fields=[
|
|
|
+ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False)),
|
|
|
+ ('created', models.DateTimeField(auto_now_add=True, null=True)),
|
|
|
+ ('last_updated', models.DateTimeField(auto_now=True, null=True)),
|
|
|
+ (
|
|
|
+ 'custom_field_data',
|
|
|
+ models.JSONField(blank=True, default=dict, encoder=utilities.json.CustomFieldJSONEncoder),
|
|
|
+ ),
|
|
|
+ ('tags', taggit.managers.TaggableManager(through='extras.TaggedItem', to='extras.Tag')),
|
|
|
+ ],
|
|
|
+ options={
|
|
|
+ 'abstract': False,
|
|
|
+ },
|
|
|
+ ),
|
|
|
+ ]
|