diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index e48b86d..fa9fc49 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -7,7 +7,7 @@ repos:
rev: 23.11.0
hooks:
- id: black
- language_version: python3.12
+ language_version: python3
- repo: https://github.com/PyCQA/isort
rev: 5.12.0
hooks:
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 7b4fb13..c73efcb 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,10 @@
## Version 2
+### Version 2.2.0
+
+* [140](https://github.com/mlebreuil/netbox-contract/issues/140) Add the "Invoice line" and "Accounting dimension" models. In order to simplify invoices creation, it is possible to selsct one invoice as the template for each contract; Its accounting lines will automatically be copied to the new invoices for the contract. The amount of the first line will be updated so that the sum of the amount for each invoice line match the invoice amount.
+
### Version 2.1.2
* [127](https://github.com/mlebreuil/netbox-contract/issues/135) Fix service provider creation issue
diff --git a/UTILS.md b/UTILS.md
deleted file mode 100644
index 56516f8..0000000
--- a/UTILS.md
+++ /dev/null
@@ -1,114 +0,0 @@
-# Utils
-
-## Generating the distribution archives
-
-Note: This part is now automated with Github Actions.
-Each time a release is created, a new package is created.
-
-Make sure the package version is incremented in the following files.
-- pyproject.toml
-- src/netbox_contract/__init__.py
-
-```bash
-source netbox/venv/bin/activate
-cd netbox-contract
-python3 -m pip install --upgrade build
-python3 -m build
-```
-
-## Update the package in the test pypi repository
-
-
-```bash
-source netbox/venv/bin/activate
-python3 -m pip install --upgrade pip
-python3 -m pip install --upgrade twine
-python3 -m twine upload --repository testpypi dist/*
-```
-
-## Update the package in the pypi repository
-
-Note: This part is now automated with Github Actions.
-Each time a release is created, a new package is created and uploaded to PyPI.
-
-```bash
-source netbox/venv/bin/activate
-python3 -m pip install --upgrade pip
-python3 -m pip install --upgrade twine
-python3 -m twine upload dist/*
-```
-
-## install the pluggin
-
-For development install from local file system with the "editable" option:
-
-git clone
-
-```bash
-source netbox/venv/bin/activate
-python3 -m pip uninstall netbox-contract
-git clone https://github.com/mlebreuil/netbox-contract.git
-python3 -m pip install -e netbox-contract
-```
-
-from the test respository:
-
-```bash
-source netbox/venv/bin/activate
-python3 -m pip uninstall netbox-contract
-python3 -m pip install --index-url https://test.pypi.org/simple/ --no-deps netbox-contract
-```
-
-From the production repository:
-
-```bash
-source netbox/venv/bin/activate
-python3 -m pip uninstall netbox-contract
-python3 -m pip install netbox-contract
-```
-
-Update netbox configuration
-
-```python
-# configuration.py
-PLUGINS = [
- 'netbox_contract',
-]
-```
-
-update the database
-
-```bash
-source netbox/venv/bin/activate
-python netbox/netbox/manage.py migrate
-```
-
-## initialisze the database
-
-Install database package.
-postgresql python adapter [psycopg](https://www.psycopg.org/docs/install.html)
-
-```bash
-pip install psycopg2
-```
-
-Run the initialization script
-
-```bash
-cd ..
-python3 database_init.py
-```
-
-## Backup and restore the db
-
-```bash
-pg_dump --username netbox --password --host db netbox > netbox.sql
-```
-
-Restore:
-
-```bash
-psql --host=db --username=postgres --password -c 'drop database netbox'
-psql --host=db --username=postgres --password -c 'create database netbox'
-psql --host=db --username=postgres --password netbox < netbox.sql
-```
\ No newline at end of file
diff --git a/docs/accounting_dimensions.md b/docs/accounting_dimensions.md
new file mode 100644
index 0000000..09b5d7f
--- /dev/null
+++ b/docs/accounting_dimensions.md
@@ -0,0 +1,5 @@
+# Accounting dimensions
+
+![Accounting dimensions](img/accrounting_dimensions.png "accounting dimensions")
+
+
diff --git a/docs/contract.md b/docs/contract.md
new file mode 100644
index 0000000..c36f693
--- /dev/null
+++ b/docs/contract.md
@@ -0,0 +1,7 @@
+# Contract
+
+![Contract](img/contract.png "contract")
+
+Linked objects:
+
+![Contract linked objects](img/contract_linked_objects.png "contract linked objects")
diff --git a/docs/img/accounting_dimensions.png b/docs/img/accounting_dimensions.png
new file mode 100644
index 0000000..d7504e6
Binary files /dev/null and b/docs/img/accounting_dimensions.png differ
diff --git a/docs/img/contract.png b/docs/img/contract.png
new file mode 100644
index 0000000..16f8125
Binary files /dev/null and b/docs/img/contract.png differ
diff --git a/docs/img/contract_linked_objects.png b/docs/img/contract_linked_objects.png
new file mode 100644
index 0000000..9a55fd2
Binary files /dev/null and b/docs/img/contract_linked_objects.png differ
diff --git a/docs/img/invoice.png b/docs/img/invoice.png
new file mode 100644
index 0000000..ab20101
Binary files /dev/null and b/docs/img/invoice.png differ
diff --git a/docs/img/invoice_line.png b/docs/img/invoice_line.png
new file mode 100644
index 0000000..8b7724c
Binary files /dev/null and b/docs/img/invoice_line.png differ
diff --git a/docs/img/invoice_linked_objects.png b/docs/img/invoice_linked_objects.png
new file mode 100644
index 0000000..c150349
Binary files /dev/null and b/docs/img/invoice_linked_objects.png differ
diff --git a/docs/invoice.md b/docs/invoice.md
new file mode 100644
index 0000000..21ca721
--- /dev/null
+++ b/docs/invoice.md
@@ -0,0 +1,7 @@
+# Invoice
+
+![Invoice](img/invoice.png "invoice")
+
+Linked objects:
+
+![Invoice linked objects](img/invoice_linked_objects.png "invoice linked objects")
diff --git a/docs/invoice_line.md b/docs/invoice_line.md
new file mode 100644
index 0000000..89a3960
--- /dev/null
+++ b/docs/invoice_line.md
@@ -0,0 +1,5 @@
+# Invoice line
+
+![Invoice line](img/invoice_line.png "invoice line")
+
+
diff --git a/mkdocs.yml b/mkdocs.yml
index d5c8af6..d916d2c 100644
--- a/mkdocs.yml
+++ b/mkdocs.yml
@@ -4,6 +4,10 @@ repo_url: https://github.com/mlebreuil/netbox-contract
repo_name: netbox-contract
nav:
- Home: index.md
+ - Contract: contract.md
+ - Invoice: invoice.md
+ - Invoice line: invoice_line.md
+ - Accounting dimensions: accounting_dimensions.md
- Contributing: contributing.md
- Changelog: changelog.md
theme:
diff --git a/pyproject.toml b/pyproject.toml
index 0814615..746b688 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
[project]
name = "netbox-contract"
-version = "2.1.2"
+version = "2.2.0"
authors = [
{ name="Marc Lebreuil", email="marc@famillelebreuil.net" },
]
@@ -9,6 +9,7 @@ readme = "README.md"
requires-python = ">=3.10"
dependencies = [
'python-dateutil',
+ 'drf_yasg',
]
classifiers = [
"Programming Language :: Python :: 3",
diff --git a/src/netbox_contract/__init__.py b/src/netbox_contract/__init__.py
index e85203c..581a217 100644
--- a/src/netbox_contract/__init__.py
+++ b/src/netbox_contract/__init__.py
@@ -5,7 +5,7 @@ class ContractsConfig(PluginConfig):
name = 'netbox_contract'
verbose_name = 'Netbox contract'
description = 'Contract management plugin for Netbox'
- version = '2.1.2'
+ version = '2.2.0'
author = 'Marc Lebreuil'
author_email = 'marc@famillelebreuil.net'
base_url = 'contracts'
diff --git a/src/netbox_contract/api/serializers.py b/src/netbox_contract/api/serializers.py
index 0aea2b3..ea2d905 100644
--- a/src/netbox_contract/api/serializers.py
+++ b/src/netbox_contract/api/serializers.py
@@ -7,7 +7,14 @@
from tenancy.api.nested_serializers import NestedTenantSerializer
from utilities.api import get_serializer_for_model
-from ..models import Contract, ContractAssignment, Invoice, ServiceProvider
+from ..models import (
+ AccountingDimension,
+ Contract,
+ ContractAssignment,
+ Invoice,
+ InvoiceLine,
+ ServiceProvider,
+)
class NestedServiceProviderSerializer(WritableNestedSerializer):
@@ -52,6 +59,28 @@ class Meta:
brief_fields = ('id', 'url', 'display', 'contract', 'content_object')
+class NestedInvoicelineSerializer(WritableNestedSerializer):
+ url = serializers.HyperlinkedIdentityField(
+ view_name='plugins-api:netbox_contract-api:InvoiceLine-detail'
+ )
+
+ class Meta:
+ model = InvoiceLine
+ fields = ('id', 'url', 'display', 'invoice', 'amount')
+ brief_fields = ('id', 'url', 'display', 'invoice', 'amount')
+
+
+class NestedAccountingDimensionSerializer(WritableNestedSerializer):
+ url = serializers.HyperlinkedIdentityField(
+ view_name='plugins-api:netbox_contract-api:AccountingDimension-detail'
+ )
+
+ class Meta:
+ model = AccountingDimension
+ fields = ('id', 'url', 'display', 'name', 'value')
+ brief_fields = ('id', 'url', 'display', 'name', 'value')
+
+
class ContractSerializer(NetBoxModelSerializer):
url = serializers.HyperlinkedIdentityField(
view_name='plugins-api:netbox_contract-api:contract-detail'
@@ -192,3 +221,48 @@ def get_content_object(self, instance):
)
context = {'request': self.context['request']}
return serializer(instance.content_object, context=context).data
+
+
+class InvoiceLineSerializer(NetBoxModelSerializer):
+ url = serializers.HyperlinkedIdentityField(
+ view_name='plugins-api:netbox_contract-api:invoiceline-detail'
+ )
+
+ class Meta:
+ model = InvoiceLine
+ fields = (
+ 'id',
+ 'url',
+ 'display',
+ 'invoice',
+ 'amount',
+ 'currency',
+ 'comments',
+ 'tags',
+ 'custom_fields',
+ 'created',
+ 'last_updated',
+ )
+ brief_fields = ('invoice', 'amount', 'url', 'display', 'name')
+
+
+class AccountingDimensionSerializer(NetBoxModelSerializer):
+ url = serializers.HyperlinkedIdentityField(
+ view_name='plugins-api:netbox_contract-api:accountingdimension-detail'
+ )
+
+ class Meta:
+ model = AccountingDimension
+ fields = (
+ 'id',
+ 'url',
+ 'display',
+ 'name',
+ 'value',
+ 'comments',
+ 'tags',
+ 'custom_fields',
+ 'created',
+ 'last_updated',
+ )
+ brief_fields = ('name', 'value', 'url', 'display')
diff --git a/src/netbox_contract/api/urls.py b/src/netbox_contract/api/urls.py
index e3506c7..8c3502a 100644
--- a/src/netbox_contract/api/urls.py
+++ b/src/netbox_contract/api/urls.py
@@ -9,5 +9,7 @@
router.register('invoices', views.InvoiceViewSet)
router.register('serviceproviders', views.ServiceProviderViewSet)
router.register('contractassignment', views.ContractAssignmentViewSet)
+router.register('invoiceline', views.InvoiceLineViewSet)
+router.register('accountingdimension', views.AccountingDimensionViewSet)
urlpatterns = router.urls
diff --git a/src/netbox_contract/api/views.py b/src/netbox_contract/api/views.py
index 2114dc2..d4d2edb 100644
--- a/src/netbox_contract/api/views.py
+++ b/src/netbox_contract/api/views.py
@@ -3,8 +3,10 @@
from .. import filtersets, models
from .serializers import (
+ AccountingDimensionSerializer,
ContractAssignmentSerializer,
ContractSerializer,
+ InvoiceLineSerializer,
InvoiceSerializer,
ServiceProviderSerializer,
)
@@ -31,3 +33,13 @@ class ServiceProviderViewSet(NetBoxModelViewSet):
class ContractAssignmentViewSet(NetBoxModelViewSet):
queryset = models.ContractAssignment.objects.prefetch_related('contract', 'tags')
serializer_class = ContractAssignmentSerializer
+
+
+class InvoiceLineViewSet(NetBoxModelViewSet):
+ queryset = models.InvoiceLine.objects.prefetch_related('invoice', 'tags')
+ serializer_class = InvoiceLineSerializer
+
+
+class AccountingDimensionViewSet(NetBoxModelViewSet):
+ queryset = models.AccountingDimension.objects.prefetch_related('tags')
+ serializer_class = AccountingDimensionSerializer
diff --git a/src/netbox_contract/filtersets.py b/src/netbox_contract/filtersets.py
index 767b12b..d156483 100644
--- a/src/netbox_contract/filtersets.py
+++ b/src/netbox_contract/filtersets.py
@@ -1,7 +1,14 @@
from django.db.models import Q
from netbox.filtersets import NetBoxModelFilterSet
-from .models import Contract, ContractAssignment, Invoice, ServiceProvider
+from .models import (
+ AccountingDimension,
+ Contract,
+ ContractAssignment,
+ Invoice,
+ InvoiceLine,
+ ServiceProvider,
+)
class ContractFilterSet(NetBoxModelFilterSet):
@@ -14,7 +21,7 @@ def search(self, queryset, name, value):
Q(name__icontains=value)
| Q(external_reference__icontains=value)
| Q(comments__icontains=value),
- Q(status__iexact='Active')
+ Q(status__iexact='Active'),
)
@@ -25,8 +32,7 @@ class Meta:
def search(self, queryset, name, value):
return queryset.filter(
- Q(number__icontains=value)
- | Q(contracts__name__icontains=value)
+ Q(number__icontains=value) | Q(contracts__name__icontains=value)
)
@@ -46,3 +52,25 @@ class Meta:
def search(self, queryset, name, value):
return queryset.filter(Q(contract__name__icontains=value))
+
+
+class InvoiceLineFilterSet(NetBoxModelFilterSet):
+ class Meta:
+ model = InvoiceLine
+ fields = ('id', 'invoice')
+
+ def search(self, queryset, name, value):
+ return queryset.filter(
+ Q(comments__icontains=value) | Q(invoice__name__icontains=value)
+ )
+
+
+class AccountingDimensionFilterSet(NetBoxModelFilterSet):
+ class Meta:
+ model = AccountingDimension
+ fields = ('name', 'value')
+
+ def search(self, queryset, name, value):
+ return queryset.filter(
+ Q(comments__icontains=value) | Q(invoice__name__icontains=value)
+ )
diff --git a/src/netbox_contract/forms.py b/src/netbox_contract/forms.py
index 6799b6a..64fe1df 100644
--- a/src/netbox_contract/forms.py
+++ b/src/netbox_contract/forms.py
@@ -1,6 +1,7 @@
from django import forms
from django.conf import settings
from django.contrib.contenttypes.models import ContentType
+from django.core.exceptions import ObjectDoesNotExist, ValidationError
from extras.filters import TagFilter
from netbox.forms import (
NetBoxModelBulkEditForm,
@@ -24,10 +25,12 @@
from .constants import SERVICE_PROVIDER_MODELS
from .models import (
+ AccountingDimension,
Contract,
ContractAssignment,
InternalEntityChoices,
Invoice,
+ InvoiceLine,
ServiceProvider,
StatusChoices,
)
@@ -46,6 +49,9 @@ def __init__(self, *args, **kwargs):
self.widget.attrs['placeholder'] = str(default_dimensions)
+# Contract
+
+
class ContractForm(NetBoxModelForm):
comments = CommentField()
@@ -98,11 +104,6 @@ def __init__(self, *args, **kwargs):
].queryset = ServiceProvider.objects.all()
self.fields['external_partie_object'].initial = None
- # initialize accounting dimentsions widget
- # self.fields[
- # 'accounting_dimensions'
- # ].widget.attrs['placeholder'] = '{"key": "value"}'
-
# Initialise fields settings
mandatory_fields = plugin_settings.get('mandatory_contract_fields')
for field in mandatory_fields:
@@ -143,46 +144,6 @@ class Meta:
}
-class InvoiceForm(NetBoxModelForm):
- contracts = DynamicModelMultipleChoiceField(
- queryset=Contract.objects.all(), required=False
- )
- accounting_dimensions = Dimensions(required=False)
-
- def __init__(self, *args, **kwargs):
- super().__init__(*args, **kwargs)
-
- # Initialise fields settings
- mandatory_fields = plugin_settings.get('mandatory_invoice_fields')
- for field in mandatory_fields:
- self.fields[field].required = True
- hidden_fields = plugin_settings.get('hidden_invoice_fields')
- for field in hidden_fields:
- if not self.fields[field].required:
- self.fields[field].widget = forms.HiddenInput()
-
- class Meta:
- model = Invoice
- fields = (
- 'number',
- 'date',
- 'contracts',
- 'period_start',
- 'period_end',
- 'currency',
- 'accounting_dimensions',
- 'amount',
- 'documents',
- 'comments',
- 'tags',
- )
- widgets = {
- 'date': DatePicker(),
- 'period_start': DatePicker(),
- 'period_end': DatePicker(),
- }
-
-
class ContractFilterSetForm(NetBoxModelFilterSetForm):
model = Contract
@@ -193,13 +154,6 @@ class ContractFilterSetForm(NetBoxModelFilterSetForm):
parent = DynamicModelChoiceField(queryset=Contract.objects.all(), required=False)
-class InvoiceFilterSetForm(NetBoxModelFilterSetForm):
- model = Invoice
- contracts = DynamicModelMultipleChoiceField(
- queryset=Contract.objects.all(), required=False
- )
-
-
class ContractCSVForm(NetBoxModelImportForm):
external_partie_object_type = CSVContentTypeField(
queryset=ContentType.objects.all(),
@@ -271,6 +225,120 @@ class ContractBulkEditForm(NetBoxModelBulkEditForm):
model = Contract
+# Invoice
+
+
+class InvoiceForm(NetBoxModelForm):
+ contracts = DynamicModelMultipleChoiceField(
+ queryset=Contract.objects.all(), required=False
+ )
+ accounting_dimensions = Dimensions(required=False)
+
+ def __init__(self, *args, **kwargs):
+ super().__init__(*args, **kwargs)
+
+ # Initialise fields settings
+ mandatory_fields = plugin_settings.get('mandatory_invoice_fields')
+ for field in mandatory_fields:
+ self.fields[field].required = True
+ hidden_fields = plugin_settings.get('hidden_invoice_fields')
+ for field in hidden_fields:
+ if not self.fields[field].required:
+ self.fields[field].widget = forms.HiddenInput()
+
+ def clean(self):
+ super().clean()
+
+ # template checks
+ if self.cleaned_data['template']:
+ # Check that there is only one invoice template per contract
+ contracts = self.cleaned_data['contracts']
+ for contract in contracts:
+ for invoice in contract.invoices.all():
+ if invoice.template and invoice.pk != self.instance.pk:
+ raise ValidationError(
+ 'Only one invoice template allowed per contract'
+ )
+
+ # Prefix the invoice name with _template
+ self.cleaned_data['number'] = '_template_' + self.cleaned_data['number']
+
+ def save(self, *args, **kwargs):
+ is_new = not bool(self.instance.pk)
+
+ instance = super().save(*args, **kwargs)
+
+ if is_new and not self.cleaned_data['template']:
+ contracts = self.cleaned_data['contracts']
+
+ for contract in contracts:
+ try:
+ template_exists = True
+ invoice_template = Invoice.objects.get(
+ template=True, contracts=contract
+ )
+ except ObjectDoesNotExist:
+ template_exists = False
+
+ if template_exists:
+ first = True
+ for line in invoice_template.invoicelines.all():
+ dimensions = line.accounting_dimensions.all()
+ line.pk = None
+ line.id = None
+ line._state.adding = True
+ line.invoice = self.instance
+
+ # adjust the first invoice line amount
+ amount = self.cleaned_data['amount']
+ if (
+ first
+ and amount != invoice_template.total_invoicelines_amount
+ ):
+ line.amount = (
+ line.amount
+ + amount
+ - invoice_template.total_invoicelines_amount
+ )
+
+ line.save()
+
+ for dimension in dimensions:
+ line.accounting_dimensions.add(dimension)
+ first = False
+
+ return instance
+
+ class Meta:
+ model = Invoice
+ fields = (
+ 'number',
+ 'date',
+ 'contracts',
+ 'template',
+ 'period_start',
+ 'period_end',
+ 'currency',
+ 'accounting_dimensions',
+ 'amount',
+ 'documents',
+ 'comments',
+ 'tags',
+ )
+ widgets = {
+ 'date': DatePicker(),
+ 'period_start': DatePicker(),
+ 'period_end': DatePicker(),
+ }
+
+
+class InvoiceFilterSetForm(NetBoxModelFilterSetForm):
+ model = Invoice
+ contracts = DynamicModelMultipleChoiceField(
+ queryset=Contract.objects.all(), required=False
+ )
+
+
class InvoiceCSVForm(NetBoxModelImportForm):
contracts = CSVModelChoiceField(
queryset=Contract.objects.all(),
@@ -284,6 +352,7 @@ class Meta:
'number',
'date',
'contracts',
+ 'template',
'period_start',
'period_end',
'currency',
@@ -368,3 +437,108 @@ class ContractAssignmentImportForm(NetBoxModelImportForm):
class Meta:
model = ContractAssignment
fields = ['content_type', 'object_id', 'contract', 'tags']
+
+
+# InvoiceLine
+
+
+class InvoiceLineForm(NetBoxModelForm):
+ invoice = DynamicModelChoiceField(queryset=Invoice.objects.all())
+ accounting_dimensions = forms.ModelMultipleChoiceField(
+ queryset=AccountingDimension.objects.all(), required=False
+ )
+
+ def clean(self):
+ super().clean()
+
+ # check for duplicate dimensions
+ accounting_dimensions = self.cleaned_data['accounting_dimensions']
+ dimensions_names = []
+ for dimension in accounting_dimensions:
+ if dimension.name in dimensions_names:
+ raise ValidationError('duplicate accounting dimension')
+ else:
+ dimensions_names.append(dimension.name)
+
+ class Meta:
+ model = InvoiceLine
+ fields = [
+ 'invoice',
+ 'currency',
+ 'amount',
+ 'accounting_dimensions',
+ 'comments',
+ 'tags',
+ ]
+
+
+class InvoiceLineFilterSetForm(NetBoxModelFilterSetForm):
+ model = InvoiceLine
+ invoice = DynamicModelChoiceField(queryset=Invoice.objects.all())
+ accounting_dimensions = DynamicModelMultipleChoiceField(
+ queryset=AccountingDimension.objects.all()
+ )
+
+
+class InvoiceLineImportForm(NetBoxModelImportForm):
+ invoice = CSVModelChoiceField(
+ queryset=Invoice.objects.all(),
+ to_field_name='number',
+ help_text='Invoice number',
+ )
+ accounting_dimensions = CSVModelChoiceField(
+ queryset=AccountingDimension.objects.all(),
+ help_text='accounting dimention in the form name, value',
+ )
+
+ class Meta:
+ model = InvoiceLine
+ fields = [
+ 'invoice',
+ 'currency',
+ 'amount',
+ 'accounting_dimensions',
+ 'comments',
+ 'tags',
+ ]
+
+
+class InvoiceLineBulkEditForm(NetBoxModelBulkEditForm):
+ invoice = DynamicModelChoiceField(queryset=Invoice.objects.all(), required=False)
+ accounting_dimensions = DynamicModelMultipleChoiceField(
+ queryset=AccountingDimension.objects.all(), required=False
+ )
+ model = InvoiceLine
+
+
+# AccountingDimension
+
+
+class AccountingDimensionForm(NetBoxModelForm):
+ class Meta:
+ model = AccountingDimension
+ fields = [
+ 'name',
+ 'value',
+ 'comments',
+ 'tags',
+ ]
+
+
+class AccountingDimensionFilterSetForm(NetBoxModelFilterSetForm):
+ model = AccountingDimension
+
+
+class AccountingDimensionImportForm(NetBoxModelImportForm):
+ class Meta:
+ model = AccountingDimension
+ fields = [
+ 'name',
+ 'value',
+ 'comments',
+ 'tags',
+ ]
+
+
+class AccountingDimensionBulkEditForm(NetBoxModelBulkEditForm):
+ model = AccountingDimension
diff --git a/src/netbox_contract/migrations/0027_invoiceline.py b/src/netbox_contract/migrations/0027_invoiceline.py
new file mode 100644
index 0000000..306ab8e
--- /dev/null
+++ b/src/netbox_contract/migrations/0027_invoiceline.py
@@ -0,0 +1,57 @@
+# Generated by Django 5.0.6 on 2024-06-23 13:12
+
+import django.db.models.deletion
+import taggit.managers
+import utilities.json
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+ dependencies = [
+ ('extras', '0115_convert_dashboard_widgets'),
+ ('netbox_contract', '0026_auto_20240421_1550'),
+ ]
+
+ operations = [
+ migrations.CreateModel(
+ name='InvoiceLine',
+ 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,
+ ),
+ ),
+ ('currency', models.CharField(default='usd', max_length=3)),
+ ('amount', models.DecimalField(decimal_places=2, max_digits=10)),
+ ('comments', models.TextField(blank=True)),
+ (
+ 'invoice',
+ models.ForeignKey(
+ on_delete=django.db.models.deletion.CASCADE,
+ related_name='invoicelines',
+ to='netbox_contract.invoice',
+ ),
+ ),
+ (
+ 'tags',
+ taggit.managers.TaggableManager(
+ through='extras.TaggedItem', to='extras.Tag'
+ ),
+ ),
+ ],
+ options={
+ 'abstract': False,
+ },
+ ),
+ ]
diff --git a/src/netbox_contract/migrations/0028_invoiceline_accounting_dimensions.py b/src/netbox_contract/migrations/0028_invoiceline_accounting_dimensions.py
new file mode 100644
index 0000000..28f058f
--- /dev/null
+++ b/src/netbox_contract/migrations/0028_invoiceline_accounting_dimensions.py
@@ -0,0 +1,17 @@
+# Generated by Django 5.0.6 on 2024-06-30 20:19
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+ dependencies = [
+ ('netbox_contract', '0027_invoiceline'),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name='invoiceline',
+ name='accounting_dimensions',
+ field=models.JSONField(null=True),
+ ),
+ ]
diff --git a/src/netbox_contract/migrations/0029_remove_invoiceline_accounting_dimensions_and_more.py b/src/netbox_contract/migrations/0029_remove_invoiceline_accounting_dimensions_and_more.py
new file mode 100644
index 0000000..fa2eb1b
--- /dev/null
+++ b/src/netbox_contract/migrations/0029_remove_invoiceline_accounting_dimensions_and_more.py
@@ -0,0 +1,57 @@
+# Generated by Django 5.0.6 on 2024-07-13 09:43
+
+import taggit.managers
+import utilities.json
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+ dependencies = [
+ ('extras', '0115_convert_dashboard_widgets'),
+ ('netbox_contract', '0028_invoiceline_accounting_dimensions'),
+ ]
+
+ operations = [
+ migrations.RemoveField(
+ model_name='invoiceline',
+ name='accounting_dimensions',
+ ),
+ migrations.CreateModel(
+ name='AccountingDimension',
+ 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,
+ ),
+ ),
+ ('name', models.CharField(max_length=20)),
+ ('value', models.CharField(max_length=20)),
+ ('comments', models.TextField(blank=True)),
+ (
+ 'tags',
+ taggit.managers.TaggableManager(
+ through='extras.TaggedItem', to='extras.Tag'
+ ),
+ ),
+ ],
+ options={
+ 'abstract': False,
+ },
+ ),
+ migrations.AddField(
+ model_name='invoiceline',
+ name='accounting_dimensions',
+ field=models.ManyToManyField(to='netbox_contract.accountingdimension'),
+ ),
+ ]
diff --git a/src/netbox_contract/migrations/0030_alter_invoiceline_accounting_dimensions.py b/src/netbox_contract/migrations/0030_alter_invoiceline_accounting_dimensions.py
new file mode 100644
index 0000000..c13763a
--- /dev/null
+++ b/src/netbox_contract/migrations/0030_alter_invoiceline_accounting_dimensions.py
@@ -0,0 +1,21 @@
+# Generated by Django 5.0.6 on 2024-07-13 12:39
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+ dependencies = [
+ ('netbox_contract', '0029_remove_invoiceline_accounting_dimensions_and_more'),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name='invoiceline',
+ name='accounting_dimensions',
+ field=models.ManyToManyField(
+ blank=True,
+ related_name='invoicelines',
+ to='netbox_contract.accountingdimension',
+ ),
+ ),
+ ]
diff --git a/src/netbox_contract/migrations/0031_contract_invoice_template_invoice_template.py b/src/netbox_contract/migrations/0031_contract_invoice_template_invoice_template.py
new file mode 100644
index 0000000..2e4ab2d
--- /dev/null
+++ b/src/netbox_contract/migrations/0031_contract_invoice_template_invoice_template.py
@@ -0,0 +1,29 @@
+# Generated by Django 5.0.6 on 2024-07-16 13:06
+
+import django.db.models.deletion
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+ dependencies = [
+ ('netbox_contract', '0030_alter_invoiceline_accounting_dimensions'),
+ ]
+
+ operations = [
+ migrations.AddField(
+ model_name='contract',
+ name='invoice_template',
+ field=models.ForeignKey(
+ blank=True,
+ null=True,
+ on_delete=django.db.models.deletion.CASCADE,
+ related_name='contract',
+ to='netbox_contract.invoice',
+ ),
+ ),
+ migrations.AddField(
+ model_name='invoice',
+ name='template',
+ field=models.BooleanField(blank=True, null=True),
+ ),
+ ]
diff --git a/src/netbox_contract/migrations/0032_alter_invoice_period_end_alter_invoice_period_start_and_more.py b/src/netbox_contract/migrations/0032_alter_invoice_period_end_alter_invoice_period_start_and_more.py
new file mode 100644
index 0000000..68e2148
--- /dev/null
+++ b/src/netbox_contract/migrations/0032_alter_invoice_period_end_alter_invoice_period_start_and_more.py
@@ -0,0 +1,27 @@
+# Generated by Django 5.0.6 on 2024-07-23 19:28
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+ dependencies = [
+ ('netbox_contract', '0031_contract_invoice_template_invoice_template'),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name='invoice',
+ name='period_end',
+ field=models.DateField(blank=True, null=True),
+ ),
+ migrations.AlterField(
+ model_name='invoice',
+ name='period_start',
+ field=models.DateField(blank=True, null=True),
+ ),
+ migrations.AlterField(
+ model_name='invoice',
+ name='template',
+ field=models.BooleanField(blank=True, default=False, null=True),
+ ),
+ ]
diff --git a/src/netbox_contract/migrations/0033_remove_contract_invoice_template.py b/src/netbox_contract/migrations/0033_remove_contract_invoice_template.py
new file mode 100644
index 0000000..e3a179f
--- /dev/null
+++ b/src/netbox_contract/migrations/0033_remove_contract_invoice_template.py
@@ -0,0 +1,19 @@
+# Generated by Django 5.0.6 on 2024-07-24 20:40
+
+from django.db import migrations
+
+
+class Migration(migrations.Migration):
+ dependencies = [
+ (
+ 'netbox_contract',
+ '0032_alter_invoice_period_end_alter_invoice_period_start_and_more',
+ ),
+ ]
+
+ operations = [
+ migrations.RemoveField(
+ model_name='contract',
+ name='invoice_template',
+ ),
+ ]
diff --git a/src/netbox_contract/models.py b/src/netbox_contract/models.py
index fc10d4c..9e58f5a 100644
--- a/src/netbox_contract/models.py
+++ b/src/netbox_contract/models.py
@@ -1,5 +1,6 @@
from django.contrib.contenttypes.fields import GenericForeignKey
from django.contrib.contenttypes.models import ContentType
+from django.core.exceptions import ValidationError
from django.db import models
from django.urls import reverse
from netbox.models import NetBoxModel
@@ -40,6 +41,22 @@ class CurrencyChoices(ChoiceSet):
]
+class AccountingDimension(NetBoxModel):
+ name = models.CharField(max_length=20)
+ value = models.CharField(max_length=20)
+ comments = models.TextField(blank=True)
+
+ def get_absolute_url(self):
+ return reverse('plugins:netbox_contract:accountingdimension', args=[self.pk])
+
+ @property
+ def dimension(self):
+ return ''.join([self.name, ':', self.value])
+
+ def __str__(self):
+ return self.dimension
+
+
class ServiceProvider(ContactsMixin, NetBoxModel):
name = models.CharField(max_length=100)
slug = models.SlugField(max_length=100, unique=True)
@@ -145,14 +162,15 @@ def __str__(self):
class Invoice(NetBoxModel):
number = models.CharField(max_length=100)
+ template = models.BooleanField(blank=True, null=True, default=False)
date = models.DateField(blank=True, null=True)
contracts = models.ManyToManyField(
Contract,
related_name='invoices',
blank=True,
)
- period_start = models.DateField()
- period_end = models.DateField()
+ period_start = models.DateField(blank=True, null=True)
+ period_end = models.DateField(blank=True, null=True)
currency = models.CharField(
max_length=3, choices=CurrencyChoices, default=CurrencyChoices.CURRENCY_USD
)
@@ -169,3 +187,47 @@ def __str__(self):
def get_absolute_url(self):
return reverse('plugins:netbox_contract:invoice', args=[self.pk])
+
+ @property
+ def total_invoicelines_amount(self):
+ """
+ Calculates the total amount for all related InvoiceLines.
+ """
+ return sum(invoiceline.amount for invoiceline in self.invoicelines.all())
+
+
+class InvoiceLine(NetBoxModel):
+ invoice = models.ForeignKey(
+ to='Invoice', on_delete=models.CASCADE, related_name='invoicelines'
+ )
+ currency = models.CharField(
+ max_length=3, choices=CurrencyChoices, default=CurrencyChoices.CURRENCY_USD
+ )
+ amount = models.DecimalField(max_digits=10, decimal_places=2)
+ accounting_dimensions = models.ManyToManyField(
+ AccountingDimension, related_name='invoicelines', blank=True
+ )
+ comments = models.TextField(blank=True)
+
+ def get_absolute_url(self):
+ return reverse('plugins:netbox_contract:invoiceline', args=[self.pk])
+
+ def clean(self):
+ super().clean()
+ # Check that the sum of the invoice line amount is not greater the invoice amount
+ amount = self.amount
+ invoice = self.invoice
+ is_new = not bool(self.pk)
+ if is_new:
+ if amount > (invoice.amount - invoice.total_invoicelines_amount):
+ raise ValidationError(
+ 'Sum of invoice line amount greater than invoice amount'
+ )
+ else:
+ previous_amount = self.__class__.objects.get(pk=self.pk).amount
+ if amount > (
+ invoice.amount - invoice.total_invoicelines_amount + previous_amount
+ ):
+ raise ValidationError(
+ 'Sum of invoice line amount greater than invoice amount'
+ )
diff --git a/src/netbox_contract/navigation.py b/src/netbox_contract/navigation.py
index 0434a04..7f21d98 100644
--- a/src/netbox_contract/navigation.py
+++ b/src/netbox_contract/navigation.py
@@ -21,6 +21,24 @@
)
]
+invoiceline_buttons = [
+ PluginMenuButton(
+ link='plugins:netbox_contract:invoiceline_add',
+ title='Add',
+ icon_class='mdi mdi-plus-thick',
+ permissions=['netbox_contract.add_invoice'],
+ )
+]
+
+accountingdimension_buttons = [
+ PluginMenuButton(
+ link='plugins:netbox_contract:accountingdimension_add',
+ title='Add',
+ icon_class='mdi mdi-plus-thick',
+ permissions=['netbox_contract.add_invoice'],
+ )
+]
+
serviceprovider_buttons = [
PluginMenuButton(
link='plugins:netbox_contract:serviceprovider_add',
@@ -44,6 +62,20 @@
permissions=['netbox_contract.view_invoice'],
)
+invoicelines_menu_item = PluginMenuItem(
+ link='plugins:netbox_contract:invoiceline_list',
+ link_text='Invoice lines',
+ buttons=invoiceline_buttons,
+ permissions=['netbox_contract.view_invoice'],
+)
+
+accounting_dimensions_menu_item = PluginMenuItem(
+ link='plugins:netbox_contract:accountingdimension_list',
+ link_text='Accounting dimensions',
+ buttons=accountingdimension_buttons,
+ permissions=['netbox_contract.view_invoice'],
+)
+
service_provider_menu_item = PluginMenuItem(
link='plugins:netbox_contract:serviceprovider_list',
link_text='Service Providers',
@@ -59,6 +91,8 @@
items = (
contract_menu_item,
invoices_menu_item,
+ invoicelines_menu_item,
+ accounting_dimensions_menu_item,
service_provider_menu_item,
contract_assignemnt_menu_item,
)
diff --git a/src/netbox_contract/search.py b/src/netbox_contract/search.py
index ae7e431..87e383b 100644
--- a/src/netbox_contract/search.py
+++ b/src/netbox_contract/search.py
@@ -1,6 +1,6 @@
from netbox.search import SearchIndex
-from .models import Contract, Invoice, ServiceProvider
+from .models import AccountingDimension, Contract, Invoice, InvoiceLine, ServiceProvider
class ServiceProviderIndex(SearchIndex):
@@ -26,4 +26,27 @@ class InvoiceIndex(SearchIndex):
('comments', 5000),
)
-indexes = [ServiceProviderIndex,ContractIndex,InvoiceIndex]
+
+class InvoiceLineIndex(SearchIndex):
+ model = InvoiceLine
+ fields = (
+ ('invoice', 100),
+ ('comments', 5000),
+ )
+
+
+class AccountingDimensionIndex(SearchIndex):
+ model = AccountingDimension
+ fields = (
+ ('name', 20),
+ ('value', 20),
+ )
+
+
+indexes = [
+ ServiceProviderIndex,
+ ContractIndex,
+ InvoiceIndex,
+ InvoiceLineIndex,
+ AccountingDimensionIndex,
+]
diff --git a/src/netbox_contract/tables.py b/src/netbox_contract/tables.py
index e73adf3..95ea92b 100644
--- a/src/netbox_contract/tables.py
+++ b/src/netbox_contract/tables.py
@@ -1,7 +1,14 @@
import django_tables2 as tables
from netbox.tables import NetBoxTable, columns
-from .models import Contract, ContractAssignment, Invoice, ServiceProvider
+from .models import (
+ AccountingDimension,
+ Contract,
+ ContractAssignment,
+ Invoice,
+ InvoiceLine,
+ ServiceProvider,
+)
class ContractAssignmentListTable(NetBoxTable):
@@ -188,3 +195,43 @@ class Meta(NetBoxTable.Meta):
model = ServiceProvider
fields = ('pk', 'name', 'slug', 'portal_url')
default_columns = ('name', 'portal_url')
+
+
+class InvoiceLineListTable(NetBoxTable):
+ invoice = tables.Column(linkify=True)
+ accounting_dimensions = tables.ManyToManyColumn(linkify=True)
+
+ class Meta(NetBoxTable.Meta):
+ model = InvoiceLine
+ fields = (
+ 'pk',
+ 'invoice',
+ 'amount',
+ 'currency',
+ 'accounting_dimensions',
+ 'comments',
+ )
+ default_columns = (
+ 'pk',
+ 'invoice',
+ 'amount',
+ 'currency',
+ 'accounting_dimensions',
+ 'comments',
+ )
+
+
+class AccountingDimensionListTable(NetBoxTable):
+ class Meta(NetBoxTable.Meta):
+ model = AccountingDimension
+ fields = (
+ 'pk',
+ 'name',
+ 'value',
+ 'comments',
+ )
+ default_columns = (
+ 'name',
+ 'value',
+ 'comments',
+ )
diff --git a/src/netbox_contract/templates/netbox_contract/accountingdimension.html b/src/netbox_contract/templates/netbox_contract/accountingdimension.html
new file mode 100644
index 0000000..d04d638
--- /dev/null
+++ b/src/netbox_contract/templates/netbox_contract/accountingdimension.html
@@ -0,0 +1,27 @@
+{% extends 'generic/object.html' %}
+{% load plugins %}
+{% load render_table from django_tables2 %}
+
+{% block content %}
+
+
+
+
+
+
+ name |
+ {{ object.name }} |
+
+
+ value |
+ {{ object.value }} |
+
+
+
+ {% include 'inc/panels/custom_fields.html' %}
+ {% include 'inc/panels/tags.html' %}
+ {% include 'inc/panels/comments.html' %}
+
+
+{% plugin_right_page object %}
+{% endblock content %}
\ No newline at end of file
diff --git a/src/netbox_contract/templates/netbox_contract/invoice.html b/src/netbox_contract/templates/netbox_contract/invoice.html
index c4d720f..72eed86 100644
--- a/src/netbox_contract/templates/netbox_contract/invoice.html
+++ b/src/netbox_contract/templates/netbox_contract/invoice.html
@@ -53,20 +53,39 @@
{% endif %}
+
+ Invoice lines total |
+ {{ object.total_invoicelines_amount }} |
+
-
-
-
-
- {% render_table contracts_table %}
-
-
-
{% include 'inc/panels/custom_fields.html' %}
{% include 'inc/panels/tags.html' %}
{% include 'inc/panels/comments.html' %}
+
+
+
+
+ {% render_table invoicelines_table %}
+
+
+
+
+
+
+
+ {% render_table contracts_table %}
+
+
+
{% plugin_right_page object %}
{% endblock content %}
\ No newline at end of file
diff --git a/src/netbox_contract/templates/netbox_contract/invoiceline.html b/src/netbox_contract/templates/netbox_contract/invoiceline.html
new file mode 100644
index 0000000..ce74359
--- /dev/null
+++ b/src/netbox_contract/templates/netbox_contract/invoiceline.html
@@ -0,0 +1,42 @@
+{% extends 'generic/object.html' %}
+{% load plugins %}
+{% load render_table from django_tables2 %}
+{% block breadcrumbs %}
+ {{ block.super }}
+
+ {{ invoice.number }}
+
+{% endblock %}
+{% block content %}
+
+
+
+
+
+
+ Invoice |
+
+ {{ object.invoice.number }}
+ |
+
+
+ Amount |
+ {{ object.amount }} |
+
+
+ Currency |
+ {{ object.currency }} |
+
+
+ Accounting dimentions |
+ {{ object.accounting_dimensions }} |
+
+
+
+ {% include 'inc/panels/custom_fields.html' %}
+ {% include 'inc/panels/tags.html' %}
+ {% include 'inc/panels/comments.html' %}
+
+
+{% plugin_right_page object %}
+{% endblock content %}
\ No newline at end of file
diff --git a/src/netbox_contract/urls.py b/src/netbox_contract/urls.py
index bf4867d..8a028c9 100644
--- a/src/netbox_contract/urls.py
+++ b/src/netbox_contract/urls.py
@@ -166,4 +166,78 @@
name='contractassignment_changelog',
kwargs={'model': models.ContractAssignment},
),
+ # InvoiceLine
+ path(
+ 'invoiceline/',
+ views.InvoiceLineListView.as_view(),
+ name='invoiceline_list',
+ ),
+ path(
+ 'invoiceline/add/',
+ views.InvoiceLineEditView.as_view(),
+ name='invoiceline_add',
+ ),
+ path(
+ 'invoiceline/import/',
+ views.InvoiceLineBulkImportView.as_view(),
+ name='invoiceline_import',
+ ),
+ path(
+ 'invoiceline//',
+ views.InvoiceLineView.as_view(),
+ name='invoiceline',
+ ),
+ path(
+ 'invoiceline//edit/',
+ views.InvoiceLineEditView.as_view(),
+ name='invoiceline_edit',
+ ),
+ path(
+ 'invoiceline//delete/',
+ views.InvoiceLineDeleteView.as_view(),
+ name='invoiceline_delete',
+ ),
+ path(
+ 'invoiceline//changelog/',
+ ObjectChangeLogView.as_view(),
+ name='invoiceline_changelog',
+ kwargs={'model': models.InvoiceLine},
+ ),
+ # AccountingDimension
+ path(
+ 'accountingdimension/',
+ views.AccountingDimensionListView.as_view(),
+ name='accountingdimension_list',
+ ),
+ path(
+ 'accountingdimension/add/',
+ views.AccountingDimensionEditView.as_view(),
+ name='accountingdimension_add',
+ ),
+ path(
+ 'accountingdimension/import/',
+ views.AccountingDimensionBulkImportView.as_view(),
+ name='accountingdimension_import',
+ ),
+ path(
+ 'accountingdimension//',
+ views.AccountingDimensionView.as_view(),
+ name='accountingdimension',
+ ),
+ path(
+ 'accountingdimension//edit/',
+ views.AccountingDimensionEditView.as_view(),
+ name='accountingdimension_edit',
+ ),
+ path(
+ 'accountingdimension//delete/',
+ views.AccountingDimensionDeleteView.as_view(),
+ name='accountingdimension_delete',
+ ),
+ path(
+ 'accountingdimension//changelog/',
+ ObjectChangeLogView.as_view(),
+ name='accountingdimension_changelog',
+ kwargs={'model': models.AccountingDimension},
+ ),
)
diff --git a/src/netbox_contract/views.py b/src/netbox_contract/views.py
index 12f230a..72b6acf 100644
--- a/src/netbox_contract/views.py
+++ b/src/netbox_contract/views.py
@@ -14,7 +14,14 @@
from utilities.views import register_model_view
from . import filtersets, forms, tables
-from .models import Contract, ContractAssignment, Invoice, ServiceProvider
+from .models import (
+ AccountingDimension,
+ Contract,
+ ContractAssignment,
+ Invoice,
+ InvoiceLine,
+ ServiceProvider,
+)
plugin_settings = settings.PLUGINS_CONFIG['netbox_contract']
@@ -218,11 +225,15 @@ class InvoiceView(generic.ObjectView):
def get_extra_context(self, request, instance):
contracts_table = tables.ContractListTable(instance.contracts.all())
contracts_table.configure(request)
+ invoicelines_table = tables.InvoiceLineListTable(instance.invoicelines.all())
+ invoicelines_table.columns.hide('invoice')
+ invoicelines_table.configure(request)
hidden_fields = plugin_settings.get('hidden_invoice_fields')
return {
'hidden_fields': hidden_fields,
'contracts_table': contracts_table,
+ 'invoicelines_table': invoicelines_table,
}
@@ -313,3 +324,121 @@ class InvoiceBulkDeleteView(generic.BulkDeleteView):
queryset = Invoice.objects.all()
filterset = filtersets.InvoiceFilterSet
table = tables.InvoiceListTable
+
+
+# InvoiceLine
+
+
+class InvoiceLineView(generic.ObjectView):
+ queryset = InvoiceLine.objects.all()
+
+
+class InvoiceLineListView(generic.ObjectListView):
+ queryset = InvoiceLine.objects.all()
+ table = tables.InvoiceLineListTable
+ filterset = filtersets.InvoiceLineFilterSet
+ filterset_form = forms.InvoiceLineFilterSetForm
+
+
+class InvoiceLineEditView(generic.ObjectEditView):
+ queryset = InvoiceLine.objects.all()
+ form = forms.InvoiceLineForm
+
+ def get(self, request, *args, **kwargs):
+ """
+ GET request handler
+ Overrides the ObjectEditView function to include form initialization
+ with data from the parent invoice object
+
+ Args:
+ request: The current request
+ """
+ obj = self.get_object(**kwargs)
+ obj = self.alter_object(obj, request, args, kwargs)
+ model = self.queryset.model
+
+ initial_data = normalize_querydict(request.GET)
+ if 'invoice' in initial_data.keys():
+ invoice = Invoice.objects.get(pk=initial_data['invoice'])
+ initial_data['amount'] = invoice.amount - invoice.total_invoicelines_amount
+
+ form = self.form(instance=obj, initial=initial_data)
+ restrict_form_fields(form, request.user)
+
+ return render(
+ request,
+ self.template_name,
+ {
+ 'model': model,
+ 'object': obj,
+ 'form': form,
+ 'return_url': self.get_return_url(request, obj),
+ 'prerequisite_model': get_prerequisite_model(self.queryset),
+ **self.get_extra_context(request, obj),
+ },
+ )
+
+
+class InvoiceLineDeleteView(generic.ObjectDeleteView):
+ queryset = InvoiceLine.objects.all()
+
+
+class InvoiceLineBulkImportView(generic.BulkImportView):
+ queryset = InvoiceLine.objects.all()
+ model_form = forms.InvoiceLineImportForm
+ table = tables.InvoiceLineListTable
+
+
+class InvoiceLineBulkEditView(generic.BulkEditView):
+ queryset = InvoiceLine.objects.annotate()
+ filterset = filtersets.InvoiceLineFilterSet
+ table = tables.InvoiceLineListTable
+ form = forms.InvoiceLineBulkEditForm
+
+
+class InvoiceLineBulkDeleteView(generic.BulkDeleteView):
+ queryset = InvoiceLine.objects.annotate()
+ filterset = filtersets.InvoiceLineFilterSet
+ table = tables.InvoiceLineListTable
+
+
+# Accounting dimension
+
+
+class AccountingDimensionView(generic.ObjectView):
+ queryset = AccountingDimension.objects.all()
+
+
+class AccountingDimensionListView(generic.ObjectListView):
+ queryset = AccountingDimension.objects.all()
+ table = tables.AccountingDimensionListTable
+ filterset = filtersets.AccountingDimensionFilterSet
+ filterset_form = forms.AccountingDimensionFilterSetForm
+
+
+class AccountingDimensionEditView(generic.ObjectEditView):
+ queryset = AccountingDimension.objects.all()
+ form = forms.AccountingDimensionForm
+
+
+class AccountingDimensionDeleteView(generic.ObjectDeleteView):
+ queryset = AccountingDimension.objects.all()
+
+
+class AccountingDimensionBulkImportView(generic.BulkImportView):
+ queryset = AccountingDimension.objects.all()
+ model_form = forms.AccountingDimensionImportForm
+ table = tables.AccountingDimensionListTable
+
+
+class AccountingDimensionBulkEditView(generic.BulkEditView):
+ queryset = AccountingDimension.objects.annotate()
+ filterset = filtersets.AccountingDimensionFilterSet
+ table = tables.AccountingDimensionListTable
+ form = forms.AccountingDimensionBulkEditForm
+
+
+class AccountingDimensionBulkDeleteView(generic.BulkDeleteView):
+ queryset = AccountingDimension.objects.annotate()
+ filterset = filtersets.AccountingDimensionFilterSet
+ table = tables.AccountingDimensionListTable
diff --git a/utils/.devcontainer/Dockerfile b/utils/.devcontainer/Dockerfile
new file mode 100644
index 0000000..b0d0919
--- /dev/null
+++ b/utils/.devcontainer/Dockerfile
@@ -0,0 +1,16 @@
+FROM mcr.microsoft.com/devcontainers/python:3.10
+
+ENV PYTHONUNBUFFERED 1
+
+ARG NODE_VERSION="none"
+RUN if [ "${NODE_VERSION}" != "none" ]; then su vscode -c "umask 0002 && . /usr/local/share/nvm/nvm.sh && nvm install ${NODE_VERSION} 2>&1"; fi
+
+# [Optional] If your requirements rarely change, uncomment this section to add them to the image.
+# COPY requirements.txt /tmp/pip-tmp/
+# RUN pip3 --disable-pip-version-check --no-cache-dir install -r /tmp/pip-tmp/requirements.txt \
+# && rm -rf /tmp/pip-tmp
+
+# [Optional] Uncomment this section to install additional OS packages.
+# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
+# && apt-get -y install --no-install-recommends
+
diff --git a/utils/.devcontainer/devcontainer.json b/utils/.devcontainer/devcontainer.json
new file mode 100644
index 0000000..c180636
--- /dev/null
+++ b/utils/.devcontainer/devcontainer.json
@@ -0,0 +1,23 @@
+// Update the VARIANT arg in docker-compose.yml to pick a Python version
+{
+ "name": "Python 3 & PostgreSQL",
+ "dockerComposeFile": "docker-compose.yml",
+ "service": "app",
+ "workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}"
+
+ // Features to add to the dev container. More info: https://containers.dev/implementors/features.
+ // "features": {},
+
+ // Use 'forwardPorts' to make a list of ports inside the container available locally.
+ // This can be used to network with other containers or the host.
+ // "forwardPorts": [5000, 5432],
+
+ // Use 'postCreateCommand' to run commands after the container is created.
+ // "postCreateCommand": "pip install --user -r requirements.txt",
+
+ // Configure tool-specific properties.
+ // "customizations": {},
+
+ // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
+ // "remoteUser": "root"
+}
diff --git a/utils/.devcontainer/docker-compose.yml b/utils/.devcontainer/docker-compose.yml
new file mode 100644
index 0000000..3e8dace
--- /dev/null
+++ b/utils/.devcontainer/docker-compose.yml
@@ -0,0 +1,42 @@
+version: '3.8'
+
+services:
+ app:
+ build:
+ context: ..
+ dockerfile: .devcontainer/Dockerfile
+
+ volumes:
+ - ../..:/workspaces:cached
+
+ # Overrides default command so things don't shut down after the process ends.
+ command: sleep infinity
+
+ # Runs app on the same network as the database container, allows "forwardPorts" in devcontainer.json function.
+ network_mode: service:db
+
+ # Uncomment the next line to use a non-root user for all processes.
+ # user: vscode
+
+ # Use "forwardPorts" in **devcontainer.json** to forward an app port locally.
+ # (Adding the "ports" property to this file will not forward from a Codespace.)
+
+ db:
+ image: postgres:latest
+ restart: unless-stopped
+ volumes:
+ - postgres-data:/var/lib/postgresql/data
+ environment:
+ POSTGRES_USER: postgres
+ POSTGRES_DB: postgres
+ POSTGRES_PASSWORD: postgres
+
+ # Add "forwardPorts": ["5432"] to **devcontainer.json** to forward PostgreSQL locally.
+ # (Adding the "ports" property to this file will not forward from a Codespace.)
+
+ redis:
+ image: redis
+ restart: unless-stopped
+
+volumes:
+ postgres-data:
diff --git a/utils/README.md b/utils/README.md
new file mode 100644
index 0000000..9770166
--- /dev/null
+++ b/utils/README.md
@@ -0,0 +1,236 @@
+# vscode dev environment setup
+## Configure the dev environment
+### create the dev container
+
+Create a netbox folder
+clone your fork of the netbox-contract repository
+Copy the utils/.devcontainer folder to your root directory
+
+Save the workspace definition file to the root of the netbox folder
+File > Save workspace as
+
+Press F1
+Dev Container: Rebuild container and reopen in container
+
+### initialisze the database
+
+Install database package.
+postgresql python adapter [psycopg](https://www.psycopg.org/docs/install.html)
+
+```bash
+pip install psycopg2
+```
+
+Run the initialization script
+
+```bash
+python3 netbox-contract/utils/database_init.py
+```
+
+## Install Netbox
+
+[netbox installtion doc](https://netboxlabs.com/docs/netbox/en/stable/installation/3-netbox/)
+
+### Clone the netbox repository
+
+```bash
+mkdir netbox
+cd netbox
+git clone -b master --depth 1 https://github.com/netbox-community/netbox.git .
+```
+
+You do not need to create the Netbox system user
+
+### generate secret key
+
+```
+python3 netbox/netbox/generate_secret_key.py
+```
+
+update the netbox-contract/utils/netbox-configuration.py with this secret key
+
+### update netbox configuration
+
+```
+cp netbox-contract/utils/netbox-configuration.py netbox/netbox/netbox/configuration.py
+```
+
+### Run the Upgrade Script
+
+```bash
+netbox/upgrade.sh
+```
+
+### Create a Super User
+
+```bash
+source netbox/venv/bin/activate
+python3 netbox/netbox/manage.py createsuperuser
+```
+
+### Test installation
+
+```bash
+python3 netbox/netbox/manage.py runserver
+```
+
+### Install the plugin
+
+For development, install the plugin from the local file system:
+
+ ```bash
+python3 -m pip uninstall netbox-contract
+python3 -m pip install -e netbox-contract
+```
+
+run database migrations:
+
+```bash
+python3 netbox/netbox/manage.py migrate
+```
+
+install pre-commit:
+
+```bash
+cd netbox-contract
+python3 -m pip install pre-commit
+pre-commit install
+```
+
+Test the installation
+
+```bash
+cd ..
+python3 netbox/netbox/manage.py runserver
+```
+
+## Upgrade Netbox
+
+```bash
+cd netbox
+git checkout master
+git pull origin master
+./upgrade.sh
+```
+
+Reinstall the pluggin from the local filesystem (see below).
+
+```bash
+python -m pip install pre-commit
+pre-commit install
+```
+
+## Backup and restore the db
+
+```bash
+pg_dump --username netbox --password --host db netbox > netbox.sql
+```
+
+Restore:
+
+```bash
+psql --host=db --username=postgres --password -c 'drop database netbox'
+psql --host=db --username=postgres --password -c 'create database netbox'
+psql --host=db --username=postgres --password netbox < netbox.sql
+```
+
+## Model changes
+
+Create the migrations:
+
+```bash
+source netbox/venv/bin/activate
+python3 netbox/netbox/manage.py makemigrations netbox_contract --dry-run
+python3 netbox/netbox/manage.py makemigrations netbox_contract
+```
+
+Apply the migrations:
+
+```bash
+source netbox/venv/bin/activate
+python3 netbox/netbox/manage.py migrate
+```
+
+## Generating the distribution archives
+
+Note: This part is now automated with Github Actions.
+Each time a release is created, a new package is created.
+
+Make sure the package version is incremented in the following files.
+- pyproject.toml
+- src/netbox_contract/__init__.py
+
+```bash
+source netbox/venv/bin/activate
+cd netbox-contract
+python3 -m pip install --upgrade build
+python3 -m build
+```
+
+### Update the package in the test pypi repository
+
+```bash
+source netbox/venv/bin/activate
+python3 -m pip install --upgrade pip
+python3 -m pip install --upgrade twine
+python3 -m twine upload --repository testpypi dist/*
+```
+
+### Update the package in the pypi repository
+
+Note: This part is now automated with Github Actions.
+Each time a release is created, a new package is created and uploaded to PyPI.
+
+```bash
+source netbox/venv/bin/activate
+python3 -m pip install --upgrade pip
+python3 -m pip install --upgrade twine
+python3 -m twine upload dist/*
+```
+
+## install the pluggin
+
+For development install from local file system with the "editable" option:
+
+git clone
+
+```bash
+source netbox/venv/bin/activate
+python3 -m pip uninstall netbox-contract
+git clone https://github.com/mlebreuil/netbox-contract.git
+python3 -m pip install -e netbox-contract
+```
+
+from the test respository:
+
+```bash
+source netbox/venv/bin/activate
+python3 -m pip uninstall netbox-contract
+python3 -m pip install --index-url https://test.pypi.org/simple/ --no-deps netbox-contract
+```
+
+From the production repository:
+
+```bash
+source netbox/venv/bin/activate
+python3 -m pip uninstall netbox-contract
+python3 -m pip install netbox-contract
+```
+
+Update netbox configuration
+
+```python
+# configuration.py
+PLUGINS = [
+ 'netbox_contract',
+]
+```
+
+update the database
+
+```bash
+source netbox/venv/bin/activate
+python netbox/netbox/manage.py migrate
+```
+
+
diff --git a/utils/database_init.py b/utils/database_init.py
new file mode 100644
index 0000000..e76b1d9
--- /dev/null
+++ b/utils/database_init.py
@@ -0,0 +1,30 @@
+from psycopg2 import connect, extensions
+
+# Connect to your postgres DB
+conn = connect('host=db user=postgres password=postgres')
+
+# set the isolation level for the connection's cursors
+# will raise ActiveSqlTransaction exception otherwise
+autocommit = extensions.ISOLATION_LEVEL_AUTOCOMMIT
+conn.set_isolation_level(autocommit)
+
+# Open a cursor to perform database operations
+cur = conn.cursor()
+
+# The below 2 lines are required if the database already exists
+# cur.execute('DROP DATABASE netbox;')
+# cur.execute('DROP USER netbox;')
+
+cur.execute('CREATE DATABASE netbox;')
+cur.execute("CREATE USER netbox WITH PASSWORD 'J5brHrAXFLQSif0K';")
+cur.execute('ALTER DATABASE netbox OWNER TO netbox;')
+
+# required on postgres v15 or later
+cur.execute('GRANT CREATE ON SCHEMA public TO netbox;')
+
+# Make the changes to the database persistent
+conn.commit()
+
+# Close communication with the database
+cur.close()
+conn.close()
diff --git a/utils/netbox-configuration-final.py b/utils/netbox-configuration-final.py
new file mode 100644
index 0000000..4ef29c3
--- /dev/null
+++ b/utils/netbox-configuration-final.py
@@ -0,0 +1,238 @@
+#########################
+# #
+# Required settings #
+# #
+#########################
+
+# This is a list of valid fully-qualified domain names (FQDNs) for the NetBox server. NetBox will not permit write
+# access to the server via any other hostnames. The first FQDN in the list will be treated as the preferred name.
+#
+# Example: ALLOWED_HOSTS = ['netbox.example.com', 'netbox.internal.local']
+ALLOWED_HOSTS = ['127.0.0.1']
+
+# PostgreSQL database configuration. See the Django documentation for a complete list of available parameters:
+# https://docs.djangoproject.com/en/stable/ref/settings/#databases
+DATABASE = {
+ 'NAME': 'netbox', # Database name
+ 'USER': 'netbox', # PostgreSQL username
+ 'PASSWORD': 'J5brHrAXFLQSif0K', # PostgreSQL password
+ 'HOST': 'db', # Database server
+ 'PORT': '', # Database port (leave blank for default)
+ 'CONN_MAX_AGE': 300, # Max database connection age
+}
+
+# Redis database settings. Redis is used for caching and for queuing background tasks such as webhook events. A separate
+# configuration exists for each. Full connection details are required in both sections, and it is strongly recommended
+# to use two separate database IDs.
+REDIS = {
+ 'tasks': {
+ 'HOST': 'redis',
+ 'PORT': 6379,
+ # Comment out `HOST` and `PORT` lines and uncomment the following if using Redis Sentinel
+ # 'SENTINELS': [('mysentinel.redis.example.com', 6379)],
+ # 'SENTINEL_SERVICE': 'netbox',
+ 'PASSWORD': '',
+ 'DATABASE': 0,
+ 'SSL': False,
+ # Set this to True to skip TLS certificate verification
+ # This can expose the connection to attacks, be careful
+ # 'INSECURE_SKIP_TLS_VERIFY': False,
+ },
+ 'caching': {
+ 'HOST': 'redis',
+ 'PORT': 6379,
+ # Comment out `HOST` and `PORT` lines and uncomment the following if using Redis Sentinel
+ # 'SENTINELS': [('mysentinel.redis.example.com', 6379)],
+ # 'SENTINEL_SERVICE': 'netbox',
+ 'PASSWORD': '',
+ 'DATABASE': 1,
+ 'SSL': False,
+ # Set this to True to skip TLS certificate verification
+ # This can expose the connection to attacks, be careful
+ # 'INSECURE_SKIP_TLS_VERIFY': False,
+ },
+}
+
+# This key is used for secure generation of random numbers and strings. It must never be exposed outside of this file.
+# For optimal security, SECRET_KEY should be at least 50 characters in length and contain a mix of letters, numbers, and
+# symbols. NetBox will not run without this defined. For more information, see
+# https://docs.djangoproject.com/en/stable/ref/settings/#std:setting-SECRET_KEY
+SECRET_KEY = 'z(DvJ7Q0)8k)ch9xaQZueQxyfs&&gZ38-oe7jQh&0^KlPU^Yqc'
+
+
+#########################
+# #
+# Optional settings #
+# #
+#########################
+
+# Specify one or more name and email address tuples representing NetBox administrators. These people will be notified of
+# application errors (assuming correct email settings are provided).
+ADMINS = [
+ # ('John Doe', 'jdoe@example.com'),
+]
+
+# Enable any desired validators for local account passwords below. For a list of included validators, please see the
+# Django documentation at https://docs.djangoproject.com/en/stable/topics/auth/passwords/#password-validation.
+AUTH_PASSWORD_VALIDATORS = [
+ # {
+ # 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
+ # 'OPTIONS': {
+ # 'min_length': 10,
+ # }
+ # },
+]
+
+# Base URL path if accessing NetBox within a directory. For example, if installed at https://example.com/netbox/, set:
+# BASE_PATH = 'netbox/'
+BASE_PATH = ''
+
+# API Cross-Origin Resource Sharing (CORS) settings. If CORS_ORIGIN_ALLOW_ALL is set to True, all origins will be
+# allowed. Otherwise, define a list of allowed origins using either CORS_ORIGIN_WHITELIST or
+# CORS_ORIGIN_REGEX_WHITELIST. For more information, see https://github.com/ottoyiu/django-cors-headers
+CORS_ORIGIN_ALLOW_ALL = False
+CORS_ORIGIN_WHITELIST = [
+ # 'https://hostname.example.com',
+]
+CORS_ORIGIN_REGEX_WHITELIST = [
+ # r'^(https?://)?(\w+\.)?example\.com$',
+]
+
+# Set to True to enable server debugging. WARNING: Debugging introduces a substantial performance penalty and may reveal
+# sensitive information about your installation. Only enable debugging while performing testing. Never enable debugging
+# on a production system.
+DEBUG = True
+
+DEVELOPER = True
+
+# Email settings
+EMAIL = {
+ 'SERVER': 'localhost',
+ 'PORT': 25,
+ 'USERNAME': '',
+ 'PASSWORD': '',
+ 'USE_SSL': False,
+ 'USE_TLS': False,
+ 'TIMEOUT': 10, # seconds
+ 'FROM_EMAIL': '',
+}
+
+# Exempt certain models from the enforcement of view permissions. Models listed here will be viewable by all users and
+# by anonymous users. List models in the form `.`. Add '*' to this list to exempt all models.
+EXEMPT_VIEW_PERMISSIONS = [
+ # 'dcim.site',
+ # 'dcim.region',
+ # 'ipam.prefix',
+]
+
+# HTTP proxies NetBox should use when sending outbound HTTP requests (e.g. for webhooks).
+# HTTP_PROXIES = {
+# 'http': 'http://10.10.1.10:3128',
+# 'https': 'http://10.10.1.10:1080',
+# }
+
+# IP addresses recognized as internal to the system. The debugging toolbar will be available only to clients accessing
+# NetBox from an internal IP.
+INTERNAL_IPS = ('127.0.0.1', '::1')
+
+# Enable custom logging. Please see the Django documentation for detailed guidance on configuring custom logs:
+# https://docs.djangoproject.com/en/stable/topics/logging/
+LOGGING = {}
+
+# Automatically reset the lifetime of a valid session upon each authenticated request. Enables users to remain
+# authenticated to NetBox indefinitely.
+LOGIN_PERSISTENCE = False
+
+# Setting this to True will permit only authenticated users to access any part of NetBox. By default, anonymous users
+# are permitted to access most data in NetBox but not make any changes.
+LOGIN_REQUIRED = False
+
+# The length of time (in seconds) for which a user will remain logged into the web UI before being prompted to
+# re-authenticate. (Default: 1209600 [14 days])
+LOGIN_TIMEOUT = None
+
+# The file path where uploaded media such as image attachments are stored. A trailing slash is not needed. Note that
+# the default value of this setting is derived from the installed location.
+# MEDIA_ROOT = '/opt/netbox/netbox/media'
+
+# By default uploaded media is stored on the local filesystem. Using Django-storages is also supported. Provide the
+# class path of the storage driver in STORAGE_BACKEND and any configuration options in STORAGE_CONFIG. For example:
+# STORAGE_BACKEND = 'storages.backends.s3boto3.S3Boto3Storage'
+# STORAGE_CONFIG = {
+# 'AWS_ACCESS_KEY_ID': 'Key ID',
+# 'AWS_SECRET_ACCESS_KEY': 'Secret',
+# 'AWS_STORAGE_BUCKET_NAME': 'netbox',
+# 'AWS_S3_REGION_NAME': 'eu-west-1',
+# }
+
+# Expose Prometheus monitoring metrics at the HTTP endpoint '/metrics'
+METRICS_ENABLED = False
+
+# Enable installed plugins. Add the name of each plugin to the list.
+PLUGINS = [
+ 'netbox_contract',
+]
+
+# Plugins configuration settings. These settings are used by various plugins that the user may have installed.
+# Each key in the dictionary is the name of an installed plugin and its value is a dictionary of settings.
+PLUGINS_CONFIG = {
+ 'netbox_contract': {
+ 'top_level_menu': True,
+ 'default_accounting_dimensions': {
+ 'account': '',
+ 'project': '',
+ 'cost center': '',
+ },
+ 'mandatory_contract_fields': ['accounting_dimensions'],
+ 'hidden_contract_fields': [],
+ 'mandatory_invoice_fields': ['accounting_dimensions'],
+ 'hidden_invoice_fields': [],
+ }
+}
+
+# Remote authentication support
+REMOTE_AUTH_ENABLED = False
+REMOTE_AUTH_BACKEND = 'netbox.authentication.RemoteUserBackend'
+REMOTE_AUTH_HEADER = 'HTTP_REMOTE_USER'
+REMOTE_AUTH_AUTO_CREATE_USER = True
+REMOTE_AUTH_DEFAULT_GROUPS = []
+REMOTE_AUTH_DEFAULT_PERMISSIONS = {}
+
+# This repository is used to check whether there is a new release of NetBox available. Set to None to disable the
+# version check or use the URL below to check for release in the official NetBox repository.
+RELEASE_CHECK_URL = None
+# RELEASE_CHECK_URL = 'https://api.github.com/repos/netbox-community/netbox/releases'
+
+# The file path where custom reports will be stored. A trailing slash is not needed. Note that the default value of
+# this setting is derived from the installed location.
+# REPORTS_ROOT = '/opt/netbox/netbox/reports'
+
+# Maximum execution time for background tasks, in seconds.
+RQ_DEFAULT_TIMEOUT = 300
+
+# The file path where custom scripts will be stored. A trailing slash is not needed. Note that the default value of
+# this setting is derived from the installed location.
+# SCRIPTS_ROOT = '/opt/netbox/netbox/scripts'
+
+# The name to use for the csrf token cookie.
+CSRF_COOKIE_NAME = 'csrftoken'
+
+# The name to use for the session cookie.
+SESSION_COOKIE_NAME = 'sessionid'
+
+# By default, NetBox will store session data in the database. Alternatively, a file path can be specified here to use
+# local file storage instead. (This can be useful for enabling authentication on a standby instance with read-only
+# database access.) Note that the user as which NetBox runs must have read and write permissions to this path.
+SESSION_FILE_PATH = None
+
+# Time zone (default: UTC)
+TIME_ZONE = 'UTC'
+
+# Date/time formatting. See the following link for supported formats:
+# https://docs.djangoproject.com/en/stable/ref/templates/builtins/#date
+DATE_FORMAT = 'N j, Y'
+SHORT_DATE_FORMAT = 'Y-m-d'
+TIME_FORMAT = 'g:i a'
+SHORT_TIME_FORMAT = 'H:i:s'
+DATETIME_FORMAT = 'N j, Y g:i a'
+SHORT_DATETIME_FORMAT = 'Y-m-d H:i'
diff --git a/netbox-configuration.py b/utils/netbox-configuration.py
similarity index 99%
rename from netbox-configuration.py
rename to utils/netbox-configuration.py
index 6d783ba..794a1c3 100644
--- a/netbox-configuration.py
+++ b/utils/netbox-configuration.py
@@ -57,7 +57,7 @@
# For optimal security, SECRET_KEY should be at least 50 characters in length and contain a mix of letters, numbers, and
# symbols. NetBox will not run without this defined. For more information, see
# https://docs.djangoproject.com/en/stable/ref/settings/#std:setting-SECRET_KEY
-SECRET_KEY = 'mNiCp)$_q^XKAPmaOARwu_ytW)Q$5ukOsHH#LqbOUQPeJu&fO!'
+SECRET_KEY = 'z(DvJ7Q0)8k)ch9xaQZueQxyfs&&gZ38-oe7jQh&0^KlPU^Yqc'
#########################
diff --git a/utils/netbox.sql b/utils/netbox.sql
new file mode 100644
index 0000000..cd974d6
--- /dev/null
+++ b/utils/netbox.sql
@@ -0,0 +1,19253 @@
+--
+-- PostgreSQL database dump
+--
+
+-- Dumped from database version 13.2 (Debian 13.2-1.pgdg100+1)
+-- Dumped by pg_dump version 13.8 (Debian 13.8-0+deb11u1)
+
+SET statement_timeout = 0;
+SET lock_timeout = 0;
+SET idle_in_transaction_session_timeout = 0;
+SET client_encoding = 'UTF8';
+SET standard_conforming_strings = on;
+SELECT pg_catalog.set_config('search_path', '', false);
+SET check_function_bodies = false;
+SET xmloption = content;
+SET client_min_messages = warning;
+SET row_security = off;
+
+SET default_tablespace = '';
+
+SET default_table_access_method = heap;
+
+--
+-- Name: auth_group; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.auth_group (
+ id integer NOT NULL,
+ name character varying(150) NOT NULL
+);
+
+
+ALTER TABLE public.auth_group OWNER TO netbox;
+
+--
+-- Name: auth_group_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.auth_group ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.auth_group_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: auth_group_permissions; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.auth_group_permissions (
+ id bigint NOT NULL,
+ group_id integer NOT NULL,
+ permission_id integer NOT NULL
+);
+
+
+ALTER TABLE public.auth_group_permissions OWNER TO netbox;
+
+--
+-- Name: auth_group_permissions_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.auth_group_permissions ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.auth_group_permissions_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: auth_permission; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.auth_permission (
+ id integer NOT NULL,
+ name character varying(255) NOT NULL,
+ content_type_id integer NOT NULL,
+ codename character varying(100) NOT NULL
+);
+
+
+ALTER TABLE public.auth_permission OWNER TO netbox;
+
+--
+-- Name: auth_permission_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.auth_permission ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.auth_permission_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: auth_user; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.auth_user (
+ id integer NOT NULL,
+ password character varying(128) NOT NULL,
+ last_login timestamp with time zone,
+ is_superuser boolean NOT NULL,
+ username character varying(150) NOT NULL,
+ first_name character varying(150) NOT NULL,
+ last_name character varying(150) NOT NULL,
+ email character varying(254) NOT NULL,
+ is_staff boolean NOT NULL,
+ is_active boolean NOT NULL,
+ date_joined timestamp with time zone NOT NULL
+);
+
+
+ALTER TABLE public.auth_user OWNER TO netbox;
+
+--
+-- Name: auth_user_groups; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.auth_user_groups (
+ id bigint NOT NULL,
+ user_id integer NOT NULL,
+ group_id integer NOT NULL
+);
+
+
+ALTER TABLE public.auth_user_groups OWNER TO netbox;
+
+--
+-- Name: auth_user_groups_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.auth_user_groups ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.auth_user_groups_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: auth_user_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.auth_user ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.auth_user_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: auth_user_user_permissions; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.auth_user_user_permissions (
+ id bigint NOT NULL,
+ user_id integer NOT NULL,
+ permission_id integer NOT NULL
+);
+
+
+ALTER TABLE public.auth_user_user_permissions OWNER TO netbox;
+
+--
+-- Name: auth_user_user_permissions_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.auth_user_user_permissions ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.auth_user_user_permissions_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: circuits_circuit; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.circuits_circuit (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ id bigint NOT NULL,
+ cid character varying(100) NOT NULL,
+ status character varying(50) NOT NULL,
+ install_date date,
+ commit_rate integer,
+ description character varying(200) NOT NULL,
+ comments text NOT NULL,
+ provider_id bigint NOT NULL,
+ tenant_id bigint,
+ termination_a_id bigint,
+ termination_z_id bigint,
+ type_id bigint NOT NULL,
+ termination_date date,
+ provider_account_id bigint,
+ CONSTRAINT circuits_circuit_commit_rate_check CHECK ((commit_rate >= 0))
+);
+
+
+ALTER TABLE public.circuits_circuit OWNER TO netbox;
+
+--
+-- Name: circuits_circuit_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.circuits_circuit ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.circuits_circuit_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: circuits_circuittermination; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.circuits_circuittermination (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ id bigint NOT NULL,
+ mark_connected boolean NOT NULL,
+ term_side character varying(1) NOT NULL,
+ port_speed integer,
+ upstream_speed integer,
+ xconnect_id character varying(50) NOT NULL,
+ pp_info character varying(100) NOT NULL,
+ description character varying(200) NOT NULL,
+ cable_id bigint,
+ circuit_id bigint NOT NULL,
+ provider_network_id bigint,
+ site_id bigint,
+ custom_field_data jsonb NOT NULL,
+ cable_end character varying(1) NOT NULL,
+ CONSTRAINT circuits_circuittermination_port_speed_check CHECK ((port_speed >= 0)),
+ CONSTRAINT circuits_circuittermination_upstream_speed_check CHECK ((upstream_speed >= 0))
+);
+
+
+ALTER TABLE public.circuits_circuittermination OWNER TO netbox;
+
+--
+-- Name: circuits_circuittermination_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.circuits_circuittermination ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.circuits_circuittermination_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: circuits_circuittype; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.circuits_circuittype (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ id bigint NOT NULL,
+ name character varying(100) NOT NULL,
+ slug character varying(100) NOT NULL,
+ description character varying(200) NOT NULL,
+ color character varying(6) NOT NULL
+);
+
+
+ALTER TABLE public.circuits_circuittype OWNER TO netbox;
+
+--
+-- Name: circuits_circuittype_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.circuits_circuittype ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.circuits_circuittype_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: circuits_provider; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.circuits_provider (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ id bigint NOT NULL,
+ name character varying(100) NOT NULL,
+ slug character varying(100) NOT NULL,
+ comments text NOT NULL,
+ description character varying(200) NOT NULL
+);
+
+
+ALTER TABLE public.circuits_provider OWNER TO netbox;
+
+--
+-- Name: circuits_provider_asns; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.circuits_provider_asns (
+ id bigint NOT NULL,
+ provider_id bigint NOT NULL,
+ asn_id bigint NOT NULL
+);
+
+
+ALTER TABLE public.circuits_provider_asns OWNER TO netbox;
+
+--
+-- Name: circuits_provider_asns_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.circuits_provider_asns ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.circuits_provider_asns_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: circuits_provider_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.circuits_provider ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.circuits_provider_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: circuits_provideraccount; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.circuits_provideraccount (
+ id bigint NOT NULL,
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ description character varying(200) NOT NULL,
+ comments text NOT NULL,
+ account character varying(100) NOT NULL,
+ name character varying(100) NOT NULL,
+ provider_id bigint NOT NULL
+);
+
+
+ALTER TABLE public.circuits_provideraccount OWNER TO netbox;
+
+--
+-- Name: circuits_provideraccount_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.circuits_provideraccount ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.circuits_provideraccount_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: circuits_providernetwork; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.circuits_providernetwork (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ id bigint NOT NULL,
+ name character varying(100) NOT NULL,
+ description character varying(200) NOT NULL,
+ comments text NOT NULL,
+ provider_id bigint NOT NULL,
+ service_id character varying(100) NOT NULL
+);
+
+
+ALTER TABLE public.circuits_providernetwork OWNER TO netbox;
+
+--
+-- Name: circuits_providernetwork_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.circuits_providernetwork ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.circuits_providernetwork_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: core_autosyncrecord; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.core_autosyncrecord (
+ id bigint NOT NULL,
+ object_id bigint NOT NULL,
+ datafile_id bigint NOT NULL,
+ object_type_id integer NOT NULL,
+ CONSTRAINT core_autosyncrecord_object_id_check CHECK ((object_id >= 0))
+);
+
+
+ALTER TABLE public.core_autosyncrecord OWNER TO netbox;
+
+--
+-- Name: core_autosyncrecord_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.core_autosyncrecord ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.core_autosyncrecord_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: core_configrevision; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.core_configrevision (
+ id bigint NOT NULL,
+ created timestamp with time zone NOT NULL,
+ comment character varying(200) NOT NULL,
+ data jsonb
+);
+
+
+ALTER TABLE public.core_configrevision OWNER TO netbox;
+
+--
+-- Name: core_datafile; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.core_datafile (
+ id bigint NOT NULL,
+ created timestamp with time zone NOT NULL,
+ last_updated timestamp with time zone NOT NULL,
+ path character varying(1000) NOT NULL,
+ size integer NOT NULL,
+ hash character varying(64) NOT NULL,
+ data bytea NOT NULL,
+ source_id bigint NOT NULL,
+ CONSTRAINT core_datafile_size_check CHECK ((size >= 0))
+);
+
+
+ALTER TABLE public.core_datafile OWNER TO netbox;
+
+--
+-- Name: core_datafile_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.core_datafile ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.core_datafile_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: core_datasource; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.core_datasource (
+ id bigint NOT NULL,
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ description character varying(200) NOT NULL,
+ comments text NOT NULL,
+ name character varying(100) NOT NULL,
+ type character varying(50) NOT NULL,
+ source_url character varying(200) NOT NULL,
+ status character varying(50) NOT NULL,
+ enabled boolean NOT NULL,
+ ignore_rules text NOT NULL,
+ parameters jsonb,
+ last_synced timestamp with time zone
+);
+
+
+ALTER TABLE public.core_datasource OWNER TO netbox;
+
+--
+-- Name: core_datasource_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.core_datasource ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.core_datasource_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: core_job; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.core_job (
+ id bigint NOT NULL,
+ object_id bigint,
+ name character varying(200) NOT NULL,
+ created timestamp with time zone NOT NULL,
+ scheduled timestamp with time zone,
+ "interval" integer,
+ started timestamp with time zone,
+ completed timestamp with time zone,
+ status character varying(30) NOT NULL,
+ data jsonb,
+ job_id uuid NOT NULL,
+ object_type_id integer NOT NULL,
+ user_id integer,
+ error text NOT NULL,
+ CONSTRAINT core_job_interval_check CHECK (("interval" >= 0)),
+ CONSTRAINT core_job_object_id_check CHECK ((object_id >= 0))
+);
+
+
+ALTER TABLE public.core_job OWNER TO netbox;
+
+--
+-- Name: core_job_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.core_job ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.core_job_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: core_managedfile; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.core_managedfile (
+ id bigint NOT NULL,
+ data_path character varying(1000) NOT NULL,
+ data_synced timestamp with time zone,
+ created timestamp with time zone NOT NULL,
+ last_updated timestamp with time zone,
+ file_root character varying(1000) NOT NULL,
+ file_path character varying(100) NOT NULL,
+ data_file_id bigint,
+ data_source_id bigint,
+ auto_sync_enabled boolean NOT NULL
+);
+
+
+ALTER TABLE public.core_managedfile OWNER TO netbox;
+
+--
+-- Name: core_managedfile_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.core_managedfile ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.core_managedfile_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: dcim_cable; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.dcim_cable (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ id bigint NOT NULL,
+ type character varying(50) NOT NULL,
+ status character varying(50) NOT NULL,
+ label character varying(100) NOT NULL,
+ color character varying(6) NOT NULL,
+ length numeric(8,2),
+ length_unit character varying(50) NOT NULL,
+ _abs_length numeric(10,4),
+ tenant_id bigint,
+ comments text NOT NULL,
+ description character varying(200) NOT NULL
+);
+
+
+ALTER TABLE public.dcim_cable OWNER TO netbox;
+
+--
+-- Name: dcim_cable_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.dcim_cable ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.dcim_cable_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: dcim_cablepath; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.dcim_cablepath (
+ id bigint NOT NULL,
+ _nodes character varying(40)[] NOT NULL,
+ is_active boolean NOT NULL,
+ is_split boolean NOT NULL,
+ path jsonb NOT NULL,
+ is_complete boolean NOT NULL
+);
+
+
+ALTER TABLE public.dcim_cablepath OWNER TO netbox;
+
+--
+-- Name: dcim_cablepath_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.dcim_cablepath ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.dcim_cablepath_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: dcim_cabletermination; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.dcim_cabletermination (
+ id bigint NOT NULL,
+ cable_end character varying(1) NOT NULL,
+ termination_id bigint NOT NULL,
+ cable_id bigint NOT NULL,
+ termination_type_id integer NOT NULL,
+ _device_id bigint,
+ _rack_id bigint,
+ _location_id bigint,
+ _site_id bigint,
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ CONSTRAINT dcim_cabletermination_termination_id_check CHECK ((termination_id >= 0))
+);
+
+
+ALTER TABLE public.dcim_cabletermination OWNER TO netbox;
+
+--
+-- Name: dcim_cabletermination_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.dcim_cabletermination ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.dcim_cabletermination_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: dcim_consoleport; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.dcim_consoleport (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ id bigint NOT NULL,
+ name character varying(64) NOT NULL,
+ _name character varying(100) NOT NULL,
+ label character varying(64) NOT NULL,
+ description character varying(200) NOT NULL,
+ mark_connected boolean NOT NULL,
+ type character varying(50) NOT NULL,
+ speed integer,
+ _path_id bigint,
+ cable_id bigint,
+ device_id bigint NOT NULL,
+ module_id bigint,
+ cable_end character varying(1) NOT NULL,
+ CONSTRAINT dcim_consoleport_speed_check CHECK ((speed >= 0))
+);
+
+
+ALTER TABLE public.dcim_consoleport OWNER TO netbox;
+
+--
+-- Name: dcim_consoleport_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.dcim_consoleport ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.dcim_consoleport_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: dcim_consoleporttemplate; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.dcim_consoleporttemplate (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ id bigint NOT NULL,
+ name character varying(64) NOT NULL,
+ _name character varying(100) NOT NULL,
+ label character varying(64) NOT NULL,
+ description character varying(200) NOT NULL,
+ type character varying(50) NOT NULL,
+ device_type_id bigint,
+ module_type_id bigint
+);
+
+
+ALTER TABLE public.dcim_consoleporttemplate OWNER TO netbox;
+
+--
+-- Name: dcim_consoleporttemplate_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.dcim_consoleporttemplate ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.dcim_consoleporttemplate_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: dcim_consoleserverport; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.dcim_consoleserverport (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ id bigint NOT NULL,
+ name character varying(64) NOT NULL,
+ _name character varying(100) NOT NULL,
+ label character varying(64) NOT NULL,
+ description character varying(200) NOT NULL,
+ mark_connected boolean NOT NULL,
+ type character varying(50) NOT NULL,
+ speed integer,
+ _path_id bigint,
+ cable_id bigint,
+ device_id bigint NOT NULL,
+ module_id bigint,
+ cable_end character varying(1) NOT NULL,
+ CONSTRAINT dcim_consoleserverport_speed_check CHECK ((speed >= 0))
+);
+
+
+ALTER TABLE public.dcim_consoleserverport OWNER TO netbox;
+
+--
+-- Name: dcim_consoleserverport_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.dcim_consoleserverport ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.dcim_consoleserverport_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: dcim_consoleserverporttemplate; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.dcim_consoleserverporttemplate (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ id bigint NOT NULL,
+ name character varying(64) NOT NULL,
+ _name character varying(100) NOT NULL,
+ label character varying(64) NOT NULL,
+ description character varying(200) NOT NULL,
+ type character varying(50) NOT NULL,
+ device_type_id bigint,
+ module_type_id bigint
+);
+
+
+ALTER TABLE public.dcim_consoleserverporttemplate OWNER TO netbox;
+
+--
+-- Name: dcim_consoleserverporttemplate_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.dcim_consoleserverporttemplate ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.dcim_consoleserverporttemplate_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: dcim_device; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.dcim_device (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ id bigint NOT NULL,
+ local_context_data jsonb,
+ name character varying(64),
+ _name character varying(100),
+ serial character varying(50) NOT NULL,
+ asset_tag character varying(50),
+ "position" numeric(4,1),
+ face character varying(50) NOT NULL,
+ status character varying(50) NOT NULL,
+ vc_position smallint,
+ vc_priority smallint,
+ comments text NOT NULL,
+ cluster_id bigint,
+ role_id bigint NOT NULL,
+ device_type_id bigint NOT NULL,
+ location_id bigint,
+ platform_id bigint,
+ primary_ip4_id bigint,
+ primary_ip6_id bigint,
+ rack_id bigint,
+ site_id bigint NOT NULL,
+ tenant_id bigint,
+ virtual_chassis_id bigint,
+ airflow character varying(50) NOT NULL,
+ description character varying(200) NOT NULL,
+ config_template_id bigint,
+ latitude numeric(8,6),
+ longitude numeric(9,6),
+ oob_ip_id bigint,
+ console_port_count bigint NOT NULL,
+ console_server_port_count bigint NOT NULL,
+ power_port_count bigint NOT NULL,
+ power_outlet_count bigint NOT NULL,
+ interface_count bigint NOT NULL,
+ front_port_count bigint NOT NULL,
+ rear_port_count bigint NOT NULL,
+ device_bay_count bigint NOT NULL,
+ module_bay_count bigint NOT NULL,
+ inventory_item_count bigint NOT NULL,
+ CONSTRAINT dcim_device_vc_position_check CHECK ((vc_position >= 0)),
+ CONSTRAINT dcim_device_vc_priority_check CHECK ((vc_priority >= 0))
+);
+
+
+ALTER TABLE public.dcim_device OWNER TO netbox;
+
+--
+-- Name: dcim_device_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.dcim_device ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.dcim_device_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: dcim_devicebay; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.dcim_devicebay (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ id bigint NOT NULL,
+ name character varying(64) NOT NULL,
+ _name character varying(100) NOT NULL,
+ label character varying(64) NOT NULL,
+ description character varying(200) NOT NULL,
+ device_id bigint NOT NULL,
+ installed_device_id bigint
+);
+
+
+ALTER TABLE public.dcim_devicebay OWNER TO netbox;
+
+--
+-- Name: dcim_devicebay_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.dcim_devicebay ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.dcim_devicebay_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: dcim_devicebaytemplate; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.dcim_devicebaytemplate (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ id bigint NOT NULL,
+ name character varying(64) NOT NULL,
+ _name character varying(100) NOT NULL,
+ label character varying(64) NOT NULL,
+ description character varying(200) NOT NULL,
+ device_type_id bigint NOT NULL
+);
+
+
+ALTER TABLE public.dcim_devicebaytemplate OWNER TO netbox;
+
+--
+-- Name: dcim_devicebaytemplate_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.dcim_devicebaytemplate ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.dcim_devicebaytemplate_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: dcim_devicerole; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.dcim_devicerole (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ id bigint NOT NULL,
+ name character varying(100) NOT NULL,
+ slug character varying(100) NOT NULL,
+ color character varying(6) NOT NULL,
+ vm_role boolean NOT NULL,
+ description character varying(200) NOT NULL,
+ config_template_id bigint
+);
+
+
+ALTER TABLE public.dcim_devicerole OWNER TO netbox;
+
+--
+-- Name: dcim_devicerole_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.dcim_devicerole ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.dcim_devicerole_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: dcim_devicetype; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.dcim_devicetype (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ id bigint NOT NULL,
+ model character varying(100) NOT NULL,
+ slug character varying(100) NOT NULL,
+ part_number character varying(50) NOT NULL,
+ u_height numeric(4,1) NOT NULL,
+ is_full_depth boolean NOT NULL,
+ subdevice_role character varying(50) NOT NULL,
+ front_image character varying(100) NOT NULL,
+ rear_image character varying(100) NOT NULL,
+ comments text NOT NULL,
+ manufacturer_id bigint NOT NULL,
+ airflow character varying(50) NOT NULL,
+ weight numeric(8,2),
+ weight_unit character varying(50) NOT NULL,
+ _abs_weight bigint,
+ description character varying(200) NOT NULL,
+ default_platform_id bigint,
+ console_port_template_count bigint NOT NULL,
+ console_server_port_template_count bigint NOT NULL,
+ power_port_template_count bigint NOT NULL,
+ power_outlet_template_count bigint NOT NULL,
+ interface_template_count bigint NOT NULL,
+ front_port_template_count bigint NOT NULL,
+ rear_port_template_count bigint NOT NULL,
+ device_bay_template_count bigint NOT NULL,
+ module_bay_template_count bigint NOT NULL,
+ inventory_item_template_count bigint NOT NULL,
+ exclude_from_utilization boolean NOT NULL,
+ CONSTRAINT dcim_devicetype__abs_weight_check CHECK ((_abs_weight >= 0))
+);
+
+
+ALTER TABLE public.dcim_devicetype OWNER TO netbox;
+
+--
+-- Name: dcim_devicetype_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.dcim_devicetype ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.dcim_devicetype_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: dcim_frontport; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.dcim_frontport (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ id bigint NOT NULL,
+ name character varying(64) NOT NULL,
+ _name character varying(100) NOT NULL,
+ label character varying(64) NOT NULL,
+ description character varying(200) NOT NULL,
+ mark_connected boolean NOT NULL,
+ type character varying(50) NOT NULL,
+ rear_port_position smallint NOT NULL,
+ cable_id bigint,
+ device_id bigint NOT NULL,
+ rear_port_id bigint NOT NULL,
+ color character varying(6) NOT NULL,
+ module_id bigint,
+ cable_end character varying(1) NOT NULL,
+ CONSTRAINT dcim_frontport_rear_port_position_check CHECK ((rear_port_position >= 0))
+);
+
+
+ALTER TABLE public.dcim_frontport OWNER TO netbox;
+
+--
+-- Name: dcim_frontport_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.dcim_frontport ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.dcim_frontport_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: dcim_frontporttemplate; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.dcim_frontporttemplate (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ id bigint NOT NULL,
+ name character varying(64) NOT NULL,
+ _name character varying(100) NOT NULL,
+ label character varying(64) NOT NULL,
+ description character varying(200) NOT NULL,
+ type character varying(50) NOT NULL,
+ rear_port_position smallint NOT NULL,
+ device_type_id bigint,
+ rear_port_id bigint NOT NULL,
+ color character varying(6) NOT NULL,
+ module_type_id bigint,
+ CONSTRAINT dcim_frontporttemplate_rear_port_position_check CHECK ((rear_port_position >= 0))
+);
+
+
+ALTER TABLE public.dcim_frontporttemplate OWNER TO netbox;
+
+--
+-- Name: dcim_frontporttemplate_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.dcim_frontporttemplate ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.dcim_frontporttemplate_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: dcim_interface; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.dcim_interface (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ id bigint NOT NULL,
+ name character varying(64) NOT NULL,
+ label character varying(64) NOT NULL,
+ description character varying(200) NOT NULL,
+ mark_connected boolean NOT NULL,
+ enabled boolean NOT NULL,
+ mac_address macaddr,
+ mtu integer,
+ mode character varying(50) NOT NULL,
+ _name character varying(100) NOT NULL,
+ type character varying(50) NOT NULL,
+ mgmt_only boolean NOT NULL,
+ _path_id bigint,
+ cable_id bigint,
+ device_id bigint NOT NULL,
+ lag_id bigint,
+ parent_id bigint,
+ untagged_vlan_id bigint,
+ wwn macaddr8,
+ bridge_id bigint,
+ rf_role character varying(30) NOT NULL,
+ rf_channel character varying(50) NOT NULL,
+ rf_channel_frequency numeric(7,2),
+ rf_channel_width numeric(7,3),
+ tx_power smallint,
+ wireless_link_id bigint,
+ module_id bigint,
+ vrf_id bigint,
+ duplex character varying(50),
+ speed integer,
+ poe_mode character varying(50) NOT NULL,
+ poe_type character varying(50) NOT NULL,
+ cable_end character varying(1) NOT NULL,
+ CONSTRAINT dcim_interface_mtu_check CHECK ((mtu >= 0)),
+ CONSTRAINT dcim_interface_speed_check CHECK ((speed >= 0)),
+ CONSTRAINT dcim_interface_tx_power_check CHECK ((tx_power >= 0))
+);
+
+
+ALTER TABLE public.dcim_interface OWNER TO netbox;
+
+--
+-- Name: dcim_interface_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.dcim_interface ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.dcim_interface_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: dcim_interface_tagged_vlans; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.dcim_interface_tagged_vlans (
+ id bigint NOT NULL,
+ interface_id bigint NOT NULL,
+ vlan_id bigint NOT NULL
+);
+
+
+ALTER TABLE public.dcim_interface_tagged_vlans OWNER TO netbox;
+
+--
+-- Name: dcim_interface_tagged_vlans_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.dcim_interface_tagged_vlans ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.dcim_interface_tagged_vlans_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: dcim_interface_vdcs; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.dcim_interface_vdcs (
+ id bigint NOT NULL,
+ interface_id bigint NOT NULL,
+ virtualdevicecontext_id bigint NOT NULL
+);
+
+
+ALTER TABLE public.dcim_interface_vdcs OWNER TO netbox;
+
+--
+-- Name: dcim_interface_vdcs_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.dcim_interface_vdcs ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.dcim_interface_vdcs_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: dcim_interface_wireless_lans; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.dcim_interface_wireless_lans (
+ id bigint NOT NULL,
+ interface_id bigint NOT NULL,
+ wirelesslan_id bigint NOT NULL
+);
+
+
+ALTER TABLE public.dcim_interface_wireless_lans OWNER TO netbox;
+
+--
+-- Name: dcim_interface_wireless_lans_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.dcim_interface_wireless_lans ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.dcim_interface_wireless_lans_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: dcim_interfacetemplate; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.dcim_interfacetemplate (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ id bigint NOT NULL,
+ name character varying(64) NOT NULL,
+ label character varying(64) NOT NULL,
+ description character varying(200) NOT NULL,
+ _name character varying(100) NOT NULL,
+ type character varying(50) NOT NULL,
+ mgmt_only boolean NOT NULL,
+ device_type_id bigint,
+ module_type_id bigint,
+ poe_mode character varying(50) NOT NULL,
+ poe_type character varying(50) NOT NULL,
+ enabled boolean NOT NULL,
+ bridge_id bigint,
+ rf_role character varying(30) NOT NULL
+);
+
+
+ALTER TABLE public.dcim_interfacetemplate OWNER TO netbox;
+
+--
+-- Name: dcim_interfacetemplate_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.dcim_interfacetemplate ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.dcim_interfacetemplate_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: dcim_inventoryitem; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.dcim_inventoryitem (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ id bigint NOT NULL,
+ name character varying(64) NOT NULL,
+ _name character varying(100) NOT NULL,
+ label character varying(64) NOT NULL,
+ description character varying(200) NOT NULL,
+ part_id character varying(50) NOT NULL,
+ serial character varying(50) NOT NULL,
+ asset_tag character varying(50),
+ discovered boolean NOT NULL,
+ lft integer NOT NULL,
+ rght integer NOT NULL,
+ tree_id integer NOT NULL,
+ level integer NOT NULL,
+ device_id bigint NOT NULL,
+ manufacturer_id bigint,
+ parent_id bigint,
+ role_id bigint,
+ component_id bigint,
+ component_type_id integer,
+ CONSTRAINT dcim_inventoryitem_component_id_check CHECK ((component_id >= 0)),
+ CONSTRAINT dcim_inventoryitem_level_check CHECK ((level >= 0)),
+ CONSTRAINT dcim_inventoryitem_lft_check CHECK ((lft >= 0)),
+ CONSTRAINT dcim_inventoryitem_rght_check CHECK ((rght >= 0)),
+ CONSTRAINT dcim_inventoryitem_tree_id_check CHECK ((tree_id >= 0))
+);
+
+
+ALTER TABLE public.dcim_inventoryitem OWNER TO netbox;
+
+--
+-- Name: dcim_inventoryitem_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.dcim_inventoryitem ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.dcim_inventoryitem_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: dcim_inventoryitemrole; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.dcim_inventoryitemrole (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ id bigint NOT NULL,
+ name character varying(100) NOT NULL,
+ slug character varying(100) NOT NULL,
+ color character varying(6) NOT NULL,
+ description character varying(200) NOT NULL
+);
+
+
+ALTER TABLE public.dcim_inventoryitemrole OWNER TO netbox;
+
+--
+-- Name: dcim_inventoryitemrole_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.dcim_inventoryitemrole ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.dcim_inventoryitemrole_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: dcim_inventoryitemtemplate; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.dcim_inventoryitemtemplate (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ id bigint NOT NULL,
+ name character varying(64) NOT NULL,
+ _name character varying(100) NOT NULL,
+ label character varying(64) NOT NULL,
+ description character varying(200) NOT NULL,
+ component_id bigint,
+ part_id character varying(50) NOT NULL,
+ lft integer NOT NULL,
+ rght integer NOT NULL,
+ tree_id integer NOT NULL,
+ level integer NOT NULL,
+ component_type_id integer,
+ device_type_id bigint NOT NULL,
+ manufacturer_id bigint,
+ parent_id bigint,
+ role_id bigint,
+ CONSTRAINT dcim_inventoryitemtemplate_component_id_check CHECK ((component_id >= 0)),
+ CONSTRAINT dcim_inventoryitemtemplate_level_check CHECK ((level >= 0)),
+ CONSTRAINT dcim_inventoryitemtemplate_lft_check CHECK ((lft >= 0)),
+ CONSTRAINT dcim_inventoryitemtemplate_rght_check CHECK ((rght >= 0)),
+ CONSTRAINT dcim_inventoryitemtemplate_tree_id_check CHECK ((tree_id >= 0))
+);
+
+
+ALTER TABLE public.dcim_inventoryitemtemplate OWNER TO netbox;
+
+--
+-- Name: dcim_inventoryitemtemplate_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.dcim_inventoryitemtemplate ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.dcim_inventoryitemtemplate_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: dcim_location; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.dcim_location (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ id bigint NOT NULL,
+ name character varying(100) NOT NULL,
+ slug character varying(100) NOT NULL,
+ description character varying(200) NOT NULL,
+ lft integer NOT NULL,
+ rght integer NOT NULL,
+ tree_id integer NOT NULL,
+ level integer NOT NULL,
+ parent_id bigint,
+ site_id bigint NOT NULL,
+ tenant_id bigint,
+ status character varying(50) NOT NULL,
+ CONSTRAINT dcim_location_level_check CHECK ((level >= 0)),
+ CONSTRAINT dcim_location_lft_check CHECK ((lft >= 0)),
+ CONSTRAINT dcim_location_rght_check CHECK ((rght >= 0)),
+ CONSTRAINT dcim_location_tree_id_check CHECK ((tree_id >= 0))
+);
+
+
+ALTER TABLE public.dcim_location OWNER TO netbox;
+
+--
+-- Name: dcim_location_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.dcim_location ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.dcim_location_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: dcim_manufacturer; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.dcim_manufacturer (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ id bigint NOT NULL,
+ name character varying(100) NOT NULL,
+ slug character varying(100) NOT NULL,
+ description character varying(200) NOT NULL
+);
+
+
+ALTER TABLE public.dcim_manufacturer OWNER TO netbox;
+
+--
+-- Name: dcim_manufacturer_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.dcim_manufacturer ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.dcim_manufacturer_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: dcim_module; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.dcim_module (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ id bigint NOT NULL,
+ local_context_data jsonb,
+ serial character varying(50) NOT NULL,
+ asset_tag character varying(50),
+ comments text NOT NULL,
+ device_id bigint NOT NULL,
+ module_bay_id bigint NOT NULL,
+ module_type_id bigint NOT NULL,
+ description character varying(200) NOT NULL,
+ status character varying(50) NOT NULL
+);
+
+
+ALTER TABLE public.dcim_module OWNER TO netbox;
+
+--
+-- Name: dcim_module_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.dcim_module ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.dcim_module_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: dcim_modulebay; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.dcim_modulebay (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ id bigint NOT NULL,
+ name character varying(64) NOT NULL,
+ _name character varying(100) NOT NULL,
+ label character varying(64) NOT NULL,
+ "position" character varying(30) NOT NULL,
+ description character varying(200) NOT NULL,
+ device_id bigint NOT NULL
+);
+
+
+ALTER TABLE public.dcim_modulebay OWNER TO netbox;
+
+--
+-- Name: dcim_modulebay_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.dcim_modulebay ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.dcim_modulebay_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: dcim_modulebaytemplate; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.dcim_modulebaytemplate (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ id bigint NOT NULL,
+ name character varying(64) NOT NULL,
+ _name character varying(100) NOT NULL,
+ label character varying(64) NOT NULL,
+ "position" character varying(30) NOT NULL,
+ description character varying(200) NOT NULL,
+ device_type_id bigint NOT NULL
+);
+
+
+ALTER TABLE public.dcim_modulebaytemplate OWNER TO netbox;
+
+--
+-- Name: dcim_modulebaytemplate_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.dcim_modulebaytemplate ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.dcim_modulebaytemplate_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: dcim_moduletype; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.dcim_moduletype (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ id bigint NOT NULL,
+ model character varying(100) NOT NULL,
+ part_number character varying(50) NOT NULL,
+ comments text NOT NULL,
+ manufacturer_id bigint NOT NULL,
+ weight numeric(8,2),
+ weight_unit character varying(50) NOT NULL,
+ _abs_weight bigint,
+ description character varying(200) NOT NULL,
+ CONSTRAINT dcim_moduletype__abs_weight_check CHECK ((_abs_weight >= 0))
+);
+
+
+ALTER TABLE public.dcim_moduletype OWNER TO netbox;
+
+--
+-- Name: dcim_moduletype_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.dcim_moduletype ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.dcim_moduletype_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: dcim_platform; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.dcim_platform (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ id bigint NOT NULL,
+ name character varying(100) NOT NULL,
+ slug character varying(100) NOT NULL,
+ description character varying(200) NOT NULL,
+ manufacturer_id bigint,
+ config_template_id bigint
+);
+
+
+ALTER TABLE public.dcim_platform OWNER TO netbox;
+
+--
+-- Name: dcim_platform_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.dcim_platform ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.dcim_platform_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: dcim_powerfeed; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.dcim_powerfeed (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ id bigint NOT NULL,
+ mark_connected boolean NOT NULL,
+ name character varying(100) NOT NULL,
+ status character varying(50) NOT NULL,
+ type character varying(50) NOT NULL,
+ supply character varying(50) NOT NULL,
+ phase character varying(50) NOT NULL,
+ voltage smallint NOT NULL,
+ amperage smallint NOT NULL,
+ max_utilization smallint NOT NULL,
+ available_power integer NOT NULL,
+ comments text NOT NULL,
+ _path_id bigint,
+ cable_id bigint,
+ power_panel_id bigint NOT NULL,
+ rack_id bigint,
+ cable_end character varying(1) NOT NULL,
+ description character varying(200) NOT NULL,
+ tenant_id bigint,
+ CONSTRAINT dcim_powerfeed_amperage_check CHECK ((amperage >= 0)),
+ CONSTRAINT dcim_powerfeed_available_power_check CHECK ((available_power >= 0)),
+ CONSTRAINT dcim_powerfeed_max_utilization_check CHECK ((max_utilization >= 0))
+);
+
+
+ALTER TABLE public.dcim_powerfeed OWNER TO netbox;
+
+--
+-- Name: dcim_powerfeed_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.dcim_powerfeed ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.dcim_powerfeed_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: dcim_poweroutlet; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.dcim_poweroutlet (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ id bigint NOT NULL,
+ name character varying(64) NOT NULL,
+ _name character varying(100) NOT NULL,
+ label character varying(64) NOT NULL,
+ description character varying(200) NOT NULL,
+ mark_connected boolean NOT NULL,
+ type character varying(50) NOT NULL,
+ feed_leg character varying(50) NOT NULL,
+ _path_id bigint,
+ cable_id bigint,
+ device_id bigint NOT NULL,
+ power_port_id bigint,
+ module_id bigint,
+ cable_end character varying(1) NOT NULL
+);
+
+
+ALTER TABLE public.dcim_poweroutlet OWNER TO netbox;
+
+--
+-- Name: dcim_poweroutlet_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.dcim_poweroutlet ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.dcim_poweroutlet_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: dcim_poweroutlettemplate; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.dcim_poweroutlettemplate (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ id bigint NOT NULL,
+ name character varying(64) NOT NULL,
+ _name character varying(100) NOT NULL,
+ label character varying(64) NOT NULL,
+ description character varying(200) NOT NULL,
+ type character varying(50) NOT NULL,
+ feed_leg character varying(50) NOT NULL,
+ device_type_id bigint,
+ power_port_id bigint,
+ module_type_id bigint
+);
+
+
+ALTER TABLE public.dcim_poweroutlettemplate OWNER TO netbox;
+
+--
+-- Name: dcim_poweroutlettemplate_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.dcim_poweroutlettemplate ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.dcim_poweroutlettemplate_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: dcim_powerpanel; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.dcim_powerpanel (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ id bigint NOT NULL,
+ name character varying(100) NOT NULL,
+ location_id bigint,
+ site_id bigint NOT NULL,
+ comments text NOT NULL,
+ description character varying(200) NOT NULL
+);
+
+
+ALTER TABLE public.dcim_powerpanel OWNER TO netbox;
+
+--
+-- Name: dcim_powerpanel_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.dcim_powerpanel ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.dcim_powerpanel_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: dcim_powerport; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.dcim_powerport (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ id bigint NOT NULL,
+ name character varying(64) NOT NULL,
+ _name character varying(100) NOT NULL,
+ label character varying(64) NOT NULL,
+ description character varying(200) NOT NULL,
+ mark_connected boolean NOT NULL,
+ type character varying(50) NOT NULL,
+ maximum_draw integer,
+ allocated_draw integer,
+ _path_id bigint,
+ cable_id bigint,
+ device_id bigint NOT NULL,
+ module_id bigint,
+ cable_end character varying(1) NOT NULL,
+ CONSTRAINT dcim_powerport_allocated_draw_check CHECK ((allocated_draw >= 0)),
+ CONSTRAINT dcim_powerport_maximum_draw_check CHECK ((maximum_draw >= 0))
+);
+
+
+ALTER TABLE public.dcim_powerport OWNER TO netbox;
+
+--
+-- Name: dcim_powerport_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.dcim_powerport ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.dcim_powerport_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: dcim_powerporttemplate; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.dcim_powerporttemplate (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ id bigint NOT NULL,
+ name character varying(64) NOT NULL,
+ _name character varying(100) NOT NULL,
+ label character varying(64) NOT NULL,
+ description character varying(200) NOT NULL,
+ type character varying(50) NOT NULL,
+ maximum_draw integer,
+ allocated_draw integer,
+ device_type_id bigint,
+ module_type_id bigint,
+ CONSTRAINT dcim_powerporttemplate_allocated_draw_check CHECK ((allocated_draw >= 0)),
+ CONSTRAINT dcim_powerporttemplate_maximum_draw_check CHECK ((maximum_draw >= 0))
+);
+
+
+ALTER TABLE public.dcim_powerporttemplate OWNER TO netbox;
+
+--
+-- Name: dcim_powerporttemplate_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.dcim_powerporttemplate ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.dcim_powerporttemplate_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: dcim_rack; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.dcim_rack (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ id bigint NOT NULL,
+ name character varying(100) NOT NULL,
+ _name character varying(100) NOT NULL,
+ facility_id character varying(50),
+ status character varying(50) NOT NULL,
+ serial character varying(50) NOT NULL,
+ asset_tag character varying(50),
+ type character varying(50) NOT NULL,
+ width smallint NOT NULL,
+ u_height smallint NOT NULL,
+ desc_units boolean NOT NULL,
+ outer_width smallint,
+ outer_depth smallint,
+ outer_unit character varying(50) NOT NULL,
+ comments text NOT NULL,
+ location_id bigint,
+ role_id bigint,
+ site_id bigint NOT NULL,
+ tenant_id bigint,
+ weight numeric(8,2),
+ max_weight integer,
+ weight_unit character varying(50) NOT NULL,
+ _abs_weight bigint,
+ _abs_max_weight bigint,
+ mounting_depth smallint,
+ description character varying(200) NOT NULL,
+ starting_unit smallint NOT NULL,
+ CONSTRAINT dcim_rack__abs_max_weight_check CHECK ((_abs_max_weight >= 0)),
+ CONSTRAINT dcim_rack__abs_weight_check CHECK ((_abs_weight >= 0)),
+ CONSTRAINT dcim_rack_max_weight_check CHECK ((max_weight >= 0)),
+ CONSTRAINT dcim_rack_mounting_depth_check CHECK ((mounting_depth >= 0)),
+ CONSTRAINT dcim_rack_outer_depth_check CHECK ((outer_depth >= 0)),
+ CONSTRAINT dcim_rack_outer_width_check CHECK ((outer_width >= 0)),
+ CONSTRAINT dcim_rack_starting_unit_check CHECK ((starting_unit >= 0)),
+ CONSTRAINT dcim_rack_u_height_check CHECK ((u_height >= 0)),
+ CONSTRAINT dcim_rack_width_check CHECK ((width >= 0))
+);
+
+
+ALTER TABLE public.dcim_rack OWNER TO netbox;
+
+--
+-- Name: dcim_rack_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.dcim_rack ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.dcim_rack_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: dcim_rackreservation; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.dcim_rackreservation (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ id bigint NOT NULL,
+ units smallint[] NOT NULL,
+ description character varying(200) NOT NULL,
+ rack_id bigint NOT NULL,
+ tenant_id bigint,
+ user_id integer NOT NULL,
+ comments text NOT NULL
+);
+
+
+ALTER TABLE public.dcim_rackreservation OWNER TO netbox;
+
+--
+-- Name: dcim_rackreservation_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.dcim_rackreservation ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.dcim_rackreservation_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: dcim_rackrole; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.dcim_rackrole (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ id bigint NOT NULL,
+ name character varying(100) NOT NULL,
+ slug character varying(100) NOT NULL,
+ color character varying(6) NOT NULL,
+ description character varying(200) NOT NULL
+);
+
+
+ALTER TABLE public.dcim_rackrole OWNER TO netbox;
+
+--
+-- Name: dcim_rackrole_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.dcim_rackrole ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.dcim_rackrole_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: dcim_rearport; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.dcim_rearport (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ id bigint NOT NULL,
+ name character varying(64) NOT NULL,
+ _name character varying(100) NOT NULL,
+ label character varying(64) NOT NULL,
+ description character varying(200) NOT NULL,
+ mark_connected boolean NOT NULL,
+ type character varying(50) NOT NULL,
+ positions smallint NOT NULL,
+ cable_id bigint,
+ device_id bigint NOT NULL,
+ color character varying(6) NOT NULL,
+ module_id bigint,
+ cable_end character varying(1) NOT NULL,
+ CONSTRAINT dcim_rearport_positions_check CHECK ((positions >= 0))
+);
+
+
+ALTER TABLE public.dcim_rearport OWNER TO netbox;
+
+--
+-- Name: dcim_rearport_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.dcim_rearport ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.dcim_rearport_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: dcim_rearporttemplate; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.dcim_rearporttemplate (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ id bigint NOT NULL,
+ name character varying(64) NOT NULL,
+ _name character varying(100) NOT NULL,
+ label character varying(64) NOT NULL,
+ description character varying(200) NOT NULL,
+ type character varying(50) NOT NULL,
+ positions smallint NOT NULL,
+ device_type_id bigint,
+ color character varying(6) NOT NULL,
+ module_type_id bigint,
+ CONSTRAINT dcim_rearporttemplate_positions_check CHECK ((positions >= 0))
+);
+
+
+ALTER TABLE public.dcim_rearporttemplate OWNER TO netbox;
+
+--
+-- Name: dcim_rearporttemplate_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.dcim_rearporttemplate ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.dcim_rearporttemplate_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: dcim_region; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.dcim_region (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ id bigint NOT NULL,
+ name character varying(100) NOT NULL,
+ slug character varying(100) NOT NULL,
+ description character varying(200) NOT NULL,
+ lft integer NOT NULL,
+ rght integer NOT NULL,
+ tree_id integer NOT NULL,
+ level integer NOT NULL,
+ parent_id bigint,
+ CONSTRAINT dcim_region_level_check CHECK ((level >= 0)),
+ CONSTRAINT dcim_region_lft_check CHECK ((lft >= 0)),
+ CONSTRAINT dcim_region_rght_check CHECK ((rght >= 0)),
+ CONSTRAINT dcim_region_tree_id_check CHECK ((tree_id >= 0))
+);
+
+
+ALTER TABLE public.dcim_region OWNER TO netbox;
+
+--
+-- Name: dcim_region_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.dcim_region ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.dcim_region_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: dcim_site; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.dcim_site (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ id bigint NOT NULL,
+ name character varying(100) NOT NULL,
+ _name character varying(100) NOT NULL,
+ slug character varying(100) NOT NULL,
+ status character varying(50) NOT NULL,
+ facility character varying(50) NOT NULL,
+ time_zone character varying(63) NOT NULL,
+ description character varying(200) NOT NULL,
+ physical_address character varying(200) NOT NULL,
+ shipping_address character varying(200) NOT NULL,
+ latitude numeric(8,6),
+ longitude numeric(9,6),
+ comments text NOT NULL,
+ group_id bigint,
+ region_id bigint,
+ tenant_id bigint
+);
+
+
+ALTER TABLE public.dcim_site OWNER TO netbox;
+
+--
+-- Name: dcim_site_asns; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.dcim_site_asns (
+ id bigint NOT NULL,
+ site_id bigint NOT NULL,
+ asn_id bigint NOT NULL
+);
+
+
+ALTER TABLE public.dcim_site_asns OWNER TO netbox;
+
+--
+-- Name: dcim_site_asns_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.dcim_site_asns ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.dcim_site_asns_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: dcim_site_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.dcim_site ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.dcim_site_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: dcim_sitegroup; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.dcim_sitegroup (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ id bigint NOT NULL,
+ name character varying(100) NOT NULL,
+ slug character varying(100) NOT NULL,
+ description character varying(200) NOT NULL,
+ lft integer NOT NULL,
+ rght integer NOT NULL,
+ tree_id integer NOT NULL,
+ level integer NOT NULL,
+ parent_id bigint,
+ CONSTRAINT dcim_sitegroup_level_check CHECK ((level >= 0)),
+ CONSTRAINT dcim_sitegroup_lft_check CHECK ((lft >= 0)),
+ CONSTRAINT dcim_sitegroup_rght_check CHECK ((rght >= 0)),
+ CONSTRAINT dcim_sitegroup_tree_id_check CHECK ((tree_id >= 0))
+);
+
+
+ALTER TABLE public.dcim_sitegroup OWNER TO netbox;
+
+--
+-- Name: dcim_sitegroup_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.dcim_sitegroup ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.dcim_sitegroup_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: dcim_virtualchassis; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.dcim_virtualchassis (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ id bigint NOT NULL,
+ name character varying(64) NOT NULL,
+ domain character varying(30) NOT NULL,
+ master_id bigint,
+ comments text NOT NULL,
+ description character varying(200) NOT NULL,
+ member_count bigint NOT NULL
+);
+
+
+ALTER TABLE public.dcim_virtualchassis OWNER TO netbox;
+
+--
+-- Name: dcim_virtualchassis_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.dcim_virtualchassis ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.dcim_virtualchassis_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: dcim_virtualdevicecontext; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.dcim_virtualdevicecontext (
+ id bigint NOT NULL,
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ description character varying(200) NOT NULL,
+ name character varying(64) NOT NULL,
+ status character varying(50) NOT NULL,
+ identifier smallint,
+ comments text NOT NULL,
+ device_id bigint,
+ primary_ip4_id bigint,
+ primary_ip6_id bigint,
+ tenant_id bigint,
+ CONSTRAINT dcim_virtualdevicecontext_identifier_check CHECK ((identifier >= 0))
+);
+
+
+ALTER TABLE public.dcim_virtualdevicecontext OWNER TO netbox;
+
+--
+-- Name: dcim_virtualdevicecontext_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.dcim_virtualdevicecontext ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.dcim_virtualdevicecontext_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: django_admin_log; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.django_admin_log (
+ id integer NOT NULL,
+ action_time timestamp with time zone NOT NULL,
+ object_id text,
+ object_repr character varying(200) NOT NULL,
+ action_flag smallint NOT NULL,
+ change_message text NOT NULL,
+ content_type_id integer,
+ user_id integer NOT NULL,
+ CONSTRAINT django_admin_log_action_flag_check CHECK ((action_flag >= 0))
+);
+
+
+ALTER TABLE public.django_admin_log OWNER TO netbox;
+
+--
+-- Name: django_admin_log_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.django_admin_log ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.django_admin_log_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: django_content_type; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.django_content_type (
+ id integer NOT NULL,
+ app_label character varying(100) NOT NULL,
+ model character varying(100) NOT NULL
+);
+
+
+ALTER TABLE public.django_content_type OWNER TO netbox;
+
+--
+-- Name: django_content_type_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.django_content_type ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.django_content_type_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: django_migrations; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.django_migrations (
+ id bigint NOT NULL,
+ app character varying(255) NOT NULL,
+ name character varying(255) NOT NULL,
+ applied timestamp with time zone NOT NULL
+);
+
+
+ALTER TABLE public.django_migrations OWNER TO netbox;
+
+--
+-- Name: django_migrations_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.django_migrations ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.django_migrations_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: django_session; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.django_session (
+ session_key character varying(40) NOT NULL,
+ session_data text NOT NULL,
+ expire_date timestamp with time zone NOT NULL
+);
+
+
+ALTER TABLE public.django_session OWNER TO netbox;
+
+--
+-- Name: extras_bookmark; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.extras_bookmark (
+ id bigint NOT NULL,
+ created timestamp with time zone NOT NULL,
+ object_id bigint NOT NULL,
+ object_type_id integer NOT NULL,
+ user_id integer NOT NULL,
+ CONSTRAINT extras_bookmark_object_id_check CHECK ((object_id >= 0))
+);
+
+
+ALTER TABLE public.extras_bookmark OWNER TO netbox;
+
+--
+-- Name: extras_bookmark_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.extras_bookmark ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.extras_bookmark_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: extras_branch; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.extras_branch (
+ id bigint NOT NULL,
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ name character varying(100) NOT NULL,
+ description character varying(200) NOT NULL,
+ user_id integer
+);
+
+
+ALTER TABLE public.extras_branch OWNER TO netbox;
+
+--
+-- Name: extras_branch_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.extras_branch ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.extras_branch_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: extras_cachedvalue; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.extras_cachedvalue (
+ id uuid NOT NULL,
+ "timestamp" timestamp with time zone NOT NULL,
+ object_id bigint NOT NULL,
+ field character varying(200) NOT NULL,
+ type character varying(30) NOT NULL,
+ value text NOT NULL,
+ weight smallint NOT NULL,
+ object_type_id integer NOT NULL,
+ CONSTRAINT extras_cachedvalue_object_id_check CHECK ((object_id >= 0)),
+ CONSTRAINT extras_cachedvalue_weight_check CHECK ((weight >= 0))
+);
+
+
+ALTER TABLE public.extras_cachedvalue OWNER TO netbox;
+
+--
+-- Name: extras_configcontext; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.extras_configcontext (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ id bigint NOT NULL,
+ name character varying(100) NOT NULL,
+ weight smallint NOT NULL,
+ description character varying(200) NOT NULL,
+ is_active boolean NOT NULL,
+ data jsonb NOT NULL,
+ data_file_id bigint,
+ data_path character varying(1000) NOT NULL,
+ data_source_id bigint,
+ auto_sync_enabled boolean NOT NULL,
+ data_synced timestamp with time zone,
+ CONSTRAINT extras_configcontext_weight_check CHECK ((weight >= 0))
+);
+
+
+ALTER TABLE public.extras_configcontext OWNER TO netbox;
+
+--
+-- Name: extras_configcontext_cluster_groups; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.extras_configcontext_cluster_groups (
+ id bigint NOT NULL,
+ configcontext_id bigint NOT NULL,
+ clustergroup_id bigint NOT NULL
+);
+
+
+ALTER TABLE public.extras_configcontext_cluster_groups OWNER TO netbox;
+
+--
+-- Name: extras_configcontext_cluster_groups_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.extras_configcontext_cluster_groups ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.extras_configcontext_cluster_groups_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: extras_configcontext_cluster_types; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.extras_configcontext_cluster_types (
+ id bigint NOT NULL,
+ configcontext_id bigint NOT NULL,
+ clustertype_id bigint NOT NULL
+);
+
+
+ALTER TABLE public.extras_configcontext_cluster_types OWNER TO netbox;
+
+--
+-- Name: extras_configcontext_cluster_types_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.extras_configcontext_cluster_types ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.extras_configcontext_cluster_types_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: extras_configcontext_clusters; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.extras_configcontext_clusters (
+ id bigint NOT NULL,
+ configcontext_id bigint NOT NULL,
+ cluster_id bigint NOT NULL
+);
+
+
+ALTER TABLE public.extras_configcontext_clusters OWNER TO netbox;
+
+--
+-- Name: extras_configcontext_clusters_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.extras_configcontext_clusters ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.extras_configcontext_clusters_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: extras_configcontext_device_types; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.extras_configcontext_device_types (
+ id bigint NOT NULL,
+ configcontext_id bigint NOT NULL,
+ devicetype_id bigint NOT NULL
+);
+
+
+ALTER TABLE public.extras_configcontext_device_types OWNER TO netbox;
+
+--
+-- Name: extras_configcontext_device_types_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.extras_configcontext_device_types ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.extras_configcontext_device_types_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: extras_configcontext_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.extras_configcontext ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.extras_configcontext_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: extras_configcontext_locations; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.extras_configcontext_locations (
+ id bigint NOT NULL,
+ configcontext_id bigint NOT NULL,
+ location_id bigint NOT NULL
+);
+
+
+ALTER TABLE public.extras_configcontext_locations OWNER TO netbox;
+
+--
+-- Name: extras_configcontext_locations_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.extras_configcontext_locations ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.extras_configcontext_locations_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: extras_configcontext_platforms; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.extras_configcontext_platforms (
+ id bigint NOT NULL,
+ configcontext_id bigint NOT NULL,
+ platform_id bigint NOT NULL
+);
+
+
+ALTER TABLE public.extras_configcontext_platforms OWNER TO netbox;
+
+--
+-- Name: extras_configcontext_platforms_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.extras_configcontext_platforms ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.extras_configcontext_platforms_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: extras_configcontext_regions; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.extras_configcontext_regions (
+ id bigint NOT NULL,
+ configcontext_id bigint NOT NULL,
+ region_id bigint NOT NULL
+);
+
+
+ALTER TABLE public.extras_configcontext_regions OWNER TO netbox;
+
+--
+-- Name: extras_configcontext_regions_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.extras_configcontext_regions ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.extras_configcontext_regions_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: extras_configcontext_roles; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.extras_configcontext_roles (
+ id bigint NOT NULL,
+ configcontext_id bigint NOT NULL,
+ devicerole_id bigint NOT NULL
+);
+
+
+ALTER TABLE public.extras_configcontext_roles OWNER TO netbox;
+
+--
+-- Name: extras_configcontext_roles_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.extras_configcontext_roles ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.extras_configcontext_roles_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: extras_configcontext_site_groups; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.extras_configcontext_site_groups (
+ id bigint NOT NULL,
+ configcontext_id bigint NOT NULL,
+ sitegroup_id bigint NOT NULL
+);
+
+
+ALTER TABLE public.extras_configcontext_site_groups OWNER TO netbox;
+
+--
+-- Name: extras_configcontext_site_groups_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.extras_configcontext_site_groups ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.extras_configcontext_site_groups_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: extras_configcontext_sites; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.extras_configcontext_sites (
+ id bigint NOT NULL,
+ configcontext_id bigint NOT NULL,
+ site_id bigint NOT NULL
+);
+
+
+ALTER TABLE public.extras_configcontext_sites OWNER TO netbox;
+
+--
+-- Name: extras_configcontext_sites_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.extras_configcontext_sites ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.extras_configcontext_sites_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: extras_configcontext_tags; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.extras_configcontext_tags (
+ id bigint NOT NULL,
+ configcontext_id bigint NOT NULL,
+ tag_id bigint NOT NULL
+);
+
+
+ALTER TABLE public.extras_configcontext_tags OWNER TO netbox;
+
+--
+-- Name: extras_configcontext_tags_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.extras_configcontext_tags ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.extras_configcontext_tags_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: extras_configcontext_tenant_groups; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.extras_configcontext_tenant_groups (
+ id bigint NOT NULL,
+ configcontext_id bigint NOT NULL,
+ tenantgroup_id bigint NOT NULL
+);
+
+
+ALTER TABLE public.extras_configcontext_tenant_groups OWNER TO netbox;
+
+--
+-- Name: extras_configcontext_tenant_groups_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.extras_configcontext_tenant_groups ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.extras_configcontext_tenant_groups_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: extras_configcontext_tenants; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.extras_configcontext_tenants (
+ id bigint NOT NULL,
+ configcontext_id bigint NOT NULL,
+ tenant_id bigint NOT NULL
+);
+
+
+ALTER TABLE public.extras_configcontext_tenants OWNER TO netbox;
+
+--
+-- Name: extras_configcontext_tenants_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.extras_configcontext_tenants ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.extras_configcontext_tenants_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: extras_configrevision_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.core_configrevision ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.extras_configrevision_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: extras_configtemplate; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.extras_configtemplate (
+ id bigint NOT NULL,
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ data_path character varying(1000) NOT NULL,
+ data_synced timestamp with time zone,
+ name character varying(100) NOT NULL,
+ description character varying(200) NOT NULL,
+ template_code text NOT NULL,
+ environment_params jsonb,
+ data_file_id bigint,
+ data_source_id bigint,
+ auto_sync_enabled boolean NOT NULL
+);
+
+
+ALTER TABLE public.extras_configtemplate OWNER TO netbox;
+
+--
+-- Name: extras_configtemplate_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.extras_configtemplate ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.extras_configtemplate_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: extras_customfield; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.extras_customfield (
+ id bigint NOT NULL,
+ type character varying(50) NOT NULL,
+ name character varying(50) NOT NULL,
+ label character varying(50) NOT NULL,
+ description character varying(200) NOT NULL,
+ required boolean NOT NULL,
+ filter_logic character varying(50) NOT NULL,
+ "default" jsonb,
+ weight smallint NOT NULL,
+ validation_minimum bigint,
+ validation_maximum bigint,
+ validation_regex character varying(500) NOT NULL,
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ object_type_id integer,
+ group_name character varying(50) NOT NULL,
+ search_weight smallint NOT NULL,
+ is_cloneable boolean NOT NULL,
+ choice_set_id bigint,
+ ui_editable character varying(50) NOT NULL,
+ ui_visible character varying(50) NOT NULL,
+ CONSTRAINT extras_customfield_search_weight_check CHECK ((search_weight >= 0)),
+ CONSTRAINT extras_customfield_weight_check CHECK ((weight >= 0))
+);
+
+
+ALTER TABLE public.extras_customfield OWNER TO netbox;
+
+--
+-- Name: extras_customfield_content_types; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.extras_customfield_content_types (
+ id bigint NOT NULL,
+ customfield_id bigint NOT NULL,
+ contenttype_id integer NOT NULL
+);
+
+
+ALTER TABLE public.extras_customfield_content_types OWNER TO netbox;
+
+--
+-- Name: extras_customfield_content_types_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.extras_customfield_content_types ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.extras_customfield_content_types_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: extras_customfield_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.extras_customfield ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.extras_customfield_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: extras_customfieldchoiceset; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.extras_customfieldchoiceset (
+ id bigint NOT NULL,
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ name character varying(100) NOT NULL,
+ description character varying(200) NOT NULL,
+ base_choices character varying(50) NOT NULL,
+ extra_choices character varying(100)[],
+ order_alphabetically boolean NOT NULL
+);
+
+
+ALTER TABLE public.extras_customfieldchoiceset OWNER TO netbox;
+
+--
+-- Name: extras_customfieldchoiceset_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.extras_customfieldchoiceset ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.extras_customfieldchoiceset_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: extras_customlink; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.extras_customlink (
+ id bigint NOT NULL,
+ name character varying(100) NOT NULL,
+ link_text text NOT NULL,
+ link_url text NOT NULL,
+ weight smallint NOT NULL,
+ group_name character varying(50) NOT NULL,
+ button_class character varying(30) NOT NULL,
+ new_window boolean NOT NULL,
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ enabled boolean NOT NULL,
+ CONSTRAINT extras_customlink_weight_check CHECK ((weight >= 0))
+);
+
+
+ALTER TABLE public.extras_customlink OWNER TO netbox;
+
+--
+-- Name: extras_customlink_content_types; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.extras_customlink_content_types (
+ id bigint NOT NULL,
+ customlink_id bigint NOT NULL,
+ contenttype_id integer NOT NULL
+);
+
+
+ALTER TABLE public.extras_customlink_content_types OWNER TO netbox;
+
+--
+-- Name: extras_customlink_content_types_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.extras_customlink_content_types ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.extras_customlink_content_types_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: extras_customlink_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.extras_customlink ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.extras_customlink_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: extras_dashboard; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.extras_dashboard (
+ id bigint NOT NULL,
+ layout jsonb NOT NULL,
+ config jsonb NOT NULL,
+ user_id integer NOT NULL
+);
+
+
+ALTER TABLE public.extras_dashboard OWNER TO netbox;
+
+--
+-- Name: extras_dashboard_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.extras_dashboard ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.extras_dashboard_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: extras_eventrule; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.extras_eventrule (
+ id bigint NOT NULL,
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ name character varying(150) NOT NULL,
+ description character varying(200) NOT NULL,
+ type_create boolean NOT NULL,
+ type_update boolean NOT NULL,
+ type_delete boolean NOT NULL,
+ type_job_start boolean NOT NULL,
+ type_job_end boolean NOT NULL,
+ enabled boolean NOT NULL,
+ conditions jsonb,
+ action_type character varying(30) NOT NULL,
+ action_object_id bigint,
+ action_parameters jsonb,
+ action_data jsonb,
+ comments text NOT NULL,
+ action_object_type_id integer NOT NULL,
+ CONSTRAINT extras_eventrule_action_object_id_check CHECK ((action_object_id >= 0))
+);
+
+
+ALTER TABLE public.extras_eventrule OWNER TO netbox;
+
+--
+-- Name: extras_eventrule_content_types; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.extras_eventrule_content_types (
+ id bigint NOT NULL,
+ eventrule_id bigint NOT NULL,
+ contenttype_id integer NOT NULL
+);
+
+
+ALTER TABLE public.extras_eventrule_content_types OWNER TO netbox;
+
+--
+-- Name: extras_eventrule_content_types_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.extras_eventrule_content_types ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.extras_eventrule_content_types_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: extras_eventrule_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.extras_eventrule ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.extras_eventrule_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: extras_exporttemplate; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.extras_exporttemplate (
+ id bigint NOT NULL,
+ name character varying(100) NOT NULL,
+ description character varying(200) NOT NULL,
+ template_code text NOT NULL,
+ mime_type character varying(50) NOT NULL,
+ file_extension character varying(15) NOT NULL,
+ as_attachment boolean NOT NULL,
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ data_file_id bigint,
+ data_path character varying(1000) NOT NULL,
+ data_source_id bigint,
+ auto_sync_enabled boolean NOT NULL,
+ data_synced timestamp with time zone
+);
+
+
+ALTER TABLE public.extras_exporttemplate OWNER TO netbox;
+
+--
+-- Name: extras_exporttemplate_content_types; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.extras_exporttemplate_content_types (
+ id bigint NOT NULL,
+ exporttemplate_id bigint NOT NULL,
+ contenttype_id integer NOT NULL
+);
+
+
+ALTER TABLE public.extras_exporttemplate_content_types OWNER TO netbox;
+
+--
+-- Name: extras_exporttemplate_content_types_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.extras_exporttemplate_content_types ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.extras_exporttemplate_content_types_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: extras_exporttemplate_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.extras_exporttemplate ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.extras_exporttemplate_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: extras_imageattachment; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.extras_imageattachment (
+ id bigint NOT NULL,
+ object_id bigint NOT NULL,
+ image character varying(100) NOT NULL,
+ image_height smallint NOT NULL,
+ image_width smallint NOT NULL,
+ name character varying(50) NOT NULL,
+ created timestamp with time zone,
+ content_type_id integer NOT NULL,
+ last_updated timestamp with time zone,
+ CONSTRAINT extras_imageattachment_image_height_check CHECK ((image_height >= 0)),
+ CONSTRAINT extras_imageattachment_image_width_check CHECK ((image_width >= 0)),
+ CONSTRAINT extras_imageattachment_object_id_check CHECK ((object_id >= 0))
+);
+
+
+ALTER TABLE public.extras_imageattachment OWNER TO netbox;
+
+--
+-- Name: extras_imageattachment_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.extras_imageattachment ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.extras_imageattachment_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: extras_journalentry; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.extras_journalentry (
+ last_updated timestamp with time zone,
+ id bigint NOT NULL,
+ assigned_object_id bigint NOT NULL,
+ created timestamp with time zone,
+ kind character varying(30) NOT NULL,
+ comments text NOT NULL,
+ assigned_object_type_id integer NOT NULL,
+ created_by_id integer,
+ custom_field_data jsonb NOT NULL,
+ CONSTRAINT extras_journalentry_assigned_object_id_check CHECK ((assigned_object_id >= 0))
+);
+
+
+ALTER TABLE public.extras_journalentry OWNER TO netbox;
+
+--
+-- Name: extras_journalentry_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.extras_journalentry ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.extras_journalentry_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: extras_objectchange; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.extras_objectchange (
+ id bigint NOT NULL,
+ "time" timestamp with time zone NOT NULL,
+ user_name character varying(150) NOT NULL,
+ request_id uuid NOT NULL,
+ action character varying(50) NOT NULL,
+ changed_object_id bigint NOT NULL,
+ related_object_id bigint,
+ object_repr character varying(200) NOT NULL,
+ prechange_data jsonb,
+ postchange_data jsonb,
+ changed_object_type_id integer NOT NULL,
+ related_object_type_id integer,
+ user_id integer,
+ CONSTRAINT extras_objectchange_changed_object_id_check CHECK ((changed_object_id >= 0)),
+ CONSTRAINT extras_objectchange_related_object_id_check CHECK ((related_object_id >= 0))
+);
+
+
+ALTER TABLE public.extras_objectchange OWNER TO netbox;
+
+--
+-- Name: extras_objectchange_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.extras_objectchange ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.extras_objectchange_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: extras_savedfilter; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.extras_savedfilter (
+ id bigint NOT NULL,
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ name character varying(100) NOT NULL,
+ slug character varying(100) NOT NULL,
+ description character varying(200) NOT NULL,
+ weight smallint NOT NULL,
+ enabled boolean NOT NULL,
+ shared boolean NOT NULL,
+ parameters jsonb NOT NULL,
+ user_id integer,
+ CONSTRAINT extras_savedfilter_weight_check CHECK ((weight >= 0))
+);
+
+
+ALTER TABLE public.extras_savedfilter OWNER TO netbox;
+
+--
+-- Name: extras_savedfilter_content_types; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.extras_savedfilter_content_types (
+ id bigint NOT NULL,
+ savedfilter_id bigint NOT NULL,
+ contenttype_id integer NOT NULL
+);
+
+
+ALTER TABLE public.extras_savedfilter_content_types OWNER TO netbox;
+
+--
+-- Name: extras_savedfilter_content_types_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.extras_savedfilter_content_types ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.extras_savedfilter_content_types_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: extras_savedfilter_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.extras_savedfilter ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.extras_savedfilter_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: extras_stagedchange; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.extras_stagedchange (
+ id bigint NOT NULL,
+ action character varying(20) NOT NULL,
+ object_id bigint,
+ data jsonb,
+ branch_id bigint NOT NULL,
+ object_type_id integer NOT NULL,
+ CONSTRAINT extras_stagedchange_object_id_check CHECK ((object_id >= 0))
+);
+
+
+ALTER TABLE public.extras_stagedchange OWNER TO netbox;
+
+--
+-- Name: extras_stagedchange_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.extras_stagedchange ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.extras_stagedchange_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: extras_tag; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.extras_tag (
+ name character varying(100) NOT NULL,
+ slug character varying(100) NOT NULL,
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ id bigint NOT NULL,
+ color character varying(6) NOT NULL,
+ description character varying(200) NOT NULL
+);
+
+
+ALTER TABLE public.extras_tag OWNER TO netbox;
+
+--
+-- Name: extras_tag_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.extras_tag ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.extras_tag_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: extras_tag_object_types; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.extras_tag_object_types (
+ id bigint NOT NULL,
+ tag_id bigint NOT NULL,
+ contenttype_id integer NOT NULL
+);
+
+
+ALTER TABLE public.extras_tag_object_types OWNER TO netbox;
+
+--
+-- Name: extras_tag_object_types_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.extras_tag_object_types ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.extras_tag_object_types_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: extras_taggeditem; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.extras_taggeditem (
+ object_id integer NOT NULL,
+ id bigint NOT NULL,
+ content_type_id integer NOT NULL,
+ tag_id bigint NOT NULL
+);
+
+
+ALTER TABLE public.extras_taggeditem OWNER TO netbox;
+
+--
+-- Name: extras_taggeditem_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.extras_taggeditem ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.extras_taggeditem_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: extras_webhook; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.extras_webhook (
+ id bigint NOT NULL,
+ name character varying(150) NOT NULL,
+ payload_url character varying(500) NOT NULL,
+ http_method character varying(30) NOT NULL,
+ http_content_type character varying(100) NOT NULL,
+ additional_headers text NOT NULL,
+ body_template text NOT NULL,
+ secret character varying(255) NOT NULL,
+ ssl_verification boolean NOT NULL,
+ ca_file_path character varying(4096),
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ description character varying(200) NOT NULL
+);
+
+
+ALTER TABLE public.extras_webhook OWNER TO netbox;
+
+--
+-- Name: extras_webhook_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.extras_webhook ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.extras_webhook_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: ipam_aggregate; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.ipam_aggregate (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ id bigint NOT NULL,
+ prefix cidr NOT NULL,
+ date_added date,
+ description character varying(200) NOT NULL,
+ rir_id bigint NOT NULL,
+ tenant_id bigint,
+ comments text NOT NULL
+);
+
+
+ALTER TABLE public.ipam_aggregate OWNER TO netbox;
+
+--
+-- Name: ipam_aggregate_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.ipam_aggregate ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.ipam_aggregate_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: ipam_asn; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.ipam_asn (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ id bigint NOT NULL,
+ asn bigint NOT NULL,
+ description character varying(200) NOT NULL,
+ rir_id bigint NOT NULL,
+ tenant_id bigint,
+ comments text NOT NULL
+);
+
+
+ALTER TABLE public.ipam_asn OWNER TO netbox;
+
+--
+-- Name: ipam_asn_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.ipam_asn ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.ipam_asn_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: ipam_asnrange; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.ipam_asnrange (
+ id bigint NOT NULL,
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ description character varying(200) NOT NULL,
+ name character varying(100) NOT NULL,
+ slug character varying(100) NOT NULL,
+ start bigint NOT NULL,
+ "end" bigint NOT NULL,
+ rir_id bigint NOT NULL,
+ tenant_id bigint
+);
+
+
+ALTER TABLE public.ipam_asnrange OWNER TO netbox;
+
+--
+-- Name: ipam_asnrange_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.ipam_asnrange ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.ipam_asnrange_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: ipam_fhrpgroup; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.ipam_fhrpgroup (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ id bigint NOT NULL,
+ group_id smallint NOT NULL,
+ protocol character varying(50) NOT NULL,
+ auth_type character varying(50) NOT NULL,
+ auth_key character varying(255) NOT NULL,
+ description character varying(200) NOT NULL,
+ name character varying(100) NOT NULL,
+ comments text NOT NULL,
+ CONSTRAINT ipam_fhrpgroup_group_id_check CHECK ((group_id >= 0))
+);
+
+
+ALTER TABLE public.ipam_fhrpgroup OWNER TO netbox;
+
+--
+-- Name: ipam_fhrpgroup_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.ipam_fhrpgroup ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.ipam_fhrpgroup_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: ipam_fhrpgroupassignment; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.ipam_fhrpgroupassignment (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ id bigint NOT NULL,
+ interface_id bigint NOT NULL,
+ priority smallint NOT NULL,
+ group_id bigint NOT NULL,
+ interface_type_id integer NOT NULL,
+ CONSTRAINT ipam_fhrpgroupassignment_interface_id_check CHECK ((interface_id >= 0)),
+ CONSTRAINT ipam_fhrpgroupassignment_priority_check CHECK ((priority >= 0))
+);
+
+
+ALTER TABLE public.ipam_fhrpgroupassignment OWNER TO netbox;
+
+--
+-- Name: ipam_fhrpgroupassignment_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.ipam_fhrpgroupassignment ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.ipam_fhrpgroupassignment_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: ipam_ipaddress; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.ipam_ipaddress (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ id bigint NOT NULL,
+ address inet NOT NULL,
+ status character varying(50) NOT NULL,
+ role character varying(50) NOT NULL,
+ assigned_object_id bigint,
+ dns_name character varying(255) NOT NULL,
+ description character varying(200) NOT NULL,
+ assigned_object_type_id integer,
+ nat_inside_id bigint,
+ tenant_id bigint,
+ vrf_id bigint,
+ comments text NOT NULL,
+ CONSTRAINT ipam_ipaddress_assigned_object_id_check CHECK ((assigned_object_id >= 0))
+);
+
+
+ALTER TABLE public.ipam_ipaddress OWNER TO netbox;
+
+--
+-- Name: ipam_ipaddress_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.ipam_ipaddress ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.ipam_ipaddress_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: ipam_iprange; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.ipam_iprange (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ id bigint NOT NULL,
+ start_address inet NOT NULL,
+ end_address inet NOT NULL,
+ size integer NOT NULL,
+ status character varying(50) NOT NULL,
+ description character varying(200) NOT NULL,
+ role_id bigint,
+ tenant_id bigint,
+ vrf_id bigint,
+ comments text NOT NULL,
+ mark_utilized boolean NOT NULL,
+ CONSTRAINT ipam_iprange_size_check CHECK ((size >= 0))
+);
+
+
+ALTER TABLE public.ipam_iprange OWNER TO netbox;
+
+--
+-- Name: ipam_iprange_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.ipam_iprange ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.ipam_iprange_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: vpn_l2vpn_export_targets; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.vpn_l2vpn_export_targets (
+ id bigint NOT NULL,
+ l2vpn_id bigint NOT NULL,
+ routetarget_id bigint NOT NULL
+);
+
+
+ALTER TABLE public.vpn_l2vpn_export_targets OWNER TO netbox;
+
+--
+-- Name: ipam_l2vpn_export_targets_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.vpn_l2vpn_export_targets ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.ipam_l2vpn_export_targets_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: vpn_l2vpn; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.vpn_l2vpn (
+ id bigint NOT NULL,
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ name character varying(100) NOT NULL,
+ slug character varying(100) NOT NULL,
+ type character varying(50) NOT NULL,
+ identifier bigint,
+ description character varying(200) NOT NULL,
+ tenant_id bigint,
+ comments text NOT NULL
+);
+
+
+ALTER TABLE public.vpn_l2vpn OWNER TO netbox;
+
+--
+-- Name: ipam_l2vpn_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.vpn_l2vpn ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.ipam_l2vpn_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: vpn_l2vpn_import_targets; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.vpn_l2vpn_import_targets (
+ id bigint NOT NULL,
+ l2vpn_id bigint NOT NULL,
+ routetarget_id bigint NOT NULL
+);
+
+
+ALTER TABLE public.vpn_l2vpn_import_targets OWNER TO netbox;
+
+--
+-- Name: ipam_l2vpn_import_targets_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.vpn_l2vpn_import_targets ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.ipam_l2vpn_import_targets_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: vpn_l2vpntermination; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.vpn_l2vpntermination (
+ id bigint NOT NULL,
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ assigned_object_id bigint NOT NULL,
+ assigned_object_type_id integer NOT NULL,
+ l2vpn_id bigint NOT NULL,
+ CONSTRAINT ipam_l2vpntermination_assigned_object_id_check CHECK ((assigned_object_id >= 0))
+);
+
+
+ALTER TABLE public.vpn_l2vpntermination OWNER TO netbox;
+
+--
+-- Name: ipam_l2vpntermination_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.vpn_l2vpntermination ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.ipam_l2vpntermination_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: ipam_prefix; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.ipam_prefix (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ id bigint NOT NULL,
+ prefix cidr NOT NULL,
+ status character varying(50) NOT NULL,
+ is_pool boolean NOT NULL,
+ description character varying(200) NOT NULL,
+ role_id bigint,
+ site_id bigint,
+ tenant_id bigint,
+ vlan_id bigint,
+ vrf_id bigint,
+ _children bigint NOT NULL,
+ _depth smallint NOT NULL,
+ mark_utilized boolean NOT NULL,
+ comments text NOT NULL,
+ CONSTRAINT ipam_prefix__children_check CHECK ((_children >= 0)),
+ CONSTRAINT ipam_prefix__depth_check CHECK ((_depth >= 0))
+);
+
+
+ALTER TABLE public.ipam_prefix OWNER TO netbox;
+
+--
+-- Name: ipam_prefix_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.ipam_prefix ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.ipam_prefix_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: ipam_rir; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.ipam_rir (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ id bigint NOT NULL,
+ name character varying(100) NOT NULL,
+ slug character varying(100) NOT NULL,
+ is_private boolean NOT NULL,
+ description character varying(200) NOT NULL
+);
+
+
+ALTER TABLE public.ipam_rir OWNER TO netbox;
+
+--
+-- Name: ipam_rir_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.ipam_rir ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.ipam_rir_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: ipam_role; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.ipam_role (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ id bigint NOT NULL,
+ name character varying(100) NOT NULL,
+ slug character varying(100) NOT NULL,
+ weight smallint NOT NULL,
+ description character varying(200) NOT NULL,
+ CONSTRAINT ipam_role_weight_check CHECK ((weight >= 0))
+);
+
+
+ALTER TABLE public.ipam_role OWNER TO netbox;
+
+--
+-- Name: ipam_role_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.ipam_role ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.ipam_role_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: ipam_routetarget; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.ipam_routetarget (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ id bigint NOT NULL,
+ name character varying(21) NOT NULL,
+ description character varying(200) NOT NULL,
+ tenant_id bigint,
+ comments text NOT NULL
+);
+
+
+ALTER TABLE public.ipam_routetarget OWNER TO netbox;
+
+--
+-- Name: ipam_routetarget_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.ipam_routetarget ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.ipam_routetarget_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: ipam_service; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.ipam_service (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ id bigint NOT NULL,
+ name character varying(100) NOT NULL,
+ protocol character varying(50) NOT NULL,
+ ports integer[] NOT NULL,
+ description character varying(200) NOT NULL,
+ device_id bigint,
+ virtual_machine_id bigint,
+ comments text NOT NULL
+);
+
+
+ALTER TABLE public.ipam_service OWNER TO netbox;
+
+--
+-- Name: ipam_service_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.ipam_service ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.ipam_service_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: ipam_service_ipaddresses; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.ipam_service_ipaddresses (
+ id bigint NOT NULL,
+ service_id bigint NOT NULL,
+ ipaddress_id bigint NOT NULL
+);
+
+
+ALTER TABLE public.ipam_service_ipaddresses OWNER TO netbox;
+
+--
+-- Name: ipam_service_ipaddresses_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.ipam_service_ipaddresses ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.ipam_service_ipaddresses_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: ipam_servicetemplate; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.ipam_servicetemplate (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ id bigint NOT NULL,
+ protocol character varying(50) NOT NULL,
+ ports integer[] NOT NULL,
+ description character varying(200) NOT NULL,
+ name character varying(100) NOT NULL,
+ comments text NOT NULL
+);
+
+
+ALTER TABLE public.ipam_servicetemplate OWNER TO netbox;
+
+--
+-- Name: ipam_servicetemplate_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.ipam_servicetemplate ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.ipam_servicetemplate_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: ipam_vlan; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.ipam_vlan (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ id bigint NOT NULL,
+ vid smallint NOT NULL,
+ name character varying(64) NOT NULL,
+ status character varying(50) NOT NULL,
+ description character varying(200) NOT NULL,
+ group_id bigint,
+ role_id bigint,
+ site_id bigint,
+ tenant_id bigint,
+ comments text NOT NULL,
+ CONSTRAINT ipam_vlan_vid_check CHECK ((vid >= 0))
+);
+
+
+ALTER TABLE public.ipam_vlan OWNER TO netbox;
+
+--
+-- Name: ipam_vlan_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.ipam_vlan ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.ipam_vlan_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: ipam_vlangroup; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.ipam_vlangroup (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ id bigint NOT NULL,
+ name character varying(100) NOT NULL,
+ slug character varying(100) NOT NULL,
+ scope_id bigint,
+ description character varying(200) NOT NULL,
+ scope_type_id integer,
+ max_vid smallint NOT NULL,
+ min_vid smallint NOT NULL,
+ CONSTRAINT ipam_vlangroup_max_vid_check CHECK ((max_vid >= 0)),
+ CONSTRAINT ipam_vlangroup_min_vid_check CHECK ((min_vid >= 0)),
+ CONSTRAINT ipam_vlangroup_scope_id_check CHECK ((scope_id >= 0))
+);
+
+
+ALTER TABLE public.ipam_vlangroup OWNER TO netbox;
+
+--
+-- Name: ipam_vlangroup_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.ipam_vlangroup ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.ipam_vlangroup_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: ipam_vrf; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.ipam_vrf (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ id bigint NOT NULL,
+ name character varying(100) NOT NULL,
+ rd character varying(21),
+ enforce_unique boolean NOT NULL,
+ description character varying(200) NOT NULL,
+ tenant_id bigint,
+ comments text NOT NULL
+);
+
+
+ALTER TABLE public.ipam_vrf OWNER TO netbox;
+
+--
+-- Name: ipam_vrf_export_targets; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.ipam_vrf_export_targets (
+ id bigint NOT NULL,
+ vrf_id bigint NOT NULL,
+ routetarget_id bigint NOT NULL
+);
+
+
+ALTER TABLE public.ipam_vrf_export_targets OWNER TO netbox;
+
+--
+-- Name: ipam_vrf_export_targets_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.ipam_vrf_export_targets ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.ipam_vrf_export_targets_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: ipam_vrf_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.ipam_vrf ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.ipam_vrf_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: ipam_vrf_import_targets; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.ipam_vrf_import_targets (
+ id bigint NOT NULL,
+ vrf_id bigint NOT NULL,
+ routetarget_id bigint NOT NULL
+);
+
+
+ALTER TABLE public.ipam_vrf_import_targets OWNER TO netbox;
+
+--
+-- Name: ipam_vrf_import_targets_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.ipam_vrf_import_targets ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.ipam_vrf_import_targets_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: netbox_attachments_netboxattachment; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.netbox_attachments_netboxattachment (
+ id bigint NOT NULL,
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ object_id bigint NOT NULL,
+ file character varying(100) NOT NULL,
+ name character varying(254) NOT NULL,
+ content_type_id integer NOT NULL,
+ comments text NOT NULL,
+ size bigint,
+ description character varying(200) NOT NULL,
+ CONSTRAINT netbox_attachments_netboxattachment_object_id_check CHECK ((object_id >= 0)),
+ CONSTRAINT netbox_attachments_netboxattachment_size_check CHECK ((size >= 0))
+);
+
+
+ALTER TABLE public.netbox_attachments_netboxattachment OWNER TO netbox;
+
+--
+-- Name: netbox_attachments_netboxattachment_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.netbox_attachments_netboxattachment ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.netbox_attachments_netboxattachment_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: netbox_contract_contract; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.netbox_contract_contract (
+ id bigint NOT NULL,
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ name character varying(100) NOT NULL,
+ internal_partie character varying(50) NOT NULL,
+ status character varying(50) NOT NULL,
+ start_date date,
+ initial_term integer,
+ renewal_term integer,
+ mrc numeric(10,2) NOT NULL,
+ nrc numeric(10,2) NOT NULL,
+ invoice_frequency integer NOT NULL,
+ comments text NOT NULL,
+ external_partie_id bigint,
+ tenant_id bigint,
+ currency character varying(3) NOT NULL,
+ accounting_dimensions jsonb,
+ external_reference character varying(100),
+ documents character varying(200) NOT NULL,
+ end_date date,
+ parent_id bigint,
+ external_partie_object_id bigint,
+ external_partie_object_type_id integer,
+ CONSTRAINT netbox_contract_contract_external_partie_object_id_check CHECK ((external_partie_object_id >= 0))
+);
+
+
+ALTER TABLE public.netbox_contract_contract OWNER TO netbox;
+
+--
+-- Name: netbox_contract_contract_circuit; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.netbox_contract_contract_circuit (
+ id bigint NOT NULL,
+ contract_id bigint NOT NULL,
+ circuit_id bigint NOT NULL
+);
+
+
+ALTER TABLE public.netbox_contract_contract_circuit OWNER TO netbox;
+
+--
+-- Name: netbox_contract_contract_circuit_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.netbox_contract_contract_circuit ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.netbox_contract_contract_circuit_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: netbox_contract_contract_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.netbox_contract_contract ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.netbox_contract_contract_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: netbox_contract_contractassignement; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.netbox_contract_contractassignement (
+ id bigint NOT NULL,
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ object_id bigint NOT NULL,
+ content_type_id integer NOT NULL,
+ contract_id bigint NOT NULL,
+ CONSTRAINT netbox_contract_contractassignement_object_id_check CHECK ((object_id >= 0))
+);
+
+
+ALTER TABLE public.netbox_contract_contractassignement OWNER TO netbox;
+
+--
+-- Name: netbox_contract_contractassignement_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.netbox_contract_contractassignement ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.netbox_contract_contractassignement_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: netbox_contract_invoice; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.netbox_contract_invoice (
+ id bigint NOT NULL,
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ number character varying(100) NOT NULL,
+ period_start date NOT NULL,
+ period_end date NOT NULL,
+ amount numeric(10,2) NOT NULL,
+ currency character varying(3) NOT NULL,
+ accounting_dimensions jsonb,
+ date date,
+ comments text NOT NULL,
+ documents character varying(200) NOT NULL
+);
+
+
+ALTER TABLE public.netbox_contract_invoice OWNER TO netbox;
+
+--
+-- Name: netbox_contract_invoice_contracts; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.netbox_contract_invoice_contracts (
+ id bigint NOT NULL,
+ invoice_id bigint NOT NULL,
+ contract_id bigint NOT NULL
+);
+
+
+ALTER TABLE public.netbox_contract_invoice_contracts OWNER TO netbox;
+
+--
+-- Name: netbox_contract_invoice_contracts_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.netbox_contract_invoice_contracts ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.netbox_contract_invoice_contracts_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: netbox_contract_invoice_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.netbox_contract_invoice ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.netbox_contract_invoice_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: netbox_contract_serviceprovider; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.netbox_contract_serviceprovider (
+ id bigint NOT NULL,
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ name character varying(100) NOT NULL,
+ slug character varying(100) NOT NULL,
+ portal_url character varying(200) NOT NULL,
+ comments text NOT NULL
+);
+
+
+ALTER TABLE public.netbox_contract_serviceprovider OWNER TO netbox;
+
+--
+-- Name: netbox_contract_serviceprovider_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.netbox_contract_serviceprovider ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.netbox_contract_serviceprovider_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: social_auth_association; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.social_auth_association (
+ id bigint NOT NULL,
+ server_url character varying(255) NOT NULL,
+ handle character varying(255) NOT NULL,
+ secret character varying(255) NOT NULL,
+ issued integer NOT NULL,
+ lifetime integer NOT NULL,
+ assoc_type character varying(64) NOT NULL
+);
+
+
+ALTER TABLE public.social_auth_association OWNER TO netbox;
+
+--
+-- Name: social_auth_association_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.social_auth_association ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.social_auth_association_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: social_auth_code; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.social_auth_code (
+ id bigint NOT NULL,
+ email character varying(254) NOT NULL,
+ code character varying(32) NOT NULL,
+ verified boolean NOT NULL,
+ "timestamp" timestamp with time zone NOT NULL
+);
+
+
+ALTER TABLE public.social_auth_code OWNER TO netbox;
+
+--
+-- Name: social_auth_code_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.social_auth_code ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.social_auth_code_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: social_auth_nonce; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.social_auth_nonce (
+ id bigint NOT NULL,
+ server_url character varying(255) NOT NULL,
+ "timestamp" integer NOT NULL,
+ salt character varying(65) NOT NULL
+);
+
+
+ALTER TABLE public.social_auth_nonce OWNER TO netbox;
+
+--
+-- Name: social_auth_nonce_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.social_auth_nonce ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.social_auth_nonce_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: social_auth_partial; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.social_auth_partial (
+ id bigint NOT NULL,
+ token character varying(32) NOT NULL,
+ next_step smallint NOT NULL,
+ backend character varying(32) NOT NULL,
+ "timestamp" timestamp with time zone NOT NULL,
+ data jsonb NOT NULL,
+ CONSTRAINT social_auth_partial_next_step_check CHECK ((next_step >= 0))
+);
+
+
+ALTER TABLE public.social_auth_partial OWNER TO netbox;
+
+--
+-- Name: social_auth_partial_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.social_auth_partial ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.social_auth_partial_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: social_auth_usersocialauth; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.social_auth_usersocialauth (
+ id bigint NOT NULL,
+ provider character varying(32) NOT NULL,
+ uid character varying(255) NOT NULL,
+ user_id integer NOT NULL,
+ created timestamp with time zone NOT NULL,
+ modified timestamp with time zone NOT NULL,
+ extra_data jsonb NOT NULL
+);
+
+
+ALTER TABLE public.social_auth_usersocialauth OWNER TO netbox;
+
+--
+-- Name: social_auth_usersocialauth_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.social_auth_usersocialauth ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.social_auth_usersocialauth_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: taggit_tag; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.taggit_tag (
+ id integer NOT NULL,
+ name character varying(100) NOT NULL,
+ slug character varying(100) NOT NULL
+);
+
+
+ALTER TABLE public.taggit_tag OWNER TO netbox;
+
+--
+-- Name: taggit_tag_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.taggit_tag ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.taggit_tag_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: taggit_taggeditem; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.taggit_taggeditem (
+ id integer NOT NULL,
+ object_id integer NOT NULL,
+ content_type_id integer NOT NULL,
+ tag_id integer NOT NULL
+);
+
+
+ALTER TABLE public.taggit_taggeditem OWNER TO netbox;
+
+--
+-- Name: taggit_taggeditem_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.taggit_taggeditem ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.taggit_taggeditem_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: tenancy_contact; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.tenancy_contact (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ id bigint NOT NULL,
+ name character varying(100) NOT NULL,
+ title character varying(100) NOT NULL,
+ phone character varying(50) NOT NULL,
+ email character varying(254) NOT NULL,
+ address character varying(200) NOT NULL,
+ comments text NOT NULL,
+ group_id bigint,
+ link character varying(200) NOT NULL,
+ description character varying(200) NOT NULL
+);
+
+
+ALTER TABLE public.tenancy_contact OWNER TO netbox;
+
+--
+-- Name: tenancy_contact_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.tenancy_contact ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.tenancy_contact_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: tenancy_contactassignment; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.tenancy_contactassignment (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ id bigint NOT NULL,
+ object_id bigint NOT NULL,
+ priority character varying(50) NOT NULL,
+ contact_id bigint NOT NULL,
+ content_type_id integer NOT NULL,
+ role_id bigint NOT NULL,
+ custom_field_data jsonb NOT NULL,
+ CONSTRAINT tenancy_contactassignment_object_id_check CHECK ((object_id >= 0))
+);
+
+
+ALTER TABLE public.tenancy_contactassignment OWNER TO netbox;
+
+--
+-- Name: tenancy_contactassignment_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.tenancy_contactassignment ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.tenancy_contactassignment_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: tenancy_contactgroup; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.tenancy_contactgroup (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ id bigint NOT NULL,
+ name character varying(100) NOT NULL,
+ slug character varying(100) NOT NULL,
+ description character varying(200) NOT NULL,
+ lft integer NOT NULL,
+ rght integer NOT NULL,
+ tree_id integer NOT NULL,
+ level integer NOT NULL,
+ parent_id bigint,
+ CONSTRAINT tenancy_contactgroup_level_check CHECK ((level >= 0)),
+ CONSTRAINT tenancy_contactgroup_lft_check CHECK ((lft >= 0)),
+ CONSTRAINT tenancy_contactgroup_rght_check CHECK ((rght >= 0)),
+ CONSTRAINT tenancy_contactgroup_tree_id_check CHECK ((tree_id >= 0))
+);
+
+
+ALTER TABLE public.tenancy_contactgroup OWNER TO netbox;
+
+--
+-- Name: tenancy_contactgroup_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.tenancy_contactgroup ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.tenancy_contactgroup_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: tenancy_contactrole; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.tenancy_contactrole (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ id bigint NOT NULL,
+ name character varying(100) NOT NULL,
+ slug character varying(100) NOT NULL,
+ description character varying(200) NOT NULL
+);
+
+
+ALTER TABLE public.tenancy_contactrole OWNER TO netbox;
+
+--
+-- Name: tenancy_contactrole_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.tenancy_contactrole ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.tenancy_contactrole_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: tenancy_tenant; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.tenancy_tenant (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ id bigint NOT NULL,
+ name character varying(100) NOT NULL,
+ slug character varying(100) NOT NULL,
+ description character varying(200) NOT NULL,
+ comments text NOT NULL,
+ group_id bigint
+);
+
+
+ALTER TABLE public.tenancy_tenant OWNER TO netbox;
+
+--
+-- Name: tenancy_tenant_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.tenancy_tenant ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.tenancy_tenant_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: tenancy_tenantgroup; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.tenancy_tenantgroup (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ id bigint NOT NULL,
+ name character varying(100) NOT NULL,
+ slug character varying(100) NOT NULL,
+ description character varying(200) NOT NULL,
+ lft integer NOT NULL,
+ rght integer NOT NULL,
+ tree_id integer NOT NULL,
+ level integer NOT NULL,
+ parent_id bigint,
+ CONSTRAINT tenancy_tenantgroup_level_check CHECK ((level >= 0)),
+ CONSTRAINT tenancy_tenantgroup_lft_check CHECK ((lft >= 0)),
+ CONSTRAINT tenancy_tenantgroup_rght_check CHECK ((rght >= 0)),
+ CONSTRAINT tenancy_tenantgroup_tree_id_check CHECK ((tree_id >= 0))
+);
+
+
+ALTER TABLE public.tenancy_tenantgroup OWNER TO netbox;
+
+--
+-- Name: tenancy_tenantgroup_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.tenancy_tenantgroup ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.tenancy_tenantgroup_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: users_objectpermission; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.users_objectpermission (
+ id bigint NOT NULL,
+ name character varying(100) NOT NULL,
+ description character varying(200) NOT NULL,
+ enabled boolean NOT NULL,
+ actions character varying(30)[] NOT NULL,
+ constraints jsonb
+);
+
+
+ALTER TABLE public.users_objectpermission OWNER TO netbox;
+
+--
+-- Name: users_objectpermission_groups; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.users_objectpermission_groups (
+ id bigint NOT NULL,
+ objectpermission_id bigint NOT NULL,
+ group_id integer NOT NULL
+);
+
+
+ALTER TABLE public.users_objectpermission_groups OWNER TO netbox;
+
+--
+-- Name: users_objectpermission_groups_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.users_objectpermission_groups ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.users_objectpermission_groups_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: users_objectpermission_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.users_objectpermission ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.users_objectpermission_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: users_objectpermission_object_types; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.users_objectpermission_object_types (
+ id bigint NOT NULL,
+ objectpermission_id bigint NOT NULL,
+ contenttype_id integer NOT NULL
+);
+
+
+ALTER TABLE public.users_objectpermission_object_types OWNER TO netbox;
+
+--
+-- Name: users_objectpermission_object_types_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.users_objectpermission_object_types ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.users_objectpermission_object_types_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: users_objectpermission_users; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.users_objectpermission_users (
+ id bigint NOT NULL,
+ objectpermission_id bigint NOT NULL,
+ user_id integer NOT NULL
+);
+
+
+ALTER TABLE public.users_objectpermission_users OWNER TO netbox;
+
+--
+-- Name: users_objectpermission_users_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.users_objectpermission_users ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.users_objectpermission_users_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: users_token; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.users_token (
+ id bigint NOT NULL,
+ created timestamp with time zone NOT NULL,
+ expires timestamp with time zone,
+ key character varying(40) NOT NULL,
+ write_enabled boolean NOT NULL,
+ description character varying(200) NOT NULL,
+ user_id integer NOT NULL,
+ allowed_ips cidr[],
+ last_used timestamp with time zone
+);
+
+
+ALTER TABLE public.users_token OWNER TO netbox;
+
+--
+-- Name: users_token_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.users_token ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.users_token_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: users_userconfig; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.users_userconfig (
+ id bigint NOT NULL,
+ data jsonb NOT NULL,
+ user_id integer NOT NULL
+);
+
+
+ALTER TABLE public.users_userconfig OWNER TO netbox;
+
+--
+-- Name: users_userconfig_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.users_userconfig ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.users_userconfig_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: virtualization_cluster; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.virtualization_cluster (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ id bigint NOT NULL,
+ name character varying(100) NOT NULL,
+ comments text NOT NULL,
+ group_id bigint,
+ site_id bigint,
+ tenant_id bigint,
+ type_id bigint NOT NULL,
+ status character varying(50) NOT NULL,
+ description character varying(200) NOT NULL
+);
+
+
+ALTER TABLE public.virtualization_cluster OWNER TO netbox;
+
+--
+-- Name: virtualization_cluster_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.virtualization_cluster ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.virtualization_cluster_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: virtualization_clustergroup; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.virtualization_clustergroup (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ id bigint NOT NULL,
+ name character varying(100) NOT NULL,
+ slug character varying(100) NOT NULL,
+ description character varying(200) NOT NULL
+);
+
+
+ALTER TABLE public.virtualization_clustergroup OWNER TO netbox;
+
+--
+-- Name: virtualization_clustergroup_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.virtualization_clustergroup ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.virtualization_clustergroup_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: virtualization_clustertype; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.virtualization_clustertype (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ id bigint NOT NULL,
+ name character varying(100) NOT NULL,
+ slug character varying(100) NOT NULL,
+ description character varying(200) NOT NULL
+);
+
+
+ALTER TABLE public.virtualization_clustertype OWNER TO netbox;
+
+--
+-- Name: virtualization_clustertype_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.virtualization_clustertype ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.virtualization_clustertype_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: virtualization_virtualdisk; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.virtualization_virtualdisk (
+ id bigint NOT NULL,
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ name character varying(64) NOT NULL,
+ _name character varying(100) NOT NULL,
+ description character varying(200) NOT NULL,
+ size integer NOT NULL,
+ virtual_machine_id bigint NOT NULL,
+ CONSTRAINT virtualization_virtualdisk_size_check CHECK ((size >= 0))
+);
+
+
+ALTER TABLE public.virtualization_virtualdisk OWNER TO netbox;
+
+--
+-- Name: virtualization_virtualdisk_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.virtualization_virtualdisk ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.virtualization_virtualdisk_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: virtualization_virtualmachine; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.virtualization_virtualmachine (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ id bigint NOT NULL,
+ local_context_data jsonb,
+ name character varying(64) NOT NULL,
+ status character varying(50) NOT NULL,
+ vcpus numeric(6,2),
+ memory integer,
+ disk integer,
+ comments text NOT NULL,
+ cluster_id bigint,
+ platform_id bigint,
+ primary_ip4_id bigint,
+ primary_ip6_id bigint,
+ role_id bigint,
+ tenant_id bigint,
+ _name character varying(100) NOT NULL,
+ site_id bigint,
+ device_id bigint,
+ description character varying(200) NOT NULL,
+ interface_count bigint NOT NULL,
+ config_template_id bigint,
+ virtual_disk_count bigint NOT NULL,
+ CONSTRAINT virtualization_virtualmachine_disk_check CHECK ((disk >= 0)),
+ CONSTRAINT virtualization_virtualmachine_memory_check CHECK ((memory >= 0))
+);
+
+
+ALTER TABLE public.virtualization_virtualmachine OWNER TO netbox;
+
+--
+-- Name: virtualization_virtualmachine_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.virtualization_virtualmachine ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.virtualization_virtualmachine_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: virtualization_vminterface; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.virtualization_vminterface (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ id bigint NOT NULL,
+ enabled boolean NOT NULL,
+ mac_address macaddr,
+ mtu integer,
+ mode character varying(50) NOT NULL,
+ name character varying(64) NOT NULL,
+ _name character varying(100) NOT NULL,
+ description character varying(200) NOT NULL,
+ parent_id bigint,
+ untagged_vlan_id bigint,
+ virtual_machine_id bigint NOT NULL,
+ bridge_id bigint,
+ vrf_id bigint,
+ CONSTRAINT virtualization_vminterface_mtu_check CHECK ((mtu >= 0))
+);
+
+
+ALTER TABLE public.virtualization_vminterface OWNER TO netbox;
+
+--
+-- Name: virtualization_vminterface_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.virtualization_vminterface ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.virtualization_vminterface_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: virtualization_vminterface_tagged_vlans; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.virtualization_vminterface_tagged_vlans (
+ id bigint NOT NULL,
+ vminterface_id bigint NOT NULL,
+ vlan_id bigint NOT NULL
+);
+
+
+ALTER TABLE public.virtualization_vminterface_tagged_vlans OWNER TO netbox;
+
+--
+-- Name: virtualization_vminterface_tagged_vlans_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.virtualization_vminterface_tagged_vlans ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.virtualization_vminterface_tagged_vlans_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: vpn_ikepolicy; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.vpn_ikepolicy (
+ id bigint NOT NULL,
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ description character varying(200) NOT NULL,
+ comments text NOT NULL,
+ name character varying(100) NOT NULL,
+ version smallint NOT NULL,
+ mode character varying NOT NULL,
+ preshared_key text NOT NULL,
+ CONSTRAINT vpn_ikepolicy_version_check CHECK ((version >= 0))
+);
+
+
+ALTER TABLE public.vpn_ikepolicy OWNER TO netbox;
+
+--
+-- Name: vpn_ikepolicy_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.vpn_ikepolicy ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.vpn_ikepolicy_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: vpn_ikepolicy_proposals; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.vpn_ikepolicy_proposals (
+ id bigint NOT NULL,
+ ikepolicy_id bigint NOT NULL,
+ ikeproposal_id bigint NOT NULL
+);
+
+
+ALTER TABLE public.vpn_ikepolicy_proposals OWNER TO netbox;
+
+--
+-- Name: vpn_ikepolicy_proposals_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.vpn_ikepolicy_proposals ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.vpn_ikepolicy_proposals_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: vpn_ikeproposal; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.vpn_ikeproposal (
+ id bigint NOT NULL,
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ description character varying(200) NOT NULL,
+ comments text NOT NULL,
+ name character varying(100) NOT NULL,
+ authentication_method character varying NOT NULL,
+ encryption_algorithm character varying NOT NULL,
+ authentication_algorithm character varying NOT NULL,
+ "group" smallint NOT NULL,
+ sa_lifetime integer,
+ CONSTRAINT vpn_ikeproposal_group_check CHECK (("group" >= 0)),
+ CONSTRAINT vpn_ikeproposal_sa_lifetime_check CHECK ((sa_lifetime >= 0))
+);
+
+
+ALTER TABLE public.vpn_ikeproposal OWNER TO netbox;
+
+--
+-- Name: vpn_ikeproposal_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.vpn_ikeproposal ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.vpn_ikeproposal_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: vpn_ipsecpolicy; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.vpn_ipsecpolicy (
+ id bigint NOT NULL,
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ description character varying(200) NOT NULL,
+ comments text NOT NULL,
+ name character varying(100) NOT NULL,
+ pfs_group smallint,
+ CONSTRAINT vpn_ipsecpolicy_pfs_group_check CHECK ((pfs_group >= 0))
+);
+
+
+ALTER TABLE public.vpn_ipsecpolicy OWNER TO netbox;
+
+--
+-- Name: vpn_ipsecpolicy_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.vpn_ipsecpolicy ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.vpn_ipsecpolicy_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: vpn_ipsecpolicy_proposals; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.vpn_ipsecpolicy_proposals (
+ id bigint NOT NULL,
+ ipsecpolicy_id bigint NOT NULL,
+ ipsecproposal_id bigint NOT NULL
+);
+
+
+ALTER TABLE public.vpn_ipsecpolicy_proposals OWNER TO netbox;
+
+--
+-- Name: vpn_ipsecpolicy_proposals_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.vpn_ipsecpolicy_proposals ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.vpn_ipsecpolicy_proposals_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: vpn_ipsecprofile; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.vpn_ipsecprofile (
+ id bigint NOT NULL,
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ description character varying(200) NOT NULL,
+ comments text NOT NULL,
+ name character varying(100) NOT NULL,
+ mode character varying NOT NULL,
+ ike_policy_id bigint NOT NULL,
+ ipsec_policy_id bigint NOT NULL
+);
+
+
+ALTER TABLE public.vpn_ipsecprofile OWNER TO netbox;
+
+--
+-- Name: vpn_ipsecprofile_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.vpn_ipsecprofile ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.vpn_ipsecprofile_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: vpn_ipsecproposal; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.vpn_ipsecproposal (
+ id bigint NOT NULL,
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ description character varying(200) NOT NULL,
+ comments text NOT NULL,
+ name character varying(100) NOT NULL,
+ encryption_algorithm character varying NOT NULL,
+ authentication_algorithm character varying NOT NULL,
+ sa_lifetime_seconds integer,
+ sa_lifetime_data integer,
+ CONSTRAINT vpn_ipsecproposal_sa_lifetime_data_check CHECK ((sa_lifetime_data >= 0)),
+ CONSTRAINT vpn_ipsecproposal_sa_lifetime_seconds_check CHECK ((sa_lifetime_seconds >= 0))
+);
+
+
+ALTER TABLE public.vpn_ipsecproposal OWNER TO netbox;
+
+--
+-- Name: vpn_ipsecproposal_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.vpn_ipsecproposal ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.vpn_ipsecproposal_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: vpn_tunnel; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.vpn_tunnel (
+ id bigint NOT NULL,
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ description character varying(200) NOT NULL,
+ comments text NOT NULL,
+ name character varying(100) NOT NULL,
+ status character varying(50) NOT NULL,
+ group_id bigint,
+ encapsulation character varying(50) NOT NULL,
+ tunnel_id bigint,
+ ipsec_profile_id bigint,
+ tenant_id bigint,
+ CONSTRAINT vpn_tunnel_tunnel_id_check CHECK ((tunnel_id >= 0))
+);
+
+
+ALTER TABLE public.vpn_tunnel OWNER TO netbox;
+
+--
+-- Name: vpn_tunnel_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.vpn_tunnel ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.vpn_tunnel_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: vpn_tunnelgroup; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.vpn_tunnelgroup (
+ id bigint NOT NULL,
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ name character varying(100) NOT NULL,
+ slug character varying(100) NOT NULL,
+ description character varying(200) NOT NULL
+);
+
+
+ALTER TABLE public.vpn_tunnelgroup OWNER TO netbox;
+
+--
+-- Name: vpn_tunnelgroup_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.vpn_tunnelgroup ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.vpn_tunnelgroup_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: vpn_tunneltermination; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.vpn_tunneltermination (
+ id bigint NOT NULL,
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ role character varying(50) NOT NULL,
+ termination_id bigint,
+ termination_type_id integer NOT NULL,
+ outside_ip_id bigint,
+ tunnel_id bigint NOT NULL,
+ CONSTRAINT vpn_tunneltermination_termination_id_check CHECK ((termination_id >= 0))
+);
+
+
+ALTER TABLE public.vpn_tunneltermination OWNER TO netbox;
+
+--
+-- Name: vpn_tunneltermination_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.vpn_tunneltermination ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.vpn_tunneltermination_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: wireless_wirelesslan; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.wireless_wirelesslan (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ id bigint NOT NULL,
+ ssid character varying(32) NOT NULL,
+ group_id bigint,
+ description character varying(200) NOT NULL,
+ auth_cipher character varying(50) NOT NULL,
+ auth_psk character varying(64) NOT NULL,
+ auth_type character varying(50) NOT NULL,
+ vlan_id bigint,
+ tenant_id bigint,
+ comments text NOT NULL,
+ status character varying(50) NOT NULL
+);
+
+
+ALTER TABLE public.wireless_wirelesslan OWNER TO netbox;
+
+--
+-- Name: wireless_wirelesslan_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.wireless_wirelesslan ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.wireless_wirelesslan_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: wireless_wirelesslangroup; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.wireless_wirelesslangroup (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ id bigint NOT NULL,
+ name character varying(100) NOT NULL,
+ slug character varying(100) NOT NULL,
+ description character varying(200) NOT NULL,
+ lft integer NOT NULL,
+ rght integer NOT NULL,
+ tree_id integer NOT NULL,
+ level integer NOT NULL,
+ parent_id bigint,
+ CONSTRAINT wireless_wirelesslangroup_level_check CHECK ((level >= 0)),
+ CONSTRAINT wireless_wirelesslangroup_lft_check CHECK ((lft >= 0)),
+ CONSTRAINT wireless_wirelesslangroup_rght_check CHECK ((rght >= 0)),
+ CONSTRAINT wireless_wirelesslangroup_tree_id_check CHECK ((tree_id >= 0))
+);
+
+
+ALTER TABLE public.wireless_wirelesslangroup OWNER TO netbox;
+
+--
+-- Name: wireless_wirelesslangroup_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.wireless_wirelesslangroup ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.wireless_wirelesslangroup_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Name: wireless_wirelesslink; Type: TABLE; Schema: public; Owner: netbox
+--
+
+CREATE TABLE public.wireless_wirelesslink (
+ created timestamp with time zone,
+ last_updated timestamp with time zone,
+ custom_field_data jsonb NOT NULL,
+ id bigint NOT NULL,
+ ssid character varying(32) NOT NULL,
+ status character varying(50) NOT NULL,
+ description character varying(200) NOT NULL,
+ auth_cipher character varying(50) NOT NULL,
+ auth_psk character varying(64) NOT NULL,
+ auth_type character varying(50) NOT NULL,
+ _interface_a_device_id bigint,
+ _interface_b_device_id bigint,
+ interface_a_id bigint NOT NULL,
+ interface_b_id bigint NOT NULL,
+ tenant_id bigint,
+ comments text NOT NULL
+);
+
+
+ALTER TABLE public.wireless_wirelesslink OWNER TO netbox;
+
+--
+-- Name: wireless_wirelesslink_id_seq; Type: SEQUENCE; Schema: public; Owner: netbox
+--
+
+ALTER TABLE public.wireless_wirelesslink ALTER COLUMN id ADD GENERATED BY DEFAULT AS IDENTITY (
+ SEQUENCE NAME public.wireless_wirelesslink_id_seq
+ START WITH 1
+ INCREMENT BY 1
+ NO MINVALUE
+ NO MAXVALUE
+ CACHE 1
+);
+
+
+--
+-- Data for Name: auth_group; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.auth_group (id, name) FROM stdin;
+\.
+
+
+--
+-- Data for Name: auth_group_permissions; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.auth_group_permissions (id, group_id, permission_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: auth_permission; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.auth_permission (id, name, content_type_id, codename) FROM stdin;
+1 Can add log entry 64 add_logentry
+2 Can change log entry 64 change_logentry
+3 Can delete log entry 64 delete_logentry
+4 Can view log entry 64 view_logentry
+5 Can add permission 65 add_permission
+6 Can change permission 65 change_permission
+7 Can delete permission 65 delete_permission
+8 Can view permission 65 view_permission
+9 Can add group 66 add_group
+10 Can change group 66 change_group
+11 Can delete group 66 delete_group
+12 Can view group 66 view_group
+13 Can add user 67 add_user
+14 Can change user 67 change_user
+15 Can delete user 67 delete_user
+16 Can view user 67 view_user
+17 Can add content type 68 add_contenttype
+18 Can change content type 68 change_contenttype
+19 Can delete content type 68 delete_contenttype
+20 Can view content type 68 view_contenttype
+21 Can add session 69 add_session
+22 Can change session 69 change_session
+23 Can delete session 69 delete_session
+24 Can view session 69 view_session
+25 Can add association 70 add_association
+26 Can change association 70 change_association
+27 Can delete association 70 delete_association
+28 Can view association 70 view_association
+29 Can add code 71 add_code
+30 Can change code 71 change_code
+31 Can delete code 71 delete_code
+32 Can view code 71 view_code
+33 Can add nonce 72 add_nonce
+34 Can change nonce 72 change_nonce
+35 Can delete nonce 72 delete_nonce
+36 Can view nonce 72 view_nonce
+37 Can add user social auth 73 add_usersocialauth
+38 Can change user social auth 73 change_usersocialauth
+39 Can delete user social auth 73 delete_usersocialauth
+40 Can view user social auth 73 view_usersocialauth
+41 Can add partial 74 add_partial
+42 Can change partial 74 change_partial
+43 Can delete partial 74 delete_partial
+44 Can view partial 74 view_partial
+45 Can add tag 75 add_tag
+46 Can change tag 75 change_tag
+47 Can delete tag 75 delete_tag
+48 Can view tag 75 view_tag
+49 Can add tagged item 76 add_taggeditem
+50 Can change tagged item 76 change_taggeditem
+51 Can delete tagged item 76 delete_taggeditem
+52 Can view tagged item 76 view_taggeditem
+53 Can add circuit 1 add_circuit
+54 Can change circuit 1 change_circuit
+55 Can delete circuit 1 delete_circuit
+56 Can view circuit 1 view_circuit
+57 Can add circuit termination 2 add_circuittermination
+58 Can change circuit termination 2 change_circuittermination
+59 Can delete circuit termination 2 delete_circuittermination
+60 Can view circuit termination 2 view_circuittermination
+61 Can add circuit type 3 add_circuittype
+62 Can change circuit type 3 change_circuittype
+63 Can delete circuit type 3 delete_circuittype
+64 Can view circuit type 3 view_circuittype
+65 Can add provider 4 add_provider
+66 Can change provider 4 change_provider
+67 Can delete provider 4 delete_provider
+68 Can view provider 4 view_provider
+69 Can add provider network 5 add_providernetwork
+70 Can change provider network 5 change_providernetwork
+71 Can delete provider network 5 delete_providernetwork
+72 Can view provider network 5 view_providernetwork
+73 Can add cable 6 add_cable
+74 Can change cable 6 change_cable
+75 Can delete cable 6 delete_cable
+76 Can view cable 6 view_cable
+77 Can add cable path 77 add_cablepath
+78 Can change cable path 77 change_cablepath
+79 Can delete cable path 77 delete_cablepath
+80 Can view cable path 77 view_cablepath
+81 Can add console port 7 add_consoleport
+82 Can change console port 7 change_consoleport
+83 Can delete console port 7 delete_consoleport
+84 Can view console port 7 view_consoleport
+85 Can add console port template 78 add_consoleporttemplate
+86 Can change console port template 78 change_consoleporttemplate
+87 Can delete console port template 78 delete_consoleporttemplate
+88 Can view console port template 78 view_consoleporttemplate
+89 Can add console server port 8 add_consoleserverport
+90 Can change console server port 8 change_consoleserverport
+91 Can delete console server port 8 delete_consoleserverport
+92 Can view console server port 8 view_consoleserverport
+93 Can add console server port template 79 add_consoleserverporttemplate
+94 Can change console server port template 79 change_consoleserverporttemplate
+95 Can delete console server port template 79 delete_consoleserverporttemplate
+96 Can view console server port template 79 view_consoleserverporttemplate
+97 Can add device 9 add_device
+98 Can change device 9 change_device
+99 Can delete device 9 delete_device
+100 Can view device 9 view_device
+101 Can add device bay 10 add_devicebay
+102 Can change device bay 10 change_devicebay
+103 Can delete device bay 10 delete_devicebay
+104 Can view device bay 10 view_devicebay
+105 Can add device bay template 80 add_devicebaytemplate
+106 Can change device bay template 80 change_devicebaytemplate
+107 Can delete device bay template 80 delete_devicebaytemplate
+108 Can view device bay template 80 view_devicebaytemplate
+109 Can add device role 11 add_devicerole
+110 Can change device role 11 change_devicerole
+111 Can delete device role 11 delete_devicerole
+112 Can view device role 11 view_devicerole
+113 Can add device type 12 add_devicetype
+114 Can change device type 12 change_devicetype
+115 Can delete device type 12 delete_devicetype
+116 Can view device type 12 view_devicetype
+117 Can add front port 13 add_frontport
+118 Can change front port 13 change_frontport
+119 Can delete front port 13 delete_frontport
+120 Can view front port 13 view_frontport
+121 Can add front port template 81 add_frontporttemplate
+122 Can change front port template 81 change_frontporttemplate
+123 Can delete front port template 81 delete_frontporttemplate
+124 Can view front port template 81 view_frontporttemplate
+125 Can add interface 14 add_interface
+126 Can change interface 14 change_interface
+127 Can delete interface 14 delete_interface
+128 Can view interface 14 view_interface
+129 Can add interface template 82 add_interfacetemplate
+130 Can change interface template 82 change_interfacetemplate
+131 Can delete interface template 82 delete_interfacetemplate
+132 Can view interface template 82 view_interfacetemplate
+133 Can add inventory item 15 add_inventoryitem
+134 Can change inventory item 15 change_inventoryitem
+135 Can delete inventory item 15 delete_inventoryitem
+136 Can view inventory item 15 view_inventoryitem
+137 Can add location 16 add_location
+138 Can change location 16 change_location
+139 Can delete location 16 delete_location
+140 Can view location 16 view_location
+141 Can add manufacturer 17 add_manufacturer
+142 Can change manufacturer 17 change_manufacturer
+143 Can delete manufacturer 17 delete_manufacturer
+144 Can view manufacturer 17 view_manufacturer
+145 Can add platform 21 add_platform
+146 Can change platform 21 change_platform
+147 Can delete platform 21 delete_platform
+148 Can view platform 21 view_platform
+149 Can add power feed 22 add_powerfeed
+150 Can change power feed 22 change_powerfeed
+151 Can delete power feed 22 delete_powerfeed
+152 Can view power feed 22 view_powerfeed
+153 Can add power outlet 23 add_poweroutlet
+154 Can change power outlet 23 change_poweroutlet
+155 Can delete power outlet 23 delete_poweroutlet
+156 Can view power outlet 23 view_poweroutlet
+157 Can add power outlet template 83 add_poweroutlettemplate
+158 Can change power outlet template 83 change_poweroutlettemplate
+159 Can delete power outlet template 83 delete_poweroutlettemplate
+160 Can view power outlet template 83 view_poweroutlettemplate
+161 Can add power panel 24 add_powerpanel
+162 Can change power panel 24 change_powerpanel
+163 Can delete power panel 24 delete_powerpanel
+164 Can view power panel 24 view_powerpanel
+165 Can add power port 25 add_powerport
+166 Can change power port 25 change_powerport
+167 Can delete power port 25 delete_powerport
+168 Can view power port 25 view_powerport
+169 Can add power port template 84 add_powerporttemplate
+170 Can change power port template 84 change_powerporttemplate
+171 Can delete power port template 84 delete_powerporttemplate
+172 Can view power port template 84 view_powerporttemplate
+173 Can add rack 26 add_rack
+174 Can change rack 26 change_rack
+175 Can delete rack 26 delete_rack
+176 Can view rack 26 view_rack
+177 Can add rack reservation 27 add_rackreservation
+178 Can change rack reservation 27 change_rackreservation
+179 Can delete rack reservation 27 delete_rackreservation
+180 Can view rack reservation 27 view_rackreservation
+181 Can add rack role 28 add_rackrole
+182 Can change rack role 28 change_rackrole
+183 Can delete rack role 28 delete_rackrole
+184 Can view rack role 28 view_rackrole
+185 Can add rear port 29 add_rearport
+186 Can change rear port 29 change_rearport
+187 Can delete rear port 29 delete_rearport
+188 Can view rear port 29 view_rearport
+189 Can add rear port template 85 add_rearporttemplate
+190 Can change rear port template 85 change_rearporttemplate
+191 Can delete rear port template 85 delete_rearporttemplate
+192 Can view rear port template 85 view_rearporttemplate
+193 Can add region 30 add_region
+194 Can change region 30 change_region
+195 Can delete region 30 delete_region
+196 Can view region 30 view_region
+197 Can add site 31 add_site
+198 Can change site 31 change_site
+199 Can delete site 31 delete_site
+200 Can view site 31 view_site
+201 Can add site group 32 add_sitegroup
+202 Can change site group 32 change_sitegroup
+203 Can delete site group 32 delete_sitegroup
+204 Can view site group 32 view_sitegroup
+205 Can add virtual chassis 33 add_virtualchassis
+206 Can change virtual chassis 33 change_virtualchassis
+207 Can delete virtual chassis 33 delete_virtualchassis
+208 Can view virtual chassis 33 view_virtualchassis
+209 Can add module type 20 add_moduletype
+210 Can change module type 20 change_moduletype
+211 Can delete module type 20 delete_moduletype
+212 Can view module type 20 view_moduletype
+213 Can add module bay 19 add_modulebay
+214 Can change module bay 19 change_modulebay
+215 Can delete module bay 19 delete_modulebay
+216 Can view module bay 19 view_modulebay
+217 Can add module 18 add_module
+218 Can change module 18 change_module
+219 Can delete module 18 delete_module
+220 Can view module 18 view_module
+221 Can add module bay template 86 add_modulebaytemplate
+222 Can change module bay template 86 change_modulebaytemplate
+223 Can delete module bay template 86 delete_modulebaytemplate
+224 Can view module bay template 86 view_modulebaytemplate
+225 Can add inventory item role 87 add_inventoryitemrole
+226 Can change inventory item role 87 change_inventoryitemrole
+227 Can delete inventory item role 87 delete_inventoryitemrole
+228 Can view inventory item role 87 view_inventoryitemrole
+229 Can add inventory item template 88 add_inventoryitemtemplate
+230 Can change inventory item template 88 change_inventoryitemtemplate
+231 Can delete inventory item template 88 delete_inventoryitemtemplate
+232 Can view inventory item template 88 view_inventoryitemtemplate
+233 Can add cable termination 89 add_cabletermination
+234 Can change cable termination 89 change_cabletermination
+235 Can delete cable termination 89 delete_cabletermination
+236 Can view cable termination 89 view_cabletermination
+237 Can add virtual device context 34 add_virtualdevicecontext
+238 Can change virtual device context 34 change_virtualdevicecontext
+239 Can delete virtual device context 34 delete_virtualdevicecontext
+240 Can view virtual device context 34 view_virtualdevicecontext
+241 Can add aggregate 36 add_aggregate
+242 Can change aggregate 36 change_aggregate
+243 Can delete aggregate 36 delete_aggregate
+244 Can view aggregate 36 view_aggregate
+245 Can add IP address 39 add_ipaddress
+246 Can change IP address 39 change_ipaddress
+247 Can delete IP address 39 delete_ipaddress
+248 Can view IP address 39 view_ipaddress
+249 Can add prefix 42 add_prefix
+250 Can change prefix 42 change_prefix
+251 Can delete prefix 42 delete_prefix
+252 Can view prefix 42 view_prefix
+253 Can add RIR 43 add_rir
+254 Can change RIR 43 change_rir
+255 Can delete RIR 43 delete_rir
+256 Can view RIR 43 view_rir
+257 Can add role 44 add_role
+258 Can change role 44 change_role
+259 Can delete role 44 delete_role
+260 Can view role 44 view_role
+261 Can add route target 45 add_routetarget
+262 Can change route target 45 change_routetarget
+263 Can delete route target 45 delete_routetarget
+264 Can view route target 45 view_routetarget
+265 Can add VRF 50 add_vrf
+266 Can change VRF 50 change_vrf
+267 Can delete VRF 50 delete_vrf
+268 Can view VRF 50 view_vrf
+269 Can add VLAN group 49 add_vlangroup
+270 Can change VLAN group 49 change_vlangroup
+271 Can delete VLAN group 49 delete_vlangroup
+272 Can view VLAN group 49 view_vlangroup
+273 Can add VLAN 48 add_vlan
+274 Can change VLAN 48 change_vlan
+275 Can delete VLAN 48 delete_vlan
+276 Can view VLAN 48 view_vlan
+277 Can add service 46 add_service
+278 Can change service 46 change_service
+279 Can delete service 46 delete_service
+280 Can view service 46 view_service
+281 Can add IP range 40 add_iprange
+282 Can change IP range 40 change_iprange
+283 Can delete IP range 40 delete_iprange
+284 Can view IP range 40 view_iprange
+285 Can add FHRP group 38 add_fhrpgroup
+286 Can change FHRP group 38 change_fhrpgroup
+287 Can delete FHRP group 38 delete_fhrpgroup
+288 Can view FHRP group 38 view_fhrpgroup
+289 Can add FHRP group assignment 90 add_fhrpgroupassignment
+290 Can change FHRP group assignment 90 change_fhrpgroupassignment
+291 Can delete FHRP group assignment 90 delete_fhrpgroupassignment
+292 Can view FHRP group assignment 90 view_fhrpgroupassignment
+293 Can add ASN 37 add_asn
+294 Can change ASN 37 change_asn
+295 Can delete ASN 37 delete_asn
+296 Can view ASN 37 view_asn
+297 Can add service template 47 add_servicetemplate
+298 Can change service template 47 change_servicetemplate
+299 Can delete service template 47 delete_servicetemplate
+300 Can view service template 47 view_servicetemplate
+301 Can add L2VPN 41 add_l2vpn
+302 Can change L2VPN 41 change_l2vpn
+303 Can delete L2VPN 41 delete_l2vpn
+304 Can view L2VPN 41 view_l2vpn
+305 Can add L2VPN termination 91 add_l2vpntermination
+306 Can change L2VPN termination 91 change_l2vpntermination
+307 Can delete L2VPN termination 91 delete_l2vpntermination
+308 Can view L2VPN termination 91 view_l2vpntermination
+309 Can add report 92 add_report
+310 Can change report 92 change_report
+311 Can delete report 92 delete_report
+312 Can view report 92 view_report
+313 Can add script 93 add_script
+314 Can change script 93 change_script
+315 Can delete script 93 delete_script
+316 Can view script 93 view_script
+317 Can add config context 94 add_configcontext
+318 Can change config context 94 change_configcontext
+319 Can delete config context 94 delete_configcontext
+320 Can view config context 94 view_configcontext
+321 Can add tag 95 add_tag
+322 Can change tag 95 change_tag
+323 Can delete tag 95 delete_tag
+324 Can view tag 95 view_tag
+325 Can add webhook 96 add_webhook
+326 Can change webhook 96 change_webhook
+327 Can delete webhook 96 delete_webhook
+328 Can view webhook 96 view_webhook
+329 Can add tagged item 97 add_taggeditem
+330 Can change tagged item 97 change_taggeditem
+331 Can delete tagged item 97 delete_taggeditem
+332 Can view tagged item 97 view_taggeditem
+333 Can add object change 98 add_objectchange
+334 Can change object change 98 change_objectchange
+335 Can delete object change 98 delete_objectchange
+336 Can view object change 98 view_objectchange
+337 Can add journal entry 35 add_journalentry
+338 Can change journal entry 35 change_journalentry
+339 Can delete journal entry 35 delete_journalentry
+340 Can view journal entry 35 view_journalentry
+345 Can add image attachment 100 add_imageattachment
+346 Can change image attachment 100 change_imageattachment
+347 Can delete image attachment 100 delete_imageattachment
+348 Can view image attachment 100 view_imageattachment
+349 Can add export template 101 add_exporttemplate
+350 Can change export template 101 change_exporttemplate
+351 Can delete export template 101 delete_exporttemplate
+352 Can view export template 101 view_exporttemplate
+353 Can add custom link 102 add_customlink
+354 Can change custom link 102 change_customlink
+355 Can delete custom link 102 delete_customlink
+356 Can view custom link 102 view_customlink
+357 Can add custom field 103 add_customfield
+358 Can change custom field 103 change_customfield
+359 Can delete custom field 103 delete_customfield
+360 Can view custom field 103 view_customfield
+361 Can add config revision 104 add_configrevision
+362 Can change config revision 104 change_configrevision
+363 Can delete config revision 104 delete_configrevision
+364 Can view config revision 104 view_configrevision
+365 Can add saved filter 105 add_savedfilter
+366 Can change saved filter 105 change_savedfilter
+367 Can delete saved filter 105 delete_savedfilter
+368 Can view saved filter 105 view_savedfilter
+369 Can add cached value 106 add_cachedvalue
+370 Can change cached value 106 change_cachedvalue
+371 Can delete cached value 106 delete_cachedvalue
+372 Can view cached value 106 view_cachedvalue
+373 Can add branch 107 add_branch
+374 Can change branch 107 change_branch
+375 Can delete branch 107 delete_branch
+376 Can view branch 107 view_branch
+377 Can add staged change 108 add_stagedchange
+378 Can change staged change 108 change_stagedchange
+379 Can delete staged change 108 delete_stagedchange
+380 Can view staged change 108 view_stagedchange
+381 Can add tenant group 55 add_tenantgroup
+382 Can change tenant group 55 change_tenantgroup
+383 Can delete tenant group 55 delete_tenantgroup
+384 Can view tenant group 55 view_tenantgroup
+385 Can add tenant 54 add_tenant
+386 Can change tenant 54 change_tenant
+387 Can delete tenant 54 delete_tenant
+388 Can view tenant 54 view_tenant
+389 Can add contact role 53 add_contactrole
+390 Can change contact role 53 change_contactrole
+391 Can delete contact role 53 delete_contactrole
+392 Can view contact role 53 view_contactrole
+393 Can add contact group 52 add_contactgroup
+394 Can change contact group 52 change_contactgroup
+395 Can delete contact group 52 delete_contactgroup
+396 Can view contact group 52 view_contactgroup
+397 Can add contact 51 add_contact
+398 Can change contact 51 change_contact
+399 Can delete contact 51 delete_contact
+400 Can view contact 51 view_contact
+401 Can add contact assignment 109 add_contactassignment
+402 Can change contact assignment 109 change_contactassignment
+403 Can delete contact assignment 109 delete_contactassignment
+404 Can view contact assignment 109 view_contactassignment
+413 Can add User Preferences 112 add_userconfig
+414 Can change User Preferences 112 change_userconfig
+415 Can delete User Preferences 112 delete_userconfig
+416 Can view User Preferences 112 view_userconfig
+417 Can add token 113 add_token
+418 Can change token 113 change_token
+419 Can delete token 113 delete_token
+420 Can view token 113 view_token
+421 Can add permission 114 add_objectpermission
+422 Can change permission 114 change_objectpermission
+423 Can delete permission 114 delete_objectpermission
+424 Can view permission 114 view_objectpermission
+425 Can add cluster 56 add_cluster
+426 Can change cluster 56 change_cluster
+427 Can delete cluster 56 delete_cluster
+428 Can view cluster 56 view_cluster
+429 Can add cluster group 57 add_clustergroup
+430 Can change cluster group 57 change_clustergroup
+431 Can delete cluster group 57 delete_clustergroup
+432 Can view cluster group 57 view_clustergroup
+433 Can add cluster type 58 add_clustertype
+434 Can change cluster type 58 change_clustertype
+435 Can delete cluster type 58 delete_clustertype
+436 Can view cluster type 58 view_clustertype
+437 Can add virtual machine 59 add_virtualmachine
+438 Can change virtual machine 59 change_virtualmachine
+439 Can delete virtual machine 59 delete_virtualmachine
+440 Can view virtual machine 59 view_virtualmachine
+441 Can add interface 60 add_vminterface
+442 Can change interface 60 change_vminterface
+443 Can delete interface 60 delete_vminterface
+444 Can view interface 60 view_vminterface
+445 Can add Wireless LAN Group 62 add_wirelesslangroup
+446 Can change Wireless LAN Group 62 change_wirelesslangroup
+447 Can delete Wireless LAN Group 62 delete_wirelesslangroup
+448 Can view Wireless LAN Group 62 view_wirelesslangroup
+449 Can add Wireless LAN 61 add_wirelesslan
+450 Can change Wireless LAN 61 change_wirelesslan
+451 Can delete Wireless LAN 61 delete_wirelesslan
+452 Can view Wireless LAN 61 view_wirelesslan
+453 Can add wireless link 63 add_wirelesslink
+454 Can change wireless link 63 change_wirelesslink
+455 Can delete wireless link 63 delete_wirelesslink
+456 Can view wireless link 63 view_wirelesslink
+457 Access admin page 115 view
+458 Can add contract 116 add_contract
+459 Can change contract 116 change_contract
+460 Can delete contract 116 delete_contract
+461 Can view contract 116 view_contract
+462 Can add service provider 117 add_serviceprovider
+463 Can change service provider 117 change_serviceprovider
+464 Can delete service provider 117 delete_serviceprovider
+465 Can view service provider 117 view_serviceprovider
+466 Can add invoice 118 add_invoice
+467 Can change invoice 118 change_invoice
+468 Can delete invoice 118 delete_invoice
+469 Can view invoice 118 view_invoice
+470 Can add contract assignement 119 add_contractassignement
+471 Can change contract assignement 119 change_contractassignement
+472 Can delete contract assignement 119 delete_contractassignement
+473 Can view contract assignement 119 view_contractassignement
+474 Can add data source 120 add_datasource
+475 Can change data source 120 change_datasource
+476 Can delete data source 120 delete_datasource
+477 Can view data source 120 view_datasource
+478 Can add data file 121 add_datafile
+479 Can change data file 121 change_datafile
+480 Can delete data file 121 delete_datafile
+481 Can view data file 121 view_datafile
+482 Can add auto sync record 122 add_autosyncrecord
+483 Can change auto sync record 122 change_autosyncrecord
+484 Can delete auto sync record 122 delete_autosyncrecord
+485 Can view auto sync record 122 view_autosyncrecord
+486 Can add managed file 123 add_managedfile
+487 Can change managed file 123 change_managedfile
+488 Can delete managed file 123 delete_managedfile
+489 Can view managed file 123 view_managedfile
+490 Can add job 124 add_job
+491 Can change job 124 change_job
+492 Can delete job 124 delete_job
+493 Can view job 124 view_job
+494 Can add provider account 125 add_provideraccount
+495 Can change provider account 125 change_provideraccount
+496 Can delete provider account 125 delete_provideraccount
+497 Can view provider account 125 view_provideraccount
+498 Can add ASN range 126 add_asnrange
+499 Can change ASN range 126 change_asnrange
+500 Can delete ASN range 126 delete_asnrange
+501 Can view ASN range 126 view_asnrange
+502 Can add config template 127 add_configtemplate
+503 Can change config template 127 change_configtemplate
+504 Can delete config template 127 delete_configtemplate
+505 Can view config template 127 view_configtemplate
+506 Can add dashboard 128 add_dashboard
+507 Can change dashboard 128 change_dashboard
+508 Can delete dashboard 128 delete_dashboard
+509 Can view dashboard 128 view_dashboard
+510 Can add report module 129 add_reportmodule
+511 Can change report module 129 change_reportmodule
+512 Can delete report module 129 delete_reportmodule
+513 Can view report module 129 view_reportmodule
+514 Can add script module 130 add_scriptmodule
+515 Can change script module 130 change_scriptmodule
+516 Can delete script module 130 delete_scriptmodule
+517 Can view script module 130 view_scriptmodule
+518 Can add NetBox Attachment 131 add_netboxattachment
+519 Can change NetBox Attachment 131 change_netboxattachment
+520 Can delete NetBox Attachment 131 delete_netboxattachment
+521 Can view NetBox Attachment 131 view_netboxattachment
+522 Can add token 134 add_usertoken
+523 Can change token 134 change_usertoken
+524 Can delete token 134 delete_usertoken
+525 Can view token 134 view_usertoken
+526 Can add bookmark 133 add_bookmark
+527 Can change bookmark 133 change_bookmark
+528 Can delete bookmark 133 delete_bookmark
+529 Can view bookmark 133 view_bookmark
+530 Can add custom field choice set 132 add_customfieldchoiceset
+531 Can change custom field choice set 132 change_customfieldchoiceset
+532 Can delete custom field choice set 132 delete_customfieldchoiceset
+533 Can view custom field choice set 132 view_customfieldchoiceset
+534 Can add Group 135 add_netboxgroup
+535 Can change Group 135 change_netboxgroup
+536 Can delete Group 135 delete_netboxgroup
+537 Can view Group 135 view_netboxgroup
+538 Can add User 136 add_netboxuser
+539 Can change User 136 change_netboxuser
+540 Can delete User 136 delete_netboxuser
+541 Can view User 136 view_netboxuser
+542 Can add content type 150 add_contenttype
+543 Can change content type 150 change_contenttype
+544 Can delete content type 150 delete_contenttype
+545 Can view content type 150 view_contenttype
+546 Can add eventrule 138 add_eventrule
+547 Can change eventrule 138 change_eventrule
+548 Can delete eventrule 138 delete_eventrule
+549 Can view eventrule 138 view_eventrule
+550 Can add virtual disk 139 add_virtualdisk
+551 Can change virtual disk 139 change_virtualdisk
+552 Can delete virtual disk 139 delete_virtualdisk
+553 Can view virtual disk 139 view_virtualdisk
+554 Can add IKE proposal 140 add_ikeproposal
+555 Can change IKE proposal 140 change_ikeproposal
+556 Can delete IKE proposal 140 delete_ikeproposal
+557 Can view IKE proposal 140 view_ikeproposal
+558 Can add IKE policy 141 add_ikepolicy
+559 Can change IKE policy 141 change_ikepolicy
+560 Can delete IKE policy 141 delete_ikepolicy
+561 Can view IKE policy 141 view_ikepolicy
+562 Can add IPSec proposal 142 add_ipsecproposal
+563 Can change IPSec proposal 142 change_ipsecproposal
+564 Can delete IPSec proposal 142 delete_ipsecproposal
+565 Can view IPSec proposal 142 view_ipsecproposal
+566 Can add IPSec policy 143 add_ipsecpolicy
+567 Can change IPSec policy 143 change_ipsecpolicy
+568 Can delete IPSec policy 143 delete_ipsecpolicy
+569 Can view IPSec policy 143 view_ipsecpolicy
+570 Can add IPSec profile 144 add_ipsecprofile
+571 Can change IPSec profile 144 change_ipsecprofile
+572 Can delete IPSec profile 144 delete_ipsecprofile
+573 Can view IPSec profile 144 view_ipsecprofile
+574 Can add tunnel group 147 add_tunnelgroup
+575 Can change tunnel group 147 change_tunnelgroup
+576 Can delete tunnel group 147 delete_tunnelgroup
+577 Can view tunnel group 147 view_tunnelgroup
+578 Can add tunnel 148 add_tunnel
+579 Can change tunnel 148 change_tunnel
+580 Can delete tunnel 148 delete_tunnel
+581 Can view tunnel 148 view_tunnel
+582 Can add tunnel termination 149 add_tunneltermination
+583 Can change tunnel termination 149 change_tunneltermination
+584 Can delete tunnel termination 149 delete_tunneltermination
+585 Can view tunnel termination 149 view_tunneltermination
+\.
+
+
+--
+-- Data for Name: auth_user; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.auth_user (id, password, last_login, is_superuser, username, first_name, last_name, email, is_staff, is_active, date_joined) FROM stdin;
+1 pbkdf2_sha256$600000$rYkMCYdJVrhuWtdTU0kA7T$kNWzPQewLcjnGAvmNsmFP+J2JvBFCJauQCbpWFfpFlg= 2024-03-16 22:16:28.966957+00 t admin admin@famillelebreuil.net t t 2023-01-22 21:04:10.27715+00
+3 pbkdf2_sha256$390000$5bBUa0ek9usw1CSPJhk0E0$P3ggeWiacQ1MNCCIyJypjzs23/hLVHuHhJZ5XvmZLRA= 2023-06-07 19:28:45.133097+00 f view_contract f t 2023-06-07 19:06:14+00
+4 pbkdf2_sha256$390000$r10e0Y5aFAKbG9J5wNdphD$rcM6NfFAH4k0E1J2o4ppd2N9wZYix5KXdh6V8T/gMKM= 2023-06-07 19:37:10.741708+00 f add_contract f t 2023-06-07 19:06:41+00
+\.
+
+
+--
+-- Data for Name: auth_user_groups; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.auth_user_groups (id, user_id, group_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: auth_user_user_permissions; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.auth_user_user_permissions (id, user_id, permission_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: circuits_circuit; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.circuits_circuit (created, last_updated, custom_field_data, id, cid, status, install_date, commit_rate, description, comments, provider_id, tenant_id, termination_a_id, termination_z_id, type_id, termination_date, provider_account_id) FROM stdin;
+2023-01-22 21:05:47.836492+00 2023-01-22 21:05:47.836569+00 {} 1 Circuit1 active \N \N 1 \N \N \N 1 \N \N
+2023-02-19 14:54:50.125907+00 2023-02-19 14:54:50.125934+00 {} 2 Circuit2 active \N \N 1 \N \N \N 1 \N \N
+\.
+
+
+--
+-- Data for Name: circuits_circuittermination; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.circuits_circuittermination (created, last_updated, id, mark_connected, term_side, port_speed, upstream_speed, xconnect_id, pp_info, description, cable_id, circuit_id, provider_network_id, site_id, custom_field_data, cable_end) FROM stdin;
+\.
+
+
+--
+-- Data for Name: circuits_circuittype; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.circuits_circuittype (created, last_updated, custom_field_data, id, name, slug, description, color) FROM stdin;
+2023-01-22 21:05:16.149745+00 2023-01-22 21:05:16.14978+00 {} 1 CircuitType1 circuittype1
+\.
+
+
+--
+-- Data for Name: circuits_provider; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.circuits_provider (created, last_updated, custom_field_data, id, name, slug, comments, description) FROM stdin;
+2023-01-22 21:05:32.979165+00 2023-01-22 21:05:32.979239+00 {} 1 Provider1 provider1
+\.
+
+
+--
+-- Data for Name: circuits_provider_asns; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.circuits_provider_asns (id, provider_id, asn_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: circuits_provideraccount; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.circuits_provideraccount (id, created, last_updated, custom_field_data, description, comments, account, name, provider_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: circuits_providernetwork; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.circuits_providernetwork (created, last_updated, custom_field_data, id, name, description, comments, provider_id, service_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: core_autosyncrecord; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.core_autosyncrecord (id, object_id, datafile_id, object_type_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: core_configrevision; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.core_configrevision (id, created, comment, data) FROM stdin;
+\.
+
+
+--
+-- Data for Name: core_datafile; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.core_datafile (id, created, last_updated, path, size, hash, data, source_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: core_datasource; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.core_datasource (id, created, last_updated, custom_field_data, description, comments, name, type, source_url, status, enabled, ignore_rules, parameters, last_synced) FROM stdin;
+\.
+
+
+--
+-- Data for Name: core_job; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.core_job (id, object_id, name, created, scheduled, "interval", started, completed, status, data, job_id, object_type_id, user_id, error) FROM stdin;
+\.
+
+
+--
+-- Data for Name: core_managedfile; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.core_managedfile (id, data_path, data_synced, created, last_updated, file_root, file_path, data_file_id, data_source_id, auto_sync_enabled) FROM stdin;
+\.
+
+
+--
+-- Data for Name: dcim_cable; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.dcim_cable (created, last_updated, custom_field_data, id, type, status, label, color, length, length_unit, _abs_length, tenant_id, comments, description) FROM stdin;
+\.
+
+
+--
+-- Data for Name: dcim_cablepath; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.dcim_cablepath (id, _nodes, is_active, is_split, path, is_complete) FROM stdin;
+\.
+
+
+--
+-- Data for Name: dcim_cabletermination; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.dcim_cabletermination (id, cable_end, termination_id, cable_id, termination_type_id, _device_id, _rack_id, _location_id, _site_id, created, last_updated) FROM stdin;
+\.
+
+
+--
+-- Data for Name: dcim_consoleport; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.dcim_consoleport (created, last_updated, custom_field_data, id, name, _name, label, description, mark_connected, type, speed, _path_id, cable_id, device_id, module_id, cable_end) FROM stdin;
+\.
+
+
+--
+-- Data for Name: dcim_consoleporttemplate; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.dcim_consoleporttemplate (created, last_updated, id, name, _name, label, description, type, device_type_id, module_type_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: dcim_consoleserverport; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.dcim_consoleserverport (created, last_updated, custom_field_data, id, name, _name, label, description, mark_connected, type, speed, _path_id, cable_id, device_id, module_id, cable_end) FROM stdin;
+\.
+
+
+--
+-- Data for Name: dcim_consoleserverporttemplate; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.dcim_consoleserverporttemplate (created, last_updated, id, name, _name, label, description, type, device_type_id, module_type_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: dcim_device; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.dcim_device (created, last_updated, custom_field_data, id, local_context_data, name, _name, serial, asset_tag, "position", face, status, vc_position, vc_priority, comments, cluster_id, role_id, device_type_id, location_id, platform_id, primary_ip4_id, primary_ip6_id, rack_id, site_id, tenant_id, virtual_chassis_id, airflow, description, config_template_id, latitude, longitude, oob_ip_id, console_port_count, console_server_port_count, power_port_count, power_outlet_count, interface_count, front_port_count, rear_port_count, device_bay_count, module_bay_count, inventory_item_count) FROM stdin;
+2023-06-01 20:30:32.722591+00 2023-06-01 20:30:32.722632+00 {} 1 \N TestDevice TestDevice \N \N active \N \N \N 1 1 \N \N \N \N \N 1 \N \N \N \N \N \N 0 0 0 0 0 0 0 0 0 0
+\.
+
+
+--
+-- Data for Name: dcim_devicebay; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.dcim_devicebay (created, last_updated, custom_field_data, id, name, _name, label, description, device_id, installed_device_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: dcim_devicebaytemplate; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.dcim_devicebaytemplate (created, last_updated, id, name, _name, label, description, device_type_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: dcim_devicerole; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.dcim_devicerole (created, last_updated, custom_field_data, id, name, slug, color, vm_role, description, config_template_id) FROM stdin;
+2023-06-01 20:26:18.791787+00 2023-06-01 20:26:18.791873+00 {} 1 TestRole testrole 9e9e9e f \N
+\.
+
+
+--
+-- Data for Name: dcim_devicetype; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.dcim_devicetype (created, last_updated, custom_field_data, id, model, slug, part_number, u_height, is_full_depth, subdevice_role, front_image, rear_image, comments, manufacturer_id, airflow, weight, weight_unit, _abs_weight, description, default_platform_id, console_port_template_count, console_server_port_template_count, power_port_template_count, power_outlet_template_count, interface_template_count, front_port_template_count, rear_port_template_count, device_bay_template_count, module_bay_template_count, inventory_item_template_count, exclude_from_utilization) FROM stdin;
+2023-06-01 20:29:41.125754+00 2023-06-01 20:29:41.125797+00 {} 1 TestDeviceType testdevicetype 1.0 t 1 \N \N \N 0 0 0 0 0 0 0 0 0 0 f
+\.
+
+
+--
+-- Data for Name: dcim_frontport; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.dcim_frontport (created, last_updated, custom_field_data, id, name, _name, label, description, mark_connected, type, rear_port_position, cable_id, device_id, rear_port_id, color, module_id, cable_end) FROM stdin;
+\.
+
+
+--
+-- Data for Name: dcim_frontporttemplate; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.dcim_frontporttemplate (created, last_updated, id, name, _name, label, description, type, rear_port_position, device_type_id, rear_port_id, color, module_type_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: dcim_interface; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.dcim_interface (created, last_updated, custom_field_data, id, name, label, description, mark_connected, enabled, mac_address, mtu, mode, _name, type, mgmt_only, _path_id, cable_id, device_id, lag_id, parent_id, untagged_vlan_id, wwn, bridge_id, rf_role, rf_channel, rf_channel_frequency, rf_channel_width, tx_power, wireless_link_id, module_id, vrf_id, duplex, speed, poe_mode, poe_type, cable_end) FROM stdin;
+\.
+
+
+--
+-- Data for Name: dcim_interface_tagged_vlans; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.dcim_interface_tagged_vlans (id, interface_id, vlan_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: dcim_interface_vdcs; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.dcim_interface_vdcs (id, interface_id, virtualdevicecontext_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: dcim_interface_wireless_lans; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.dcim_interface_wireless_lans (id, interface_id, wirelesslan_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: dcim_interfacetemplate; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.dcim_interfacetemplate (created, last_updated, id, name, label, description, _name, type, mgmt_only, device_type_id, module_type_id, poe_mode, poe_type, enabled, bridge_id, rf_role) FROM stdin;
+\.
+
+
+--
+-- Data for Name: dcim_inventoryitem; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.dcim_inventoryitem (created, last_updated, custom_field_data, id, name, _name, label, description, part_id, serial, asset_tag, discovered, lft, rght, tree_id, level, device_id, manufacturer_id, parent_id, role_id, component_id, component_type_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: dcim_inventoryitemrole; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.dcim_inventoryitemrole (created, last_updated, custom_field_data, id, name, slug, color, description) FROM stdin;
+\.
+
+
+--
+-- Data for Name: dcim_inventoryitemtemplate; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.dcim_inventoryitemtemplate (created, last_updated, id, name, _name, label, description, component_id, part_id, lft, rght, tree_id, level, component_type_id, device_type_id, manufacturer_id, parent_id, role_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: dcim_location; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.dcim_location (created, last_updated, custom_field_data, id, name, slug, description, lft, rght, tree_id, level, parent_id, site_id, tenant_id, status) FROM stdin;
+\.
+
+
+--
+-- Data for Name: dcim_manufacturer; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.dcim_manufacturer (created, last_updated, custom_field_data, id, name, slug, description) FROM stdin;
+2023-06-01 20:27:48.764106+00 2023-06-01 20:27:48.764141+00 {} 1 TestManufacturer testmanufacturer
+\.
+
+
+--
+-- Data for Name: dcim_module; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.dcim_module (created, last_updated, custom_field_data, id, local_context_data, serial, asset_tag, comments, device_id, module_bay_id, module_type_id, description, status) FROM stdin;
+\.
+
+
+--
+-- Data for Name: dcim_modulebay; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.dcim_modulebay (created, last_updated, custom_field_data, id, name, _name, label, "position", description, device_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: dcim_modulebaytemplate; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.dcim_modulebaytemplate (created, last_updated, id, name, _name, label, "position", description, device_type_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: dcim_moduletype; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.dcim_moduletype (created, last_updated, custom_field_data, id, model, part_number, comments, manufacturer_id, weight, weight_unit, _abs_weight, description) FROM stdin;
+\.
+
+
+--
+-- Data for Name: dcim_platform; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.dcim_platform (created, last_updated, custom_field_data, id, name, slug, description, manufacturer_id, config_template_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: dcim_powerfeed; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.dcim_powerfeed (created, last_updated, custom_field_data, id, mark_connected, name, status, type, supply, phase, voltage, amperage, max_utilization, available_power, comments, _path_id, cable_id, power_panel_id, rack_id, cable_end, description, tenant_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: dcim_poweroutlet; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.dcim_poweroutlet (created, last_updated, custom_field_data, id, name, _name, label, description, mark_connected, type, feed_leg, _path_id, cable_id, device_id, power_port_id, module_id, cable_end) FROM stdin;
+\.
+
+
+--
+-- Data for Name: dcim_poweroutlettemplate; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.dcim_poweroutlettemplate (created, last_updated, id, name, _name, label, description, type, feed_leg, device_type_id, power_port_id, module_type_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: dcim_powerpanel; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.dcim_powerpanel (created, last_updated, custom_field_data, id, name, location_id, site_id, comments, description) FROM stdin;
+\.
+
+
+--
+-- Data for Name: dcim_powerport; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.dcim_powerport (created, last_updated, custom_field_data, id, name, _name, label, description, mark_connected, type, maximum_draw, allocated_draw, _path_id, cable_id, device_id, module_id, cable_end) FROM stdin;
+\.
+
+
+--
+-- Data for Name: dcim_powerporttemplate; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.dcim_powerporttemplate (created, last_updated, id, name, _name, label, description, type, maximum_draw, allocated_draw, device_type_id, module_type_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: dcim_rack; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.dcim_rack (created, last_updated, custom_field_data, id, name, _name, facility_id, status, serial, asset_tag, type, width, u_height, desc_units, outer_width, outer_depth, outer_unit, comments, location_id, role_id, site_id, tenant_id, weight, max_weight, weight_unit, _abs_weight, _abs_max_weight, mounting_depth, description, starting_unit) FROM stdin;
+\.
+
+
+--
+-- Data for Name: dcim_rackreservation; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.dcim_rackreservation (created, last_updated, custom_field_data, id, units, description, rack_id, tenant_id, user_id, comments) FROM stdin;
+\.
+
+
+--
+-- Data for Name: dcim_rackrole; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.dcim_rackrole (created, last_updated, custom_field_data, id, name, slug, color, description) FROM stdin;
+\.
+
+
+--
+-- Data for Name: dcim_rearport; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.dcim_rearport (created, last_updated, custom_field_data, id, name, _name, label, description, mark_connected, type, positions, cable_id, device_id, color, module_id, cable_end) FROM stdin;
+\.
+
+
+--
+-- Data for Name: dcim_rearporttemplate; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.dcim_rearporttemplate (created, last_updated, id, name, _name, label, description, type, positions, device_type_id, color, module_type_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: dcim_region; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.dcim_region (created, last_updated, custom_field_data, id, name, slug, description, lft, rght, tree_id, level, parent_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: dcim_site; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.dcim_site (created, last_updated, custom_field_data, id, name, _name, slug, status, facility, time_zone, description, physical_address, shipping_address, latitude, longitude, comments, group_id, region_id, tenant_id) FROM stdin;
+2023-06-01 20:25:52.543065+00 2023-06-01 20:25:52.543109+00 {} 1 TestSite TestSite testsite active \N \N \N \N \N
+\.
+
+
+--
+-- Data for Name: dcim_site_asns; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.dcim_site_asns (id, site_id, asn_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: dcim_sitegroup; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.dcim_sitegroup (created, last_updated, custom_field_data, id, name, slug, description, lft, rght, tree_id, level, parent_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: dcim_virtualchassis; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.dcim_virtualchassis (created, last_updated, custom_field_data, id, name, domain, master_id, comments, description, member_count) FROM stdin;
+\.
+
+
+--
+-- Data for Name: dcim_virtualdevicecontext; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.dcim_virtualdevicecontext (id, created, last_updated, custom_field_data, description, name, status, identifier, comments, device_id, primary_ip4_id, primary_ip6_id, tenant_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: django_admin_log; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.django_admin_log (id, action_time, object_id, object_repr, action_flag, change_message, content_type_id, user_id) FROM stdin;
+1 2023-03-12 17:59:05.867043+00 2 test 1 [{"added": {}}] 67 1
+2 2023-06-07 19:05:52.946398+00 2 test 3 67 1
+3 2023-06-07 19:06:14.599115+00 3 view_contract 1 [{"added": {}}] 67 1
+4 2023-06-07 19:06:42.232257+00 4 add_contract 1 [{"added": {}}] 67 1
+5 2023-06-07 19:08:38.921179+00 1 view_contract 1 [{"added": {}}] 114 1
+6 2023-06-07 19:09:21.508309+00 2 add_contract 1 [{"added": {}}] 114 1
+7 2023-06-07 19:09:55.040827+00 3 view_contract 2 [{"added": {"name": "objectpermission-user relationship", "object": "ObjectPermission_users object (1)"}}] 67 1
+8 2023-06-07 19:11:23.245231+00 4 add_contract 2 [{"added": {"name": "objectpermission-user relationship", "object": "ObjectPermission_users object (2)"}}] 67 1
+9 2023-06-07 19:13:06.916593+00 3 view_circuit 1 [{"added": {}}] 114 1
+10 2023-06-07 19:15:45.967306+00 4 add_contractassignement 1 [{"added": {}}] 114 1
+11 2023-06-07 19:16:08.428592+00 4 add_contract 2 [{"added": {"name": "objectpermission-user relationship", "object": "ObjectPermission_users object (5)"}}] 67 1
+12 2023-06-13 18:45:50.534022+00 5 view_contractassignement 1 [{"added": {}}] 114 1
+\.
+
+
+--
+-- Data for Name: django_content_type; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.django_content_type (id, app_label, model) FROM stdin;
+1 circuits circuit
+2 circuits circuittermination
+3 circuits circuittype
+4 circuits provider
+5 circuits providernetwork
+6 dcim cable
+7 dcim consoleport
+8 dcim consoleserverport
+9 dcim device
+10 dcim devicebay
+11 dcim devicerole
+12 dcim devicetype
+13 dcim frontport
+14 dcim interface
+15 dcim inventoryitem
+16 dcim location
+17 dcim manufacturer
+18 dcim module
+19 dcim modulebay
+20 dcim moduletype
+21 dcim platform
+22 dcim powerfeed
+23 dcim poweroutlet
+24 dcim powerpanel
+25 dcim powerport
+26 dcim rack
+27 dcim rackreservation
+28 dcim rackrole
+29 dcim rearport
+30 dcim region
+31 dcim site
+32 dcim sitegroup
+33 dcim virtualchassis
+34 dcim virtualdevicecontext
+35 extras journalentry
+36 ipam aggregate
+37 ipam asn
+38 ipam fhrpgroup
+39 ipam ipaddress
+40 ipam iprange
+42 ipam prefix
+43 ipam rir
+44 ipam role
+45 ipam routetarget
+46 ipam service
+47 ipam servicetemplate
+48 ipam vlan
+49 ipam vlangroup
+50 ipam vrf
+51 tenancy contact
+52 tenancy contactgroup
+53 tenancy contactrole
+54 tenancy tenant
+55 tenancy tenantgroup
+56 virtualization cluster
+57 virtualization clustergroup
+58 virtualization clustertype
+59 virtualization virtualmachine
+60 virtualization vminterface
+61 wireless wirelesslan
+62 wireless wirelesslangroup
+63 wireless wirelesslink
+64 admin logentry
+65 auth permission
+66 auth group
+67 auth user
+68 contenttypes contenttype
+69 sessions session
+70 social_django association
+71 social_django code
+72 social_django nonce
+73 social_django usersocialauth
+74 social_django partial
+75 taggit tag
+76 taggit taggeditem
+77 dcim cablepath
+78 dcim consoleporttemplate
+79 dcim consoleserverporttemplate
+80 dcim devicebaytemplate
+81 dcim frontporttemplate
+82 dcim interfacetemplate
+83 dcim poweroutlettemplate
+84 dcim powerporttemplate
+85 dcim rearporttemplate
+86 dcim modulebaytemplate
+87 dcim inventoryitemrole
+88 dcim inventoryitemtemplate
+89 dcim cabletermination
+90 ipam fhrpgroupassignment
+92 extras report
+93 extras script
+94 extras configcontext
+95 extras tag
+96 extras webhook
+97 extras taggeditem
+98 extras objectchange
+100 extras imageattachment
+101 extras exporttemplate
+102 extras customlink
+103 extras customfield
+105 extras savedfilter
+106 extras cachedvalue
+107 extras branch
+108 extras stagedchange
+109 tenancy contactassignment
+112 users userconfig
+113 users token
+114 users objectpermission
+115 django_rq queue
+116 netbox_contract contract
+117 netbox_contract serviceprovider
+118 netbox_contract invoice
+119 netbox_contract contractassignement
+120 core datasource
+121 core datafile
+122 core autosyncrecord
+123 core managedfile
+124 core job
+125 circuits provideraccount
+126 ipam asnrange
+127 extras configtemplate
+128 extras dashboard
+129 extras reportmodule
+130 extras scriptmodule
+131 netbox_attachments netboxattachment
+132 extras customfieldchoiceset
+133 extras bookmark
+134 account usertoken
+135 users netboxgroup
+136 users netboxuser
+138 extras eventrule
+139 virtualization virtualdisk
+140 vpn ikeproposal
+141 vpn ikepolicy
+142 vpn ipsecproposal
+143 vpn ipsecpolicy
+144 vpn ipsecprofile
+147 vpn tunnelgroup
+148 vpn tunnel
+149 vpn tunneltermination
+104 core configrevision
+41 vpn l2vpn
+91 vpn l2vpntermination
+150 core contenttype
+\.
+
+
+--
+-- Data for Name: django_migrations; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.django_migrations (id, app, name, applied) FROM stdin;
+1 contenttypes 0001_initial 2023-01-22 20:57:59.636299+00
+2 auth 0001_initial 2023-01-22 20:57:59.811994+00
+3 admin 0001_initial 2023-01-22 20:57:59.870204+00
+4 admin 0002_logentry_remove_auto_add 2023-01-22 20:57:59.891716+00
+5 admin 0003_logentry_add_action_flag_choices 2023-01-22 20:57:59.911608+00
+6 contenttypes 0002_remove_content_type_name 2023-01-22 20:57:59.951404+00
+7 auth 0002_alter_permission_name_max_length 2023-01-22 20:57:59.972741+00
+8 auth 0003_alter_user_email_max_length 2023-01-22 20:57:59.991884+00
+9 auth 0004_alter_user_username_opts 2023-01-22 20:58:00.011254+00
+10 auth 0005_alter_user_last_login_null 2023-01-22 20:58:00.03305+00
+11 auth 0006_require_contenttypes_0002 2023-01-22 20:58:00.040687+00
+12 auth 0007_alter_validators_add_error_messages 2023-01-22 20:58:00.064419+00
+13 auth 0008_alter_user_username_max_length 2023-01-22 20:58:00.094861+00
+14 auth 0009_alter_user_last_name_max_length 2023-01-22 20:58:00.118183+00
+15 auth 0010_alter_group_name_max_length 2023-01-22 20:58:00.139433+00
+16 auth 0011_update_proxy_permissions 2023-01-22 20:58:00.158051+00
+17 auth 0012_alter_user_first_name_max_length 2023-01-22 20:58:00.176825+00
+18 extras 0001_initial 2023-01-22 20:58:01.023202+00
+19 tenancy 0001_initial 2023-01-22 20:58:01.169906+00
+20 tenancy 0002_tenant_group_optional 2023-01-22 20:58:01.174536+00
+21 tenancy 0003_unicode_literals 2023-01-22 20:58:01.17897+00
+22 tenancy 0004_tags 2023-01-22 20:58:01.183483+00
+23 tenancy 0005_change_logging 2023-01-22 20:58:01.188242+00
+24 tenancy 0006_custom_tag_models 2023-01-22 20:58:01.19317+00
+25 tenancy 0007_nested_tenantgroups 2023-01-22 20:58:01.198361+00
+26 tenancy 0008_nested_tenantgroups_rebuild 2023-01-22 20:58:01.203552+00
+27 tenancy 0009_standardize_description 2023-01-22 20:58:01.208771+00
+28 tenancy 0010_custom_field_data 2023-01-22 20:58:01.213575+00
+29 tenancy 0011_standardize_name_length 2023-01-22 20:58:01.218379+00
+30 tenancy 0012_standardize_models 2023-01-22 20:58:01.223586+00
+31 tenancy 0002_tenant_ordering 2023-01-22 20:58:01.248324+00
+32 dcim 0001_initial 2023-01-22 20:58:02.093973+00
+33 dcim 0002_auto_20160622_1821 2023-01-22 20:58:05.081905+00
+34 ipam 0001_initial 2023-01-22 20:58:06.121219+00
+35 virtualization 0001_virtualization 2023-01-22 20:58:06.893086+00
+36 virtualization 0002_virtualmachine_add_status 2023-01-22 20:58:06.898783+00
+37 virtualization 0003_cluster_add_site 2023-01-22 20:58:06.903932+00
+38 virtualization 0004_virtualmachine_add_role 2023-01-22 20:58:06.908746+00
+39 virtualization 0005_django2 2023-01-22 20:58:06.913341+00
+40 virtualization 0006_tags 2023-01-22 20:58:06.918288+00
+41 virtualization 0007_change_logging 2023-01-22 20:58:06.923057+00
+42 virtualization 0008_virtualmachine_local_context_data 2023-01-22 20:58:06.927898+00
+43 virtualization 0009_custom_tag_models 2023-01-22 20:58:06.934185+00
+44 virtualization 0010_cluster_add_tenant 2023-01-22 20:58:06.940269+00
+45 virtualization 0011_3569_virtualmachine_fields 2023-01-22 20:58:06.946252+00
+46 virtualization 0012_vm_name_nonunique 2023-01-22 20:58:06.951657+00
+47 virtualization 0013_deterministic_ordering 2023-01-22 20:58:06.956962+00
+48 virtualization 0014_standardize_description 2023-01-22 20:58:06.962351+00
+49 virtualization 0015_vminterface 2023-01-22 20:58:06.966763+00
+50 virtualization 0016_replicate_interfaces 2023-01-22 20:58:06.971725+00
+51 virtualization 0017_update_jsonfield 2023-01-22 20:58:06.975968+00
+52 virtualization 0018_custom_field_data 2023-01-22 20:58:06.979716+00
+53 virtualization 0019_standardize_name_length 2023-01-22 20:58:06.983126+00
+54 virtualization 0020_standardize_models 2023-01-22 20:58:06.986629+00
+55 virtualization 0021_virtualmachine_vcpus_decimal 2023-01-22 20:58:06.989964+00
+56 virtualization 0022_vminterface_parent 2023-01-22 20:58:06.993547+00
+57 extras 0002_custom_fields 2023-01-22 20:58:08.785218+00
+58 extras 0003_exporttemplate_add_description 2023-01-22 20:58:08.790704+00
+59 extras 0004_topologymap_change_comma_to_semicolon 2023-01-22 20:58:08.79583+00
+60 extras 0005_useraction_add_bulk_create 2023-01-22 20:58:08.800755+00
+61 extras 0006_add_imageattachments 2023-01-22 20:58:08.805857+00
+62 extras 0007_unicode_literals 2023-01-22 20:58:08.811177+00
+63 extras 0008_reports 2023-01-22 20:58:08.817356+00
+64 extras 0009_topologymap_type 2023-01-22 20:58:08.823536+00
+65 extras 0010_customfield_filter_logic 2023-01-22 20:58:08.829773+00
+66 extras 0011_django2 2023-01-22 20:58:08.835801+00
+67 extras 0012_webhooks 2023-01-22 20:58:08.841279+00
+68 extras 0013_objectchange 2023-01-22 20:58:08.847474+00
+69 extras 0014_configcontexts 2023-01-22 20:58:08.853702+00
+70 extras 0015_remove_useraction 2023-01-22 20:58:08.859651+00
+71 extras 0016_exporttemplate_add_cable 2023-01-22 20:58:08.865463+00
+72 extras 0017_exporttemplate_mime_type_length 2023-01-22 20:58:08.871331+00
+73 extras 0018_exporttemplate_add_jinja2 2023-01-22 20:58:08.877154+00
+74 extras 0019_tag_taggeditem 2023-01-22 20:58:08.883033+00
+75 extras 0020_tag_data 2023-01-22 20:58:08.888807+00
+76 extras 0021_add_color_comments_changelog_to_tag 2023-01-22 20:58:08.894695+00
+77 extras 0022_custom_links 2023-01-22 20:58:08.900683+00
+78 extras 0023_fix_tag_sequences 2023-01-22 20:58:08.906477+00
+79 extras 0024_scripts 2023-01-22 20:58:08.91185+00
+80 extras 0025_objectchange_time_index 2023-01-22 20:58:08.917418+00
+81 extras 0026_webhook_ca_file_path 2023-01-22 20:58:08.923307+00
+82 extras 0027_webhook_additional_headers 2023-01-22 20:58:08.929066+00
+83 extras 0028_remove_topology_maps 2023-01-22 20:58:08.93563+00
+84 extras 0029_3569_customfield_fields 2023-01-22 20:58:08.942234+00
+85 extras 0030_3569_objectchange_fields 2023-01-22 20:58:08.949111+00
+86 extras 0031_3569_exporttemplate_fields 2023-01-22 20:58:08.955933+00
+87 extras 0032_3569_webhook_fields 2023-01-22 20:58:08.962691+00
+88 extras 0033_graph_type_template_language 2023-01-22 20:58:08.969437+00
+89 extras 0034_configcontext_tags 2023-01-22 20:58:08.976074+00
+90 extras 0035_deterministic_ordering 2023-01-22 20:58:08.982481+00
+91 extras 0036_contenttype_filters_to_q_objects 2023-01-22 20:58:08.989042+00
+92 extras 0037_configcontexts_clusters 2023-01-22 20:58:08.995467+00
+93 extras 0038_webhook_template_support 2023-01-22 20:58:09.002124+00
+94 extras 0039_update_features_content_types 2023-01-22 20:58:09.009521+00
+95 extras 0040_standardize_description 2023-01-22 20:58:09.016025+00
+96 extras 0041_tag_description 2023-01-22 20:58:09.022661+00
+97 extras 0042_customfield_manager 2023-01-22 20:58:09.029+00
+98 extras 0043_report 2023-01-22 20:58:09.035618+00
+99 extras 0044_jobresult 2023-01-22 20:58:09.042288+00
+100 extras 0045_configcontext_changelog 2023-01-22 20:58:09.048436+00
+101 extras 0046_update_jsonfield 2023-01-22 20:58:09.055676+00
+102 extras 0047_tag_ordering 2023-01-22 20:58:09.062044+00
+103 extras 0048_exporttemplate_remove_template_language 2023-01-22 20:58:09.068444+00
+104 extras 0049_remove_graph 2023-01-22 20:58:09.074665+00
+105 extras 0050_customfield_changes 2023-01-22 20:58:09.080969+00
+106 extras 0051_migrate_customfields 2023-01-22 20:58:09.087331+00
+107 extras 0052_customfield_cleanup 2023-01-22 20:58:09.093592+00
+108 extras 0053_rename_webhook_obj_type 2023-01-22 20:58:09.099978+00
+109 extras 0054_standardize_models 2023-01-22 20:58:09.106342+00
+110 extras 0055_objectchange_data 2023-01-22 20:58:09.112695+00
+111 extras 0056_extend_configcontext 2023-01-22 20:58:09.118923+00
+112 extras 0057_customlink_rename_fields 2023-01-22 20:58:09.125314+00
+113 extras 0058_journalentry 2023-01-22 20:58:09.13217+00
+114 extras 0059_exporttemplate_as_attachment 2023-01-22 20:58:09.138584+00
+115 extras 0060_customlink_button_class 2023-01-22 20:58:09.191242+00
+116 extras 0061_extras_change_logging 2023-01-22 20:58:09.462375+00
+117 extras 0062_clear_secrets_changelog 2023-01-22 20:58:09.58369+00
+118 tenancy 0003_contacts 2023-01-22 20:58:10.279506+00
+119 tenancy 0004_extend_tag_support 2023-01-22 20:58:10.595255+00
+120 dcim 0003_auto_20160628_1721 2023-01-22 20:58:19.263287+00
+121 dcim 0004_auto_20160701_2049 2023-01-22 20:58:19.269272+00
+122 dcim 0005_auto_20160706_1722 2023-01-22 20:58:19.274872+00
+123 dcim 0006_add_device_primary_ip4_ip6 2023-01-22 20:58:19.280135+00
+124 dcim 0007_device_copy_primary_ip 2023-01-22 20:58:19.28563+00
+125 dcim 0008_device_remove_primary_ip 2023-01-22 20:58:19.29132+00
+126 dcim 0009_site_32bit_asn_support 2023-01-22 20:58:19.297747+00
+127 dcim 0010_devicebay_installed_device_set_null 2023-01-22 20:58:19.304217+00
+128 dcim 0011_devicetype_part_number 2023-01-22 20:58:19.310509+00
+129 dcim 0012_site_rack_device_add_tenant 2023-01-22 20:58:19.316591+00
+130 dcim 0013_add_interface_form_factors 2023-01-22 20:58:19.322163+00
+131 dcim 0014_rack_add_type_width 2023-01-22 20:58:19.327808+00
+132 dcim 0015_rack_add_u_height_validator 2023-01-22 20:58:19.333588+00
+133 dcim 0016_module_add_manufacturer 2023-01-22 20:58:19.339237+00
+134 dcim 0017_rack_add_role 2023-01-22 20:58:19.34492+00
+135 dcim 0018_device_add_asset_tag 2023-01-22 20:58:19.350449+00
+136 dcim 0019_new_iface_form_factors 2023-01-22 20:58:19.35634+00
+137 dcim 0020_rack_desc_units 2023-01-22 20:58:19.362154+00
+138 dcim 0021_add_ff_flexstack 2023-01-22 20:58:19.36826+00
+139 dcim 0022_color_names_to_rgb 2023-01-22 20:58:19.374399+00
+140 dcim 0023_devicetype_comments 2023-01-22 20:58:19.380991+00
+141 dcim 0024_site_add_contact_fields 2023-01-22 20:58:19.387717+00
+142 dcim 0025_devicetype_add_interface_ordering 2023-01-22 20:58:19.394395+00
+143 dcim 0026_add_rack_reservations 2023-01-22 20:58:19.40108+00
+144 dcim 0027_device_add_site 2023-01-22 20:58:19.407468+00
+145 dcim 0028_device_copy_rack_to_site 2023-01-22 20:58:19.413636+00
+146 dcim 0029_allow_rackless_devices 2023-01-22 20:58:19.419742+00
+147 dcim 0030_interface_add_lag 2023-01-22 20:58:19.426012+00
+148 dcim 0031_regions 2023-01-22 20:58:19.432154+00
+149 dcim 0032_device_increase_name_length 2023-01-22 20:58:19.438257+00
+150 dcim 0033_rackreservation_rack_editable 2023-01-22 20:58:19.444484+00
+151 dcim 0034_rename_module_to_inventoryitem 2023-01-22 20:58:19.451015+00
+152 dcim 0035_device_expand_status_choices 2023-01-22 20:58:19.457126+00
+153 dcim 0036_add_ff_juniper_vcp 2023-01-22 20:58:19.46359+00
+154 dcim 0037_unicode_literals 2023-01-22 20:58:19.470055+00
+155 dcim 0038_wireless_interfaces 2023-01-22 20:58:19.476052+00
+156 dcim 0039_interface_add_enabled_mtu 2023-01-22 20:58:19.481983+00
+157 dcim 0040_inventoryitem_add_asset_tag_description 2023-01-22 20:58:19.487224+00
+158 dcim 0041_napalm_integration 2023-01-22 20:58:19.492306+00
+159 dcim 0042_interface_ff_10ge_cx4 2023-01-22 20:58:19.49848+00
+160 dcim 0043_device_component_name_lengths 2023-01-22 20:58:19.504706+00
+161 dcim 0044_virtualization 2023-01-22 20:58:19.510864+00
+162 dcim 0045_devicerole_vm_role 2023-01-22 20:58:19.517421+00
+163 dcim 0046_rack_lengthen_facility_id 2023-01-22 20:58:19.523552+00
+164 dcim 0047_more_100ge_form_factors 2023-01-22 20:58:19.529837+00
+165 dcim 0048_rack_serial 2023-01-22 20:58:19.536047+00
+166 dcim 0049_rackreservation_change_user 2023-01-22 20:58:19.542365+00
+167 dcim 0050_interface_vlan_tagging 2023-01-22 20:58:19.548499+00
+168 dcim 0051_rackreservation_tenant 2023-01-22 20:58:19.555085+00
+169 dcim 0052_virtual_chassis 2023-01-22 20:58:19.561355+00
+170 dcim 0053_platform_manufacturer 2023-01-22 20:58:19.567619+00
+171 dcim 0054_site_status_timezone_description 2023-01-22 20:58:19.573278+00
+172 dcim 0055_virtualchassis_ordering 2023-01-22 20:58:19.579079+00
+173 dcim 0056_django2 2023-01-22 20:58:19.584486+00
+174 dcim 0057_tags 2023-01-22 20:58:19.58972+00
+175 dcim 0058_relax_rack_naming_constraints 2023-01-22 20:58:19.595445+00
+176 dcim 0059_site_latitude_longitude 2023-01-22 20:58:19.601041+00
+177 dcim 0060_change_logging 2023-01-22 20:58:19.606485+00
+178 dcim 0061_platform_napalm_args 2023-01-22 20:58:19.611726+00
+179 dcim 0062_interface_mtu 2023-01-22 20:58:19.617018+00
+180 dcim 0063_device_local_context_data 2023-01-22 20:58:19.622174+00
+181 dcim 0064_remove_platform_rpc_client 2023-01-22 20:58:19.627447+00
+182 dcim 0065_front_rear_ports 2023-01-22 20:58:19.633066+00
+183 dcim 0066_cables 2023-01-22 20:58:19.638475+00
+184 dcim 0067_device_type_remove_qualifiers 2023-01-22 20:58:19.643977+00
+185 dcim 0068_rack_new_fields 2023-01-22 20:58:19.649166+00
+186 dcim 0069_deprecate_nullablecharfield 2023-01-22 20:58:19.654023+00
+187 dcim 0070_custom_tag_models 2023-01-22 20:58:19.658933+00
+188 dcim 0071_device_components_add_description 2023-01-22 20:58:19.664085+00
+189 dcim 0072_powerfeeds 2023-01-22 20:58:19.669072+00
+190 dcim 0073_interface_form_factor_to_type 2023-01-22 20:58:19.674197+00
+191 dcim 0074_increase_field_length_platform_name_slug 2023-01-22 20:58:19.679418+00
+192 dcim 0075_cable_devices 2023-01-22 20:58:19.68471+00
+193 dcim 0076_console_port_types 2023-01-22 20:58:19.689559+00
+194 dcim 0077_power_types 2023-01-22 20:58:19.695148+00
+195 dcim 0078_3569_site_fields 2023-01-22 20:58:19.700656+00
+196 dcim 0079_3569_rack_fields 2023-01-22 20:58:19.705691+00
+197 dcim 0080_3569_devicetype_fields 2023-01-22 20:58:19.710965+00
+198 dcim 0081_3569_device_fields 2023-01-22 20:58:19.716174+00
+199 dcim 0082_3569_interface_fields 2023-01-22 20:58:19.721033+00
+200 dcim 0082_3569_port_fields 2023-01-22 20:58:19.726194+00
+201 dcim 0083_3569_cable_fields 2023-01-22 20:58:19.730959+00
+202 dcim 0084_3569_powerfeed_fields 2023-01-22 20:58:19.736337+00
+203 dcim 0085_3569_poweroutlet_fields 2023-01-22 20:58:19.742165+00
+204 dcim 0086_device_name_nonunique 2023-01-22 20:58:19.747734+00
+205 dcim 0087_role_descriptions 2023-01-22 20:58:19.752972+00
+206 dcim 0088_powerfeed_available_power 2023-01-22 20:58:19.758278+00
+207 dcim 0089_deterministic_ordering 2023-01-22 20:58:19.763665+00
+208 dcim 0090_cable_termination_models 2023-01-22 20:58:19.768729+00
+209 dcim 0091_interface_type_other 2023-01-22 20:58:19.773821+00
+210 dcim 0092_fix_rack_outer_unit 2023-01-22 20:58:19.779179+00
+211 dcim 0093_device_component_ordering 2023-01-22 20:58:19.78464+00
+212 dcim 0094_device_component_template_ordering 2023-01-22 20:58:19.789559+00
+213 dcim 0095_primary_model_ordering 2023-01-22 20:58:19.794564+00
+214 dcim 0096_interface_ordering 2023-01-22 20:58:19.799751+00
+215 dcim 0097_interfacetemplate_type_other 2023-01-22 20:58:19.804953+00
+216 dcim 0098_devicetype_images 2023-01-22 20:58:19.810085+00
+217 dcim 0099_powerfeed_negative_voltage 2023-01-22 20:58:19.815376+00
+218 dcim 0100_mptt_remove_indexes 2023-01-22 20:58:19.821008+00
+219 dcim 0101_nested_rackgroups 2023-01-22 20:58:19.826748+00
+220 dcim 0102_nested_rackgroups_rebuild 2023-01-22 20:58:19.832204+00
+221 dcim 0103_standardize_description 2023-01-22 20:58:19.837327+00
+222 dcim 0104_correct_infiniband_types 2023-01-22 20:58:19.842833+00
+223 dcim 0105_interface_name_collation 2023-01-22 20:58:19.848009+00
+224 dcim 0106_role_default_color 2023-01-22 20:58:19.85354+00
+225 dcim 0107_component_labels 2023-01-22 20:58:19.859078+00
+226 dcim 0108_add_tags 2023-01-22 20:58:19.864887+00
+227 dcim 0109_interface_remove_vm 2023-01-22 20:58:19.870628+00
+228 dcim 0110_virtualchassis_name 2023-01-22 20:58:19.876131+00
+229 dcim 0111_component_template_description 2023-01-22 20:58:19.881747+00
+230 dcim 0112_standardize_components 2023-01-22 20:58:19.887725+00
+231 dcim 0113_nullbooleanfield_to_booleanfield 2023-01-22 20:58:19.893512+00
+232 dcim 0114_update_jsonfield 2023-01-22 20:58:19.898077+00
+233 dcim 0115_rackreservation_order 2023-01-22 20:58:19.902837+00
+234 dcim 0116_rearport_max_positions 2023-01-22 20:58:19.907523+00
+235 dcim 0117_custom_field_data 2023-01-22 20:58:19.914358+00
+236 dcim 0118_inventoryitem_mptt 2023-01-22 20:58:19.921622+00
+237 dcim 0119_inventoryitem_mptt_rebuild 2023-01-22 20:58:19.928174+00
+238 dcim 0120_cache_cable_peer 2023-01-22 20:58:19.934716+00
+239 dcim 0121_cablepath 2023-01-22 20:58:19.942148+00
+240 dcim 0122_standardize_name_length 2023-01-22 20:58:19.948821+00
+241 dcim 0123_standardize_models 2023-01-22 20:58:19.955736+00
+242 dcim 0124_mark_connected 2023-01-22 20:58:19.962482+00
+243 dcim 0125_console_port_speed 2023-01-22 20:58:19.969351+00
+244 dcim 0126_rename_rackgroup_location 2023-01-22 20:58:19.975793+00
+245 dcim 0127_device_location 2023-01-22 20:58:19.982338+00
+246 dcim 0128_device_location_populate 2023-01-22 20:58:19.989316+00
+247 dcim 0129_interface_parent 2023-01-22 20:58:19.995998+00
+248 dcim 0130_sitegroup 2023-01-22 20:58:20.001835+00
+249 ipam 0002_vrf_add_enforce_unique 2023-01-22 20:58:22.9372+00
+250 ipam 0003_ipam_add_vlangroups 2023-01-22 20:58:22.943539+00
+251 ipam 0004_ipam_vlangroup_uniqueness 2023-01-22 20:58:22.949818+00
+252 ipam 0005_auto_20160725_1842 2023-01-22 20:58:22.956035+00
+253 ipam 0006_vrf_vlan_add_tenant 2023-01-22 20:58:22.962411+00
+254 ipam 0007_prefix_ipaddress_add_tenant 2023-01-22 20:58:22.968751+00
+255 ipam 0008_prefix_change_order 2023-01-22 20:58:22.974648+00
+256 ipam 0009_ipaddress_add_status 2023-01-22 20:58:22.980514+00
+257 ipam 0010_ipaddress_help_texts 2023-01-22 20:58:22.985691+00
+258 ipam 0011_rir_add_is_private 2023-01-22 20:58:22.991188+00
+259 ipam 0012_services 2023-01-22 20:58:22.996579+00
+260 ipam 0013_prefix_add_is_pool 2023-01-22 20:58:23.000827+00
+261 ipam 0014_ipaddress_status_add_deprecated 2023-01-22 20:58:23.005364+00
+262 ipam 0015_global_vlans 2023-01-22 20:58:23.010954+00
+263 ipam 0016_unicode_literals 2023-01-22 20:58:23.016538+00
+264 ipam 0017_ipaddress_roles 2023-01-22 20:58:23.022174+00
+265 ipam 0018_remove_service_uniqueness_constraint 2023-01-22 20:58:23.027475+00
+266 ipam 0019_virtualization 2023-01-22 20:58:23.032762+00
+267 ipam 0020_ipaddress_add_role_carp 2023-01-22 20:58:23.037642+00
+268 ipam 0021_vrf_ordering 2023-01-22 20:58:23.043315+00
+269 ipam 0022_tags 2023-01-22 20:58:23.048753+00
+270 ipam 0023_change_logging 2023-01-22 20:58:23.054223+00
+271 ipam 0024_vrf_allow_null_rd 2023-01-22 20:58:23.059691+00
+272 ipam 0025_custom_tag_models 2023-01-22 20:58:23.064913+00
+273 ipam 0026_prefix_ordering_vrf_nulls_first 2023-01-22 20:58:23.07001+00
+274 ipam 0027_ipaddress_add_dns_name 2023-01-22 20:58:23.075173+00
+275 ipam 0028_3569_prefix_fields 2023-01-22 20:58:23.080413+00
+276 ipam 0029_3569_ipaddress_fields 2023-01-22 20:58:23.085291+00
+277 ipam 0030_3569_vlan_fields 2023-01-22 20:58:23.090183+00
+278 ipam 0031_3569_service_fields 2023-01-22 20:58:23.095437+00
+279 ipam 0032_role_description 2023-01-22 20:58:23.100555+00
+280 ipam 0033_deterministic_ordering 2023-01-22 20:58:23.105673+00
+281 ipam 0034_fix_ipaddress_status_dhcp 2023-01-22 20:58:23.110957+00
+282 ipam 0035_drop_ip_family 2023-01-22 20:58:23.116124+00
+283 ipam 0036_standardize_description 2023-01-22 20:58:23.12132+00
+284 ipam 0037_ipaddress_assignment 2023-01-22 20:58:23.126509+00
+285 ipam 0038_custom_field_data 2023-01-22 20:58:23.131782+00
+286 ipam 0039_service_ports_array 2023-01-22 20:58:23.136932+00
+287 ipam 0040_service_drop_port 2023-01-22 20:58:23.141814+00
+288 ipam 0041_routetarget 2023-01-22 20:58:23.14674+00
+289 ipam 0042_standardize_name_length 2023-01-22 20:58:23.152346+00
+290 ipam 0043_add_tenancy_to_aggregates 2023-01-22 20:58:23.157454+00
+291 ipam 0044_standardize_models 2023-01-22 20:58:23.162642+00
+292 ipam 0045_vlangroup_scope 2023-01-22 20:58:23.167916+00
+293 ipam 0046_set_vlangroup_scope_types 2023-01-22 20:58:23.173127+00
+294 ipam 0047_prefix_depth_children 2023-01-22 20:58:23.372237+00
+295 ipam 0048_prefix_populate_depth_children 2023-01-22 20:58:23.508544+00
+296 ipam 0049_prefix_mark_utilized 2023-01-22 20:58:23.636198+00
+297 ipam 0050_iprange 2023-01-22 20:58:23.811474+00
+298 ipam 0051_extend_tag_support 2023-01-22 20:58:24.158049+00
+299 extras 0063_webhook_conditions 2023-01-22 20:58:24.226288+00
+300 extras 0064_configrevision 2023-01-22 20:58:24.252021+00
+301 ipam 0052_fhrpgroup 2023-01-22 20:58:25.055707+00
+302 ipam 0053_asn_model 2023-01-22 20:58:25.232303+00
+303 dcim 0131_consoleport_speed 2023-01-22 20:58:25.538462+00
+304 dcim 0132_cable_length 2023-01-22 20:58:25.74382+00
+305 dcim 0133_port_colors 2023-01-22 20:58:26.044534+00
+306 dcim 0134_interface_wwn_bridge 2023-01-22 20:58:26.683699+00
+307 dcim 0135_tenancy_extensions 2023-01-22 20:58:26.955047+00
+308 dcim 0136_device_airflow 2023-01-22 20:58:27.17463+00
+309 dcim 0137_relax_uniqueness_constraints 2023-01-22 20:58:28.565504+00
+310 dcim 0138_extend_tag_support 2023-01-22 20:58:29.768205+00
+311 dcim 0139_rename_cable_peer 2023-01-22 20:58:31.932388+00
+312 wireless 0001_wireless 2023-01-22 20:58:32.478301+00
+313 dcim 0140_wireless 2023-01-22 20:58:33.751476+00
+314 dcim 0141_asn_model 2023-01-22 20:58:33.941687+00
+315 dcim 0142_rename_128gfc_qsfp28 2023-01-22 20:58:34.092029+00
+316 dcim 0143_remove_primary_for_related_name 2023-01-22 20:58:34.758654+00
+317 dcim 0144_fix_cable_abs_length 2023-01-22 20:58:34.906475+00
+318 dcim 0145_site_remove_deprecated_fields 2023-01-22 20:58:35.414462+00
+319 ipam 0054_vlangroup_min_max_vids 2023-01-22 20:58:35.647866+00
+320 virtualization 0023_virtualmachine_natural_ordering 2023-01-22 20:58:36.333038+00
+321 virtualization 0024_cluster_relax_uniqueness 2023-01-22 20:58:36.596366+00
+322 virtualization 0025_extend_tag_support 2023-01-22 20:58:36.859766+00
+323 virtualization 0026_vminterface_bridge 2023-01-22 20:58:37.016967+00
+324 extras 0065_imageattachment_change_logging 2023-01-22 20:58:37.111257+00
+325 extras 0066_customfield_name_validation 2023-01-22 20:58:37.194031+00
+326 extras 0067_customfield_min_max_values 2023-01-22 20:58:37.731297+00
+327 extras 0068_configcontext_cluster_types 2023-01-22 20:58:37.939953+00
+328 dcim 0146_modules 2023-01-22 20:58:43.030417+00
+329 dcim 0147_inventoryitemrole 2023-01-22 20:58:43.406809+00
+330 dcim 0148_inventoryitem_component 2023-01-22 20:58:44.10658+00
+331 dcim 0149_inventoryitem_templates 2023-01-22 20:58:44.334025+00
+332 dcim 0150_interface_vrf 2023-01-22 20:58:44.526415+00
+333 dcim 0151_interface_speed_duplex 2023-01-22 20:58:44.790593+00
+334 dcim 0152_standardize_id_fields 2023-01-22 20:58:53.387606+00
+335 dcim 0153_created_datetimefield 2023-01-22 20:59:00.038953+00
+336 dcim 0154_half_height_rack_units 2023-01-22 20:59:00.512749+00
+337 dcim 0155_interface_poe_mode_type 2023-01-22 20:59:01.342175+00
+338 dcim 0156_location_status 2023-01-22 20:59:01.474262+00
+339 dcim 0157_new_cabling_models 2023-01-22 20:59:03.265969+00
+340 dcim 0158_populate_cable_terminations 2023-01-22 20:59:03.445283+00
+341 dcim 0159_populate_cable_paths 2023-01-22 20:59:03.603839+00
+342 extras 0069_custom_object_field 2023-01-22 20:59:03.77028+00
+343 extras 0070_customlink_enabled 2023-01-22 20:59:04.29659+00
+344 ipam 0055_servicetemplate 2023-01-22 20:59:04.498459+00
+345 ipam 0056_standardize_id_fields 2023-01-22 20:59:07.300746+00
+346 ipam 0057_created_datetimefield 2023-01-22 20:59:09.75632+00
+347 circuits 0001_initial 2023-01-22 20:59:09.924741+00
+348 circuits 0002_auto_20160622_1821 2023-01-22 20:59:13.128188+00
+349 circuits 0003_provider_32bit_asn_support 2023-01-22 20:59:13.134729+00
+350 circuits 0004_circuit_add_tenant 2023-01-22 20:59:13.141075+00
+351 circuits 0005_circuit_add_upstream_speed 2023-01-22 20:59:13.147093+00
+352 circuits 0006_terminations 2023-01-22 20:59:13.153191+00
+353 circuits 0007_circuit_add_description 2023-01-22 20:59:13.159036+00
+354 circuits 0008_circuittermination_interface_protect_on_delete 2023-01-22 20:59:13.164874+00
+355 circuits 0009_unicode_literals 2023-01-22 20:59:13.171398+00
+356 circuits 0010_circuit_status 2023-01-22 20:59:13.178547+00
+357 circuits 0011_tags 2023-01-22 20:59:13.185438+00
+358 circuits 0012_change_logging 2023-01-22 20:59:13.19218+00
+359 circuits 0013_cables 2023-01-22 20:59:13.199401+00
+360 circuits 0014_circuittermination_description 2023-01-22 20:59:13.206204+00
+361 circuits 0015_custom_tag_models 2023-01-22 20:59:13.212944+00
+362 circuits 0016_3569_circuit_fields 2023-01-22 20:59:13.220021+00
+363 circuits 0017_circuittype_description 2023-01-22 20:59:13.227076+00
+364 circuits 0018_standardize_description 2023-01-22 20:59:13.233464+00
+365 circuits 0019_nullbooleanfield_to_booleanfield 2023-01-22 20:59:13.239975+00
+366 circuits 0020_custom_field_data 2023-01-22 20:59:13.246602+00
+367 circuits 0021_cache_cable_peer 2023-01-22 20:59:13.252277+00
+368 circuits 0022_cablepath 2023-01-22 20:59:13.25836+00
+369 circuits 0023_circuittermination_port_speed_optional 2023-01-22 20:59:13.26522+00
+370 circuits 0024_standardize_name_length 2023-01-22 20:59:13.272112+00
+371 circuits 0025_standardize_models 2023-01-22 20:59:13.278982+00
+372 circuits 0026_mark_connected 2023-01-22 20:59:13.285875+00
+373 circuits 0027_providernetwork 2023-01-22 20:59:13.292495+00
+374 circuits 0028_cache_circuit_terminations 2023-01-22 20:59:13.299122+00
+375 circuits 0029_circuit_tracing 2023-01-22 20:59:13.305519+00
+376 circuits 0003_extend_tag_support 2023-01-22 20:59:13.886431+00
+377 circuits 0004_rename_cable_peer 2023-01-22 20:59:14.127865+00
+378 circuits 0032_provider_service_id 2023-01-22 20:59:14.265731+00
+379 circuits 0033_standardize_id_fields 2023-01-22 20:59:15.570125+00
+380 circuits 0034_created_datetimefield 2023-01-22 20:59:16.302677+00
+381 circuits 0035_provider_asns 2023-01-22 20:59:16.509706+00
+382 circuits 0036_circuit_termination_date_tags_custom_fields 2023-01-22 20:59:17.256261+00
+383 circuits 0037_new_cabling_models 2023-01-22 20:59:17.416618+00
+384 dcim 0160_populate_cable_ends 2023-01-22 20:59:17.640036+00
+385 circuits 0038_cabling_cleanup 2023-01-22 20:59:17.963293+00
+386 circuits 0039_unique_constraints 2023-01-22 20:59:19.187132+00
+387 circuits 0040_provider_remove_deprecated_fields 2023-01-22 20:59:19.776808+00
+388 circuits 0041_standardize_description_comments 2023-01-22 20:59:19.912023+00
+389 tenancy 0005_standardize_id_fields 2023-01-22 20:59:21.211564+00
+390 tenancy 0006_created_datetimefield 2023-01-22 20:59:22.537041+00
+391 tenancy 0007_contact_link 2023-01-22 20:59:22.693491+00
+392 tenancy 0008_unique_constraints 2023-01-22 20:59:23.793089+00
+393 tenancy 0009_standardize_description_comments 2023-01-22 20:59:23.948913+00
+394 ipam 0058_ipaddress_nat_inside_nonunique 2023-01-22 20:59:24.156846+00
+395 extras 0071_standardize_id_fields 2023-01-22 20:59:25.65063+00
+396 extras 0072_created_datetimefield 2023-01-22 20:59:26.446809+00
+397 extras 0073_journalentry_tags_custom_fields 2023-01-22 20:59:26.692329+00
+398 extras 0074_customfield_extensions 2023-01-22 20:59:26.876793+00
+399 extras 0075_configcontext_locations 2023-01-22 20:59:27.495864+00
+400 ipam 0059_l2vpn 2023-01-22 20:59:28.10541+00
+401 ipam 0060_alter_l2vpn_slug 2023-01-22 20:59:28.282402+00
+402 ipam 0061_fhrpgroup_name 2023-01-22 20:59:28.42408+00
+403 ipam 0062_unique_constraints 2023-01-22 20:59:29.707484+00
+404 ipam 0063_standardize_description_comments 2023-01-22 20:59:31.628374+00
+405 extras 0076_tag_slug_unicode 2023-01-22 20:59:31.813479+00
+406 extras 0077_customlink_extend_text_and_url 2023-01-22 20:59:32.362639+00
+407 extras 0078_unique_constraints 2023-01-22 20:59:32.6338+00
+408 extras 0079_scheduled_jobs 2023-01-22 20:59:32.892081+00
+409 extras 0080_customlink_content_types 2023-01-22 20:59:33.388648+00
+410 extras 0081_exporttemplate_content_types 2023-01-22 20:59:34.413221+00
+411 extras 0082_savedfilter 2023-01-22 20:59:34.692013+00
+412 dcim 0161_cabling_cleanup 2023-01-22 20:59:40.308851+00
+413 dcim 0162_unique_constraints 2023-01-22 20:59:50.258127+00
+414 dcim 0163_weight_fields 2023-01-22 20:59:52.302333+00
+415 dcim 0164_rack_mounting_depth 2023-01-22 20:59:52.47679+00
+416 dcim 0165_standardize_description_comments 2023-01-22 20:59:54.815282+00
+417 dcim 0166_virtualdevicecontext 2023-01-22 20:59:55.515522+00
+418 dcim 0167_module_status 2023-01-22 20:59:55.677949+00
+419 django_rq 0001_initial 2023-01-22 20:59:55.692554+00
+420 wireless 0002_standardize_id_fields 2023-01-22 20:59:56.202977+00
+421 wireless 0003_created_datetimefield 2023-01-22 20:59:58.091875+00
+422 wireless 0004_wireless_tenancy 2023-01-22 20:59:58.46003+00
+423 wireless 0005_wirelesslink_interface_types 2023-01-22 20:59:58.825729+00
+424 wireless 0006_unique_constraints 2023-01-22 20:59:59.724643+00
+425 wireless 0007_standardize_description_comments 2023-01-22 20:59:59.989577+00
+426 wireless 0008_wirelesslan_status 2023-01-22 21:00:00.153347+00
+427 virtualization 0027_standardize_id_fields 2023-01-22 21:00:01.407443+00
+428 virtualization 0028_vminterface_vrf 2023-01-22 21:00:01.610951+00
+429 virtualization 0029_created_datetimefield 2023-01-22 21:00:02.951652+00
+430 virtualization 0030_cluster_status 2023-01-22 21:00:03.125429+00
+431 virtualization 0031_virtualmachine_site_device 2023-01-22 21:00:03.658713+00
+432 virtualization 0032_virtualmachine_update_sites 2023-01-22 21:00:03.841567+00
+433 virtualization 0033_unique_constraints 2023-01-22 21:00:05.36044+00
+434 virtualization 0034_standardize_description_comments 2023-01-22 21:00:05.635176+00
+435 extras 0083_search 2023-01-22 21:00:06.953464+00
+436 extras 0084_staging 2023-01-22 21:00:07.621238+00
+437 netbox_contract 0001_initial 2023-01-22 21:00:09.504361+00
+438 netbox_contract 0002_alter_contract_circuit_and_more 2023-01-22 21:00:09.862468+00
+439 netbox_contract 0003_alter_contract_custom_field_data_and_more 2023-01-22 21:00:11.008849+00
+440 netbox_contract 0004_contract_currency_invoice_currency 2023-01-22 21:00:11.312873+00
+441 netbox_contract 0005_contract_accounting_dimensions_and_more 2023-01-22 21:00:11.969973+00
+442 sessions 0001_initial 2023-01-22 21:00:12.013237+00
+443 default 0001_initial 2023-01-22 21:00:12.323579+00
+444 social_auth 0001_initial 2023-01-22 21:00:12.328587+00
+445 default 0002_add_related_name 2023-01-22 21:00:12.522931+00
+446 social_auth 0002_add_related_name 2023-01-22 21:00:12.526763+00
+447 default 0003_alter_email_max_length 2023-01-22 21:00:12.55616+00
+448 social_auth 0003_alter_email_max_length 2023-01-22 21:00:12.560251+00
+449 default 0004_auto_20160423_0400 2023-01-22 21:00:12.604399+00
+450 social_auth 0004_auto_20160423_0400 2023-01-22 21:00:12.608886+00
+451 social_auth 0005_auto_20160727_2333 2023-01-22 21:00:12.634847+00
+452 social_django 0006_partial 2023-01-22 21:00:12.686552+00
+453 social_django 0007_code_timestamp 2023-01-22 21:00:12.718543+00
+454 social_django 0008_partial_timestamp 2023-01-22 21:00:12.752362+00
+455 social_django 0009_auto_20191118_0520 2023-01-22 21:00:12.835057+00
+456 social_django 0010_uid_db_index 2023-01-22 21:00:12.8956+00
+457 taggit 0001_initial 2023-01-22 21:00:13.153177+00
+458 taggit 0002_auto_20150616_2121 2023-01-22 21:00:13.229162+00
+459 taggit 0003_taggeditem_add_unique_index 2023-01-22 21:00:13.303275+00
+460 taggit 0004_alter_taggeditem_content_type_alter_taggeditem_tag 2023-01-22 21:00:14.106387+00
+461 taggit 0005_auto_20220424_2025 2023-01-22 21:00:14.128857+00
+462 users 0001_api_tokens 2023-01-22 21:00:14.839186+00
+463 users 0002_unicode_literals 2023-01-22 21:00:14.846241+00
+464 users 0003_token_permissions 2023-01-22 21:00:14.851927+00
+465 users 0004_standardize_description 2023-01-22 21:00:14.857292+00
+466 users 0005_userconfig 2023-01-22 21:00:14.863071+00
+467 users 0006_create_userconfigs 2023-01-22 21:00:14.868799+00
+468 users 0007_proxy_group_user 2023-01-22 21:00:14.874292+00
+469 users 0008_objectpermission 2023-01-22 21:00:14.880078+00
+470 users 0009_replicate_permissions 2023-01-22 21:00:14.887234+00
+471 users 0010_update_jsonfield 2023-01-22 21:00:14.893509+00
+472 users 0011_standardize_models 2023-01-22 21:00:14.899283+00
+473 users 0002_standardize_id_fields 2023-01-22 21:00:15.079036+00
+474 users 0003_token_allowed_ips_last_used 2023-01-22 21:00:15.171422+00
+475 social_django 0001_initial 2023-01-22 21:00:15.191406+00
+476 social_django 0002_add_related_name 2023-01-22 21:00:15.202186+00
+477 social_django 0003_alter_email_max_length 2023-01-22 21:00:15.208022+00
+478 social_django 0004_auto_20160423_0400 2023-01-22 21:00:15.213559+00
+479 social_django 0005_auto_20160727_2333 2023-01-22 21:00:15.219515+00
+480 circuits 0002_squashed_0029 2023-01-22 21:00:15.226564+00
+481 circuits 0001_squashed 2023-01-22 21:00:15.233295+00
+482 dcim 0003_squashed_0130 2023-01-22 21:00:15.23973+00
+483 dcim 0002_squashed 2023-01-22 21:00:15.244077+00
+484 dcim 0001_squashed 2023-01-22 21:00:15.248513+00
+485 ipam 0002_squashed_0046 2023-01-22 21:00:15.253574+00
+486 ipam 0001_squashed 2023-01-22 21:00:15.258028+00
+487 extras 0001_squashed 2023-01-22 21:00:15.262296+00
+488 extras 0002_squashed_0059 2023-01-22 21:00:15.266514+00
+489 tenancy 0001_squashed_0012 2023-01-22 21:00:15.270829+00
+490 users 0001_squashed_0011 2023-01-22 21:00:15.275317+00
+491 virtualization 0001_squashed_0022 2023-01-22 21:00:15.279489+00
+492 netbox_contract 0006_alter_contract_circuit 2023-01-22 21:09:35.34657+00
+493 netbox_contract 0007_invoice_date 2023-01-22 21:09:35.50648+00
+494 netbox_contract 0008_invoice_comments 2023-01-22 21:09:35.665789+00
+495 netbox_contract 0009_contract_external_reference 2023-01-22 21:09:35.849634+00
+496 netbox_contract 0010_invoice_contracts 2023-01-22 21:09:36.097984+00
+497 netbox_contract 0011_auto_20230122_2112 2023-01-22 21:17:39.799669+00
+498 netbox_contract 0012_remove_invoice_contract 2023-01-24 15:20:38.004969+00
+499 netbox_contract 0013_contract_documents_invoice_documents 2023-01-30 21:07:03.725171+00
+500 netbox_contract 0014_contract_end_date 2023-01-30 21:34:22.485525+00
+501 ipam 0064_clear_search_cache 2023-03-12 14:53:33.654811+00
+502 netbox_contract 0015_contractassignement 2023-05-13 17:53:34.750516+00
+503 circuits 0042_provideraccount 2023-06-01 21:27:44.907877+00
+504 core 0001_initial 2023-06-01 21:27:46.161095+00
+505 core 0002_managedfile 2023-06-01 21:27:46.440272+00
+506 core 0003_job 2023-06-01 21:27:46.699713+00
+507 core 0004_replicate_jobresults 2023-06-01 21:27:46.910604+00
+508 core 0005_job_created_auto_now 2023-06-01 21:27:46.997314+00
+509 extras 0085_synced_data 2023-06-01 21:27:48.747202+00
+510 extras 0086_configtemplate 2023-06-01 21:27:48.994516+00
+511 dcim 0168_interface_template_enabled 2023-06-01 21:27:49.711631+00
+512 dcim 0169_devicetype_default_platform 2023-06-01 21:27:49.933034+00
+513 dcim 0170_configtemplate 2023-06-01 21:27:50.530727+00
+514 dcim 0171_cabletermination_change_logging 2023-06-01 21:27:50.797994+00
+515 dcim 0172_larger_power_draw_values 2023-06-01 21:27:51.712111+00
+516 extras 0087_dashboard 2023-06-01 21:27:51.95708+00
+517 extras 0088_jobresult_webhooks 2023-06-01 21:27:52.083922+00
+518 extras 0089_customfield_is_cloneable 2023-06-01 21:27:52.165952+00
+519 extras 0090_objectchange_index_request_id 2023-06-01 21:27:52.279502+00
+520 extras 0091_create_managedfiles 2023-06-01 21:27:52.648568+00
+521 extras 0092_delete_jobresult 2023-06-01 21:27:52.6672+00
+522 ipam 0065_asnrange 2023-06-01 21:27:53.404814+00
+523 ipam 0066_iprange_mark_utilized 2023-06-01 21:27:53.572033+00
+524 social_django 0011_alter_id_fields 2023-06-01 21:27:53.834962+00
+525 tenancy 0010_tenant_relax_uniqueness 2023-06-01 21:27:54.849237+00
+526 netbox_contract 0016_contract_parent 2023-06-18 14:45:47.641654+00
+527 netbox_contract 0017_alter_contract_accounting_dimensions 2023-06-18 16:05:20.255314+00
+528 netbox_attachments 0001_initial 2023-09-03 08:02:18.595725+00
+529 netbox_attachments 0002_alter_netboxattachment_options_and_more 2023-09-03 08:02:19.304545+00
+530 netbox_attachments 0003_alter_netboxattachment_name 2023-09-03 08:02:19.559923+00
+531 netbox_attachments 0004_netboxattachment_size_and_more 2023-09-03 08:02:19.993621+00
+532 users 0004_netboxgroup_netboxuser 2023-09-18 11:54:26.734322+00
+533 account 0001_initial 2023-09-18 11:54:26.755326+00
+534 dcim 0173_remove_napalm_fields 2023-09-18 11:54:27.069112+00
+535 dcim 0174_device_latitude_device_longitude 2023-09-18 11:54:27.414344+00
+536 dcim 0174_rack_starting_unit 2023-09-18 11:54:27.586788+00
+537 dcim 0175_device_oob_ip 2023-09-18 11:54:28.153395+00
+538 dcim 0176_device_component_counters 2023-09-18 11:54:32.551075+00
+539 dcim 0177_devicetype_component_counters 2023-09-18 11:54:36.205128+00
+540 dcim 0178_virtual_chassis_member_counter 2023-09-18 11:54:36.970163+00
+541 dcim 0179_interfacetemplate_rf_role 2023-09-18 11:54:37.093256+00
+542 dcim 0180_powerfeed_tenant 2023-09-18 11:54:38.288296+00
+543 dcim 0181_rename_device_role_device_role 2023-09-18 11:54:38.80223+00
+544 extras 0093_configrevision_ordering 2023-09-18 11:54:38.827564+00
+545 extras 0094_tag_object_types 2023-09-18 11:54:39.675747+00
+546 extras 0095_bookmarks 2023-09-18 11:54:39.992794+00
+547 extras 0096_customfieldchoiceset 2023-09-18 11:54:40.9934+00
+548 extras 0097_customfield_remove_choices 2023-09-18 11:54:41.0657+00
+549 extras 0098_webhook_custom_field_data_webhook_tags 2023-09-18 11:54:41.316933+00
+550 ipam 0067_ipaddress_index_host 2023-09-18 11:54:41.517944+00
+551 netbox_attachments 0005_netboxattachment_description 2023-09-18 11:54:41.695859+00
+552 social_django 0012_usersocialauth_extra_data_new 2023-09-18 11:54:41.759859+00
+553 social_django 0013_migrate_extra_data 2023-09-18 11:54:42.005075+00
+554 social_django 0014_remove_usersocialauth_extra_data 2023-09-18 11:54:42.073983+00
+555 social_django 0015_rename_extra_data_new_usersocialauth_extra_data 2023-09-18 11:54:42.132199+00
+556 tenancy 0011_contactassignment_tags 2023-09-18 11:54:42.34849+00
+557 virtualization 0035_virtualmachine_interface_count 2023-09-18 11:54:43.18756+00
+558 virtualization 0036_virtualmachine_config_template 2023-09-18 11:54:43.416221+00
+559 netbox_contract 0018_contract_external_partie_object_id_and_more 2023-09-18 21:01:17.334943+00
+566 netbox_contract 0019_auto_20230924_1813 2023-09-24 19:11:51.222397+00
+568 netbox_contract 0020_alter_contract_external_partie 2023-11-05 16:23:57.274049+00
+569 netbox_contract 0021_alter_contract_external_partie 2023-11-12 16:09:29.342872+00
+570 netbox_contract 0022_alter_contract_internal_partie_alter_contract_parent 2023-12-15 21:35:51.162376+00
+571 circuits 0043_circuittype_color 2024-02-06 19:50:15.380526+00
+572 core 0006_datasource_type_remove_choices 2024-02-06 19:50:15.570875+00
+573 core 0007_job_add_error_field 2024-02-06 19:50:15.708644+00
+574 core 0008_contenttype_proxy 2024-02-06 19:50:15.727384+00
+575 core 0009_configrevision 2024-02-06 19:50:15.746929+00
+576 core 0010_gfk_indexes 2024-02-06 19:50:15.863621+00
+577 dcim 0182_zero_length_cable_fix 2024-02-06 19:50:16.390443+00
+578 dcim 0183_devicetype_exclude_from_utilization 2024-02-06 19:50:16.607083+00
+579 dcim 0184_protect_child_interfaces 2024-02-06 19:50:16.884027+00
+580 dcim 0185_gfk_indexes 2024-02-06 19:50:17.281775+00
+581 extras 0099_cachedvalue_ordering 2024-02-06 19:50:17.364363+00
+582 extras 0100_customfield_ui_attrs 2024-02-06 19:50:17.736811+00
+583 extras 0101_eventrule 2024-02-06 19:50:21.120161+00
+584 extras 0102_move_configrevision 2024-02-06 19:50:21.702625+00
+585 extras 0103_gfk_indexes 2024-02-06 19:50:22.699194+00
+586 extras 0104_stagedchange_remove_change_logging 2024-02-06 19:50:22.841543+00
+587 extras 0105_customfield_min_max_values 2024-02-06 19:50:23.046584+00
+588 extras 0106_bookmark_user_cascade_deletion 2024-02-06 19:50:23.264774+00
+589 ipam 0068_move_l2vpn 2024-02-06 19:50:25.030458+00
+590 ipam 0069_gfk_indexes 2024-02-06 19:50:25.441993+00
+591 taggit 0006_rename_taggeditem_content_type_object_id_taggit_tagg_content_8fc721_idx 2024-02-06 19:50:25.579267+00
+592 tenancy 0012_contactassignment_custom_fields 2024-02-06 19:50:25.783645+00
+593 tenancy 0013_gfk_indexes 2024-02-06 19:50:26.098181+00
+594 tenancy 0014_contactassignment_ordering 2024-02-06 19:50:26.327091+00
+595 virtualization 0037_protect_child_interfaces 2024-02-06 19:50:26.553655+00
+596 virtualization 0038_virtualdisk 2024-02-06 19:50:27.696592+00
+597 vpn 0001_initial 2024-02-06 19:50:31.062251+00
+598 vpn 0002_move_l2vpn 2024-02-06 19:50:32.382114+00
+599 vpn 0003_ipaddress_multiple_tunnel_terminations 2024-02-06 19:50:32.63743+00
+600 vpn 0004_alter_ikepolicy_mode 2024-02-06 19:50:32.82809+00
+601 extras 0107_cachedvalue_extras_cachedvalue_object 2024-03-09 09:07:09.197029+00
+\.
+
+
+--
+-- Data for Name: django_session; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.django_session (session_key, session_data, expire_date) FROM stdin;
+dt3wwcj2nr4cr9ugnytxft976gynp9mt .eJxVjEEKwyAQAP_iuQSjMVl77AfSH8i6rmhLDUQDhdK_N4Ee2uvMMC_hcGvJbZVXl4M4i16cfplHunM5ROHml2d3KC4tE7a8lG72N6Z25fWRa93B5dv_TRLWtB9QIiFOMBJxsMYokIMFGU3UnoyPeiCSvWHrUUfQYEetJoQRGJSxfRDvD1NJOjY:1rf3O4:iL7KIcgBY-BKc_zrsgUjTsycMWFeiJdTWxU0cACWIUs 2024-03-12 19:45:12.966096+00
+qr15dvv30mlcmf8y0m3u901txrnd9mr5 .eJxVjEEKwyAQAP_iuQSjMVl77AfSH8i6rmhLDUQDhdK_N4Ee2uvMMC_hcGvJbZVXl4M4i16cfplHunM5ROHml2d3KC4tE7a8lG72N6Z25fWRa93B5dv_TRLWtB9QIiFOMBJxsMYokIMFGU3UnoyPeiCSvWHrUUfQYEetJoQRGJSxfRDvD1NJOjY:1rfPPY:xZmjiAXonsqyZZLhxd0FOe2A3p9YxatFVptCttah-KE 2024-03-13 19:16:12.605499+00
+89fpjlg5w2hz4qcv50lb81j9tt17vekp .eJxVjEEKwyAQAP_iuQSjMVl77AfSH8i6rmhLDUQDhdK_N4Ee2uvMMC_hcGvJbZVXl4M4i16cfplHunM5ROHml2d3KC4tE7a8lG72N6Z25fWRa93B5dv_TRLWtB9QIiFOMBJxsMYokIMFGU3UnoyPeiCSvWHrUUfQYEetJoQRGJSxfRDvD1NJOjY:1rk8lc:Yax3zFchJQSA8qutJfTSzdy_MtOvPxON3p-1Ia54rVc 2024-03-26 20:30:32.62657+00
+z2zm4hrsgg06xzrtaih0mapvfluvwmfp .eJxVjEEKwyAQAP_iuQSjMVl77AfSH8i6rmhLDUQDhdK_N4Ee2uvMMC_hcGvJbZVXl4M4i16cfplHunM5ROHml2d3KC4tE7a8lG72N6Z25fWRa93B5dv_TRLWtB9QIiFOMBJxsMYokIMFGU3UnoyPeiCSvWHrUUfQYEetJoQRGJSxfRDvD1NJOjY:1rlcKK:dYBSqJBGnDTgliw_Fs7cEn1mBiMYtJvOQQQsRHkNkEs 2024-03-30 22:16:28.987906+00
+\.
+
+
+--
+-- Data for Name: extras_bookmark; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.extras_bookmark (id, created, object_id, object_type_id, user_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: extras_branch; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.extras_branch (id, created, last_updated, name, description, user_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: extras_cachedvalue; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.extras_cachedvalue (id, "timestamp", object_id, field, type, value, weight, object_type_id) FROM stdin;
+84c962be-8fa5-4fc7-a88b-eb5a0bd5bdb8 2023-01-22 21:05:16.16185+00 1 name str CircuitType1 100 3
+53ec3325-4734-45bc-8562-ac967b642a7b 2023-01-22 21:05:16.16193+00 1 slug str circuittype1 110 3
+749df3ef-fe07-455e-978f-c23efc7797a2 2023-01-22 21:05:32.988042+00 1 name str Provider1 100 4
+48ac7826-04b0-4c28-bca5-84ce4bce37e9 2023-01-22 21:05:47.847864+00 1 cid str Circuit1 100 1
+ad30c9d0-bc06-438e-9de8-640eeb9d1076 2023-02-19 10:57:58.48938+00 1 name str ServiceProvider1 100 117
+937db1ec-1b10-430b-8e93-37b6d299ea3f 2023-12-06 19:57:45.286036+00 4 name str Contract5 100 116
+a5ccfb52-1b3d-425d-9fdd-b9fe5972ad80 2023-12-06 20:17:18.687327+00 3 name str Contract3 100 116
+8da046d5-e7e5-4f94-a983-a1e682e6877a 2023-12-15 21:14:51.69428+00 1 prefix cidr 10.0.0.0/8 110 42
+a7db6828-18d1-44e7-b689-bedd9c983967 2023-02-19 10:57:58.541062+00 3 number str invoice4 100 118
+261deec2-c917-4346-b84f-a573b4545b94 2023-02-19 10:57:58.541148+00 2 number str Invoice2 100 118
+6cffdf8c-f673-407c-8158-2ee6a86fa63b 2023-02-19 10:57:58.541194+00 1 number str Invoice1 100 118
+2d9b35d7-9e6c-4312-b9ae-1e131149f341 2023-02-19 10:57:58.541238+00 4 number str invoice5 100 118
+c706abb0-e6d7-4151-9d17-9fbbfd4aee7b 2023-02-19 10:57:58.541282+00 4 comments str some comment 5000 118
+b7b1d97a-7c43-4678-84ae-45352c54e7c1 2023-12-15 21:15:17.923318+00 2 prefix cidr 10.0.0.0/16 110 42
+8ddecb2a-f6dd-4996-bc2f-d9938e6e0db8 2023-12-15 21:38:08.784164+00 16 name str Contract8 100 116
+8f98acfa-5533-4451-bc79-e20dd207bf46 2023-02-19 14:54:50.134892+00 2 cid str Circuit2 100 1
+2ffd7c5e-3f30-4685-9670-013ef203863d 2024-02-06 20:05:53.137286+00 17 name str Contract99 100 116
+9a422130-3bf7-4107-8966-d2d67d763e4c 2023-03-12 14:52:35.743376+00 5 number str invoice10 100 118
+33a259a8-0173-49b3-88dd-2b28764d2e9a 2024-02-06 21:01:13.08815+00 8 number str invoice99 100 118
+135dcf0e-f2df-479b-9472-0cef3bcb1fe3 2024-03-12 21:44:06.801685+00 1 comments str test 5000 35
+ca4d0764-2c63-4088-bfca-75c0103b9e92 2023-03-12 16:56:48.453158+00 6 number str invoice11 100 118
+bc4c72fb-34c4-4cf1-9e1e-8757b5e50454 2023-03-12 17:03:13.385581+00 7 number str invoice12 100 118
+4d91a623-63e9-4639-b243-0fe6abba4a61 2023-05-23 20:56:33.756741+00 1 name str test 100 51
+58d1f516-b2af-4838-9f05-e00f5fbe5575 2023-06-01 20:25:52.553496+00 1 name str TestSite 100 31
+3eb9d583-e646-4bc2-9925-86f9c13bcb49 2023-06-01 20:25:52.553589+00 1 slug str testsite 110 31
+aeeef3c9-cf91-4a8b-b89d-c19d003dbed2 2023-06-01 20:26:18.798494+00 1 name str TestRole 100 11
+78e87a3e-b06f-4451-bba7-4ec5ec792888 2023-06-01 20:26:18.798551+00 1 slug str testrole 110 11
+df0c06ce-ae64-464d-9012-e172e13dabe5 2023-06-01 20:27:48.768345+00 1 name str TestManufacturer 100 17
+9a7888ff-a927-4316-be03-5bf7b2a6a086 2023-06-01 20:27:48.768395+00 1 slug str testmanufacturer 110 17
+7bef00de-4a0e-4fe5-baf1-e32e8e2a14d3 2023-06-01 20:29:41.133339+00 1 model str TestDeviceType 100 12
+85c984ae-03fd-41f1-aa40-ec8264641804 2023-06-01 20:30:32.727917+00 1 asset_tag str None 50 9
+3c42e119-e5d6-48a2-88e6-5d80a344cd80 2023-06-01 20:30:32.727967+00 1 name str TestDevice 100 9
+0c945e18-27f9-404b-b0c5-ac645fc3f394 2024-03-16 22:17:22.609626+00 2 comments str # Info 1\r\nthis is a new info 5000 35
+a3ef4de9-5cde-4f0f-9a2d-57b6cdfd46b4 2023-06-21 19:50:39.654194+00 1 name str TestRole 100 53
+35947d91-0c5f-4c6a-af03-7b163857a5cf 2023-06-21 19:50:39.654267+00 1 slug str testrole 110 53
+0b077016-10cc-473c-89d2-988d722ea8e6 2023-06-25 08:49:15.337905+00 2 name str ServicerProvider2 100 117
+8c76aef5-d58f-4eda-bc55-1d059ebd3961 2023-06-25 08:49:33.737518+00 3 name str ServiceProvider3 100 117
+59ccc054-7bdf-4f0a-8ed2-23ec0dc5d878 2023-06-25 08:55:15.835729+00 2 name str test2 100 51
+cc5f4f72-7252-40c9-8434-14883726ece0 2023-09-03 08:19:35.002428+00 2 name str att1 100 131
+a5e73511-fedb-4653-aa3b-bcb712a2aa95 2023-09-03 08:19:35.002493+00 2 comments str attachement 1 5000 131
+095d4962-c3de-4640-867d-4c7bbf9e6c17 2023-09-03 08:21:01.501619+00 3 name str att2 100 131
+568e5821-0c8b-40ee-8831-8bcbc9782f14 2023-09-03 10:57:08.756984+00 1 name str cluster_type_1 100 58
+6bf600d7-39b1-4c53-a44f-b9da4c192c8e 2023-09-03 10:57:08.757098+00 1 slug str cluster_type_1 110 58
+f9c87d3e-d725-4722-a3e1-7f974d479b1c 2023-09-03 10:57:22.27586+00 1 name str cluster1 100 56
+9ad412bd-c987-4fef-9d62-81961aff1277 2023-09-03 10:57:49.307207+00 1 name str test1 100 59
+e12400a0-a0fc-4f6f-b150-aced5c081b97 2023-09-18 22:38:18.488924+00 1 name str tenantgoupe1 100 55
+759b8b4f-c962-4d35-89c9-727502cdcb2b 2023-09-18 22:38:18.489119+00 1 slug str tenantgoupe1 110 55
+446c7af1-9177-4a33-a8ab-f11b2bc9127b 2023-09-18 22:38:38.752357+00 2 name str tenant2 100 54
+997fd819-dccd-487b-8af9-a86567911018 2023-09-18 22:38:38.752423+00 2 slug str tenant2 110 54
+6fa1ad2e-7095-4cdf-a10a-ac46928d4104 2023-09-18 22:39:03.021637+00 1 name str Tenant1 100 54
+3d5d8a34-1ded-4f51-bcb0-b7024cb628a8 2023-09-18 22:39:03.022503+00 1 slug str tenant1 110 54
+3a58b970-2c16-4c04-95cb-e6e9b7d556ff 2023-11-13 22:12:26.52234+00 13 name str Contract99 100 116
+024b4940-ac24-4222-b2f7-8dba3064de16 2023-11-13 22:32:47.264255+00 1 name str Contract1 100 116
+433dff00-2396-400a-9009-a4c63c53bbfb 2023-11-13 22:32:47.264322+00 1 cf_test_field str test 1000 116
+15c66a7a-5bcf-40eb-90fc-a4bada113183 2023-11-13 22:33:53.285994+00 14 name str Contract10 100 116
+50a8089c-6ce9-4936-8e00-56e87a54d741 2023-12-02 10:58:08.717116+00 2 name str Contract2 100 116
+c3cbd62d-b892-4c81-b027-6e44cd2614c0 2023-12-02 10:58:08.717223+00 2 comments str Additional reference : testreference2 5000 116
+\.
+
+
+--
+-- Data for Name: extras_configcontext; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.extras_configcontext (created, last_updated, id, name, weight, description, is_active, data, data_file_id, data_path, data_source_id, auto_sync_enabled, data_synced) FROM stdin;
+\.
+
+
+--
+-- Data for Name: extras_configcontext_cluster_groups; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.extras_configcontext_cluster_groups (id, configcontext_id, clustergroup_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: extras_configcontext_cluster_types; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.extras_configcontext_cluster_types (id, configcontext_id, clustertype_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: extras_configcontext_clusters; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.extras_configcontext_clusters (id, configcontext_id, cluster_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: extras_configcontext_device_types; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.extras_configcontext_device_types (id, configcontext_id, devicetype_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: extras_configcontext_locations; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.extras_configcontext_locations (id, configcontext_id, location_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: extras_configcontext_platforms; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.extras_configcontext_platforms (id, configcontext_id, platform_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: extras_configcontext_regions; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.extras_configcontext_regions (id, configcontext_id, region_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: extras_configcontext_roles; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.extras_configcontext_roles (id, configcontext_id, devicerole_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: extras_configcontext_site_groups; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.extras_configcontext_site_groups (id, configcontext_id, sitegroup_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: extras_configcontext_sites; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.extras_configcontext_sites (id, configcontext_id, site_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: extras_configcontext_tags; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.extras_configcontext_tags (id, configcontext_id, tag_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: extras_configcontext_tenant_groups; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.extras_configcontext_tenant_groups (id, configcontext_id, tenantgroup_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: extras_configcontext_tenants; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.extras_configcontext_tenants (id, configcontext_id, tenant_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: extras_configtemplate; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.extras_configtemplate (id, created, last_updated, data_path, data_synced, name, description, template_code, environment_params, data_file_id, data_source_id, auto_sync_enabled) FROM stdin;
+\.
+
+
+--
+-- Data for Name: extras_customfield; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.extras_customfield (id, type, name, label, description, required, filter_logic, "default", weight, validation_minimum, validation_maximum, validation_regex, created, last_updated, object_type_id, group_name, search_weight, is_cloneable, choice_set_id, ui_editable, ui_visible) FROM stdin;
+1 text test_field Test field f loose \N 100 \N \N 2023-01-24 19:00:37.123219+00 2023-01-24 19:00:37.123263+00 \N 1000 f \N yes always
+\.
+
+
+--
+-- Data for Name: extras_customfield_content_types; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.extras_customfield_content_types (id, customfield_id, contenttype_id) FROM stdin;
+1 1 116
+\.
+
+
+--
+-- Data for Name: extras_customfieldchoiceset; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.extras_customfieldchoiceset (id, created, last_updated, name, description, base_choices, extra_choices, order_alphabetically) FROM stdin;
+\.
+
+
+--
+-- Data for Name: extras_customlink; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.extras_customlink (id, name, link_text, link_url, weight, group_name, button_class, new_window, created, last_updated, enabled) FROM stdin;
+\.
+
+
+--
+-- Data for Name: extras_customlink_content_types; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.extras_customlink_content_types (id, customlink_id, contenttype_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: extras_dashboard; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.extras_dashboard (id, layout, config, user_id) FROM stdin;
+1 [{"h": 2, "w": 4, "x": null, "y": null, "id": "f422c27f-65a2-473f-b9e2-45b6a808bfe0"}, {"h": 3, "w": 4, "x": null, "y": null, "id": "ce833424-4090-462f-be28-f86fad2c7606"}, {"h": 2, "w": 4, "x": null, "y": null, "id": "a1fccbc8-da9f-4cd8-ae8d-60b21655ebfb"}, {"h": 2, "w": 4, "x": null, "y": null, "id": "879963de-e9db-4466-a1d5-7a1f7120dd01"}, {"h": 4, "w": 4, "x": null, "y": null, "id": "3eaa2d46-f2ad-4d1a-ad8b-88930f3aabc9"}, {"h": 3, "w": 4, "x": null, "y": null, "id": "c665d1d3-9ac8-4a69-95ae-e2411377cd43"}, {"h": 2, "w": 4, "x": null, "y": null, "id": "a28f4e0e-cbc2-48da-bf6a-585d302c78f5"}, {"h": 5, "w": 12, "x": null, "y": null, "id": "4e4df1e5-6da4-42fd-8a87-392a281214b5"}] {"3eaa2d46-f2ad-4d1a-ad8b-88930f3aabc9": {"class": "extras.RSSFeedWidget", "color": null, "title": "NetBox News", "config": {"feed_url": "http://netbox.dev/rss/", "max_entries": 10, "cache_timeout": 14400}}, "4e4df1e5-6da4-42fd-8a87-392a281214b5": {"class": "extras.ObjectListWidget", "color": "blue", "title": "Change Log", "config": {"model": "extras.objectchange", "page_size": 25}}, "879963de-e9db-4466-a1d5-7a1f7120dd01": {"class": "extras.ObjectCountsWidget", "color": null, "title": "Circuits", "config": {"models": ["circuits.provider", "circuits.circuit", "circuits.providernetwork"]}}, "a1fccbc8-da9f-4cd8-ae8d-60b21655ebfb": {"class": "extras.NoteWidget", "color": "green", "title": "Welcome!", "config": {"content": "This is your personal dashboard. Feel free to customize it by rearranging, resizing, or removing widgets. You can also add new widgets using the \\"add widget\\" button below. Any changes affect only _your_ dashboard, so feel free to experiment!"}}, "a28f4e0e-cbc2-48da-bf6a-585d302c78f5": {"class": "extras.ObjectCountsWidget", "color": null, "title": "Virtualization", "config": {"models": ["virtualization.cluster", "virtualization.virtualmachine"]}}, "c665d1d3-9ac8-4a69-95ae-e2411377cd43": {"class": "extras.ObjectCountsWidget", "color": null, "title": "DCIM", "config": {"models": ["dcim.site", "dcim.rack", "dcim.devicetype", "dcim.device", "dcim.cable"]}}, "ce833424-4090-462f-be28-f86fad2c7606": {"class": "extras.ObjectCountsWidget", "color": null, "title": "IPAM", "config": {"models": ["ipam.vrf", "ipam.aggregate", "ipam.prefix", "ipam.iprange", "ipam.ipaddress", "ipam.vlan"]}}, "f422c27f-65a2-473f-b9e2-45b6a808bfe0": {"class": "extras.ObjectCountsWidget", "color": null, "title": "Organization", "config": {"models": ["dcim.site", "tenancy.tenant", "tenancy.contact"]}}} 1
+2 [{"h": 2, "w": 4, "x": null, "y": null, "id": "7333e40f-b808-4f9c-8eaa-95a90ac13460"}, {"h": 3, "w": 4, "x": null, "y": null, "id": "b7067463-f1ab-4b7e-9cac-55aec37e995c"}, {"h": 2, "w": 4, "x": null, "y": null, "id": "1c6c56a0-7e86-4297-92cb-2de03954a67d"}, {"h": 2, "w": 4, "x": null, "y": null, "id": "4fced96f-e17d-4fa0-b91f-9ebb3c5fa8e4"}, {"h": 4, "w": 4, "x": null, "y": null, "id": "191703cb-234e-40df-9adb-ab32845438dd"}, {"h": 3, "w": 4, "x": null, "y": null, "id": "333bebbe-c4bc-440d-9574-1b17f7da9d2f"}, {"h": 2, "w": 4, "x": null, "y": null, "id": "b45e0398-1df1-4e75-99d3-f7cb9bd396c2"}, {"h": 5, "w": 12, "x": null, "y": null, "id": "8fd53ccc-e9eb-4861-96e3-fcbbcd56c17f"}] {"191703cb-234e-40df-9adb-ab32845438dd": {"class": "extras.RSSFeedWidget", "color": null, "title": "NetBox News", "config": {"feed_url": "http://netbox.dev/rss/", "max_entries": 10, "cache_timeout": 14400}}, "1c6c56a0-7e86-4297-92cb-2de03954a67d": {"class": "extras.NoteWidget", "color": "green", "title": "Welcome!", "config": {"content": "This is your personal dashboard. Feel free to customize it by rearranging, resizing, or removing widgets. You can also add new widgets using the \\"add widget\\" button below. Any changes affect only _your_ dashboard, so feel free to experiment!"}}, "333bebbe-c4bc-440d-9574-1b17f7da9d2f": {"class": "extras.ObjectCountsWidget", "color": null, "title": "DCIM", "config": {"models": ["dcim.site", "dcim.rack", "dcim.devicetype", "dcim.device", "dcim.cable"]}}, "4fced96f-e17d-4fa0-b91f-9ebb3c5fa8e4": {"class": "extras.ObjectCountsWidget", "color": null, "title": "Circuits", "config": {"models": ["circuits.provider", "circuits.circuit", "circuits.providernetwork"]}}, "7333e40f-b808-4f9c-8eaa-95a90ac13460": {"class": "extras.ObjectCountsWidget", "color": null, "title": "Organization", "config": {"models": ["dcim.site", "tenancy.tenant", "tenancy.contact"]}}, "8fd53ccc-e9eb-4861-96e3-fcbbcd56c17f": {"class": "extras.ObjectListWidget", "color": "blue", "title": "Change Log", "config": {"model": "extras.objectchange", "page_size": 25}}, "b45e0398-1df1-4e75-99d3-f7cb9bd396c2": {"class": "extras.ObjectCountsWidget", "color": null, "title": "Virtualization", "config": {"models": ["virtualization.cluster", "virtualization.virtualmachine"]}}, "b7067463-f1ab-4b7e-9cac-55aec37e995c": {"class": "extras.ObjectCountsWidget", "color": null, "title": "IPAM", "config": {"models": ["ipam.vrf", "ipam.aggregate", "ipam.prefix", "ipam.iprange", "ipam.ipaddress", "ipam.vlan"]}}} 4
+3 [{"h": 2, "w": 4, "x": null, "y": null, "id": "eac0a217-4d0c-4f05-b5ee-24d7113c8007"}, {"h": 3, "w": 4, "x": null, "y": null, "id": "1bfff8b4-78bc-4089-83ca-3067ef723e25"}, {"h": 2, "w": 4, "x": null, "y": null, "id": "91c66450-3db2-44ef-9e1c-a1d068bddfe1"}, {"h": 2, "w": 4, "x": null, "y": null, "id": "4b00d85e-cfb2-48ac-bbce-cc08504e8814"}, {"h": 4, "w": 4, "x": null, "y": null, "id": "651596d7-dc96-4c8b-9e46-4967b46e5247"}, {"h": 3, "w": 4, "x": null, "y": null, "id": "5dff650e-1658-4ca0-b211-4df48a31d97f"}, {"h": 2, "w": 4, "x": null, "y": null, "id": "d833171a-02fd-4f9f-9c61-8247a7dc02f4"}, {"h": 5, "w": 12, "x": null, "y": null, "id": "8d4bebba-66c0-4cd3-8a0e-1e9689740e0a"}] {"1bfff8b4-78bc-4089-83ca-3067ef723e25": {"class": "extras.ObjectCountsWidget", "color": null, "title": "IPAM", "config": {"models": ["ipam.vrf", "ipam.aggregate", "ipam.prefix", "ipam.iprange", "ipam.ipaddress", "ipam.vlan"]}}, "4b00d85e-cfb2-48ac-bbce-cc08504e8814": {"class": "extras.ObjectCountsWidget", "color": null, "title": "Circuits", "config": {"models": ["circuits.provider", "circuits.circuit", "circuits.providernetwork"]}}, "5dff650e-1658-4ca0-b211-4df48a31d97f": {"class": "extras.ObjectCountsWidget", "color": null, "title": "DCIM", "config": {"models": ["dcim.site", "dcim.rack", "dcim.devicetype", "dcim.device", "dcim.cable"]}}, "651596d7-dc96-4c8b-9e46-4967b46e5247": {"class": "extras.RSSFeedWidget", "color": null, "title": "NetBox News", "config": {"feed_url": "http://netbox.dev/rss/", "max_entries": 10, "cache_timeout": 14400}}, "8d4bebba-66c0-4cd3-8a0e-1e9689740e0a": {"class": "extras.ObjectListWidget", "color": "blue", "title": "Change Log", "config": {"model": "extras.objectchange", "page_size": 25}}, "91c66450-3db2-44ef-9e1c-a1d068bddfe1": {"class": "extras.NoteWidget", "color": "green", "title": "Welcome!", "config": {"content": "This is your personal dashboard. Feel free to customize it by rearranging, resizing, or removing widgets. You can also add new widgets using the \\"add widget\\" button below. Any changes affect only _your_ dashboard, so feel free to experiment!"}}, "d833171a-02fd-4f9f-9c61-8247a7dc02f4": {"class": "extras.ObjectCountsWidget", "color": null, "title": "Virtualization", "config": {"models": ["virtualization.cluster", "virtualization.virtualmachine"]}}, "eac0a217-4d0c-4f05-b5ee-24d7113c8007": {"class": "extras.ObjectCountsWidget", "color": null, "title": "Organization", "config": {"models": ["dcim.site", "tenancy.tenant", "tenancy.contact"]}}} 3
+\.
+
+
+--
+-- Data for Name: extras_eventrule; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.extras_eventrule (id, created, last_updated, custom_field_data, name, description, type_create, type_update, type_delete, type_job_start, type_job_end, enabled, conditions, action_type, action_object_id, action_parameters, action_data, comments, action_object_type_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: extras_eventrule_content_types; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.extras_eventrule_content_types (id, eventrule_id, contenttype_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: extras_exporttemplate; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.extras_exporttemplate (id, name, description, template_code, mime_type, file_extension, as_attachment, created, last_updated, data_file_id, data_path, data_source_id, auto_sync_enabled, data_synced) FROM stdin;
+\.
+
+
+--
+-- Data for Name: extras_exporttemplate_content_types; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.extras_exporttemplate_content_types (id, exporttemplate_id, contenttype_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: extras_imageattachment; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.extras_imageattachment (id, object_id, image, image_height, image_width, name, created, content_type_id, last_updated) FROM stdin;
+\.
+
+
+--
+-- Data for Name: extras_journalentry; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.extras_journalentry (last_updated, id, assigned_object_id, created, kind, comments, assigned_object_type_id, created_by_id, custom_field_data) FROM stdin;
+2024-03-12 21:44:06.735834+00 1 1 2024-03-12 21:44:06.735779+00 info test 9 1 {}
+2024-03-16 22:17:22.562106+00 2 1 2024-03-16 22:17:22.562074+00 info # Info 1\r\nthis is a new info 116 1 {}
+\.
+
+
+--
+-- Data for Name: extras_objectchange; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.extras_objectchange (id, "time", user_name, request_id, action, changed_object_id, related_object_id, object_repr, prechange_data, postchange_data, changed_object_type_id, related_object_type_id, user_id) FROM stdin;
+1 2023-01-22 21:05:16.173635+00 admin ae00ee7b-6f20-4cf2-b4ee-4289e59cc508 create 1 \N CircuitType1 \N {"name": "CircuitType1", "slug": "circuittype1", "tags": [], "created": "2023-01-22T21:05:16.149Z", "description": "", "last_updated": "2023-01-22T21:05:16.149Z", "custom_fields": {}} 3 \N 1
+2 2023-01-22 21:05:33.000408+00 admin 08059f30-e23f-4c7c-808e-59ee8b8c8c2c create 1 \N Provider1 \N {"asns": [], "name": "Provider1", "slug": "provider1", "tags": [], "account": "", "created": "2023-01-22T21:05:32.979Z", "comments": "", "description": "", "last_updated": "2023-01-22T21:05:32.979Z", "custom_fields": {}} 4 \N 1
+3 2023-01-22 21:05:47.856009+00 admin 83d8f803-a745-4a5a-b88b-809f2db01566 create 1 \N Circuit1 \N {"cid": "Circuit1", "tags": [], "type": 1, "status": "active", "tenant": null, "created": "2023-01-22T21:05:47.836Z", "comments": "", "provider": 1, "commit_rate": null, "description": "", "install_date": null, "last_updated": "2023-01-22T21:05:47.836Z", "custom_fields": {}, "termination_a": null, "termination_z": null, "termination_date": null} 1 \N 1
+4 2023-01-22 21:06:16.064779+00 admin 126d1cfc-8dc6-441d-a166-df90ed508b92 create 1 \N ServiceProvider1 \N {"name": "ServiceProvider1", "slug": "serviceprovider1", "tags": [], "created": "2023-01-22T21:06:16.052Z", "comments": "", "portal_url": "", "last_updated": "2023-01-22T21:06:16.052Z", "custom_fields": {}} 117 \N 1
+5 2023-01-22 21:07:09.432087+00 admin 1d473950-b337-419d-ac97-ff9a64232859 create 1 \N Contract1 \N {"mrc": "1250", "nrc": "0", "name": "Contract1", "tags": [], "status": "Active", "tenant": null, "circuit": [1], "created": "2023-01-22T21:07:09.414Z", "comments": "", "currency": "usd", "start_date": null, "initial_term": 12, "last_updated": "2023-01-22T21:07:09.414Z", "renewal_term": 12, "custom_fields": {}, "external_partie": 1, "internal_partie": "Nagravision Sarl", "invoice_frequency": 1, "accounting_dimensions": {"account": "account1"}} 116 \N 1
+6 2023-01-22 21:07:37.092217+00 admin 871f6ca1-df47-4c29-a6b9-f13e052d0e10 create 1 \N Invoice1 \N {"tags": [], "amount": "1250.00", "number": "Invoice1", "created": "2023-01-22T21:07:37.084Z", "contract": 1, "currency": "usd", "period_end": "2023-01-31", "last_updated": "2023-01-22T21:07:37.084Z", "period_start": "2023-01-01", "custom_fields": {}, "accounting_dimensions": {"account": "account1"}} 118 \N 1
+7 2023-01-22 21:07:57.813754+00 admin e890f154-c567-413c-a571-0b81a1648ec3 create 2 \N Invoice2 \N {"tags": [], "amount": "1250.00", "number": "Invoice2", "created": "2023-01-22T21:07:57.801Z", "contract": 1, "currency": "usd", "period_end": "2023-03-01", "last_updated": "2023-01-22T21:07:57.801Z", "period_start": "2023-02-01", "custom_fields": {}, "accounting_dimensions": {"account": "account1"}} 118 \N 1
+8 2023-01-24 14:48:30.743122+00 admin 3985640d-3f5c-465b-9718-4717a1ea1eb5 create 2 \N Contract2 \N {"mrc": "250", "nrc": "0", "name": "Contract2", "tags": [], "status": "Active", "tenant": null, "circuit": [], "created": "2023-01-24T14:48:30.718Z", "comments": "", "currency": "usd", "start_date": null, "initial_term": 12, "last_updated": "2023-01-24T14:48:30.718Z", "renewal_term": 12, "custom_fields": {}, "external_partie": 1, "internal_partie": "Nagravision Sarl", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": {"Accoount": ""}} 116 \N 1
+9 2023-01-24 14:48:53.344524+00 admin ecde8a0d-6248-4345-bb3c-bf6fc905e5c4 update 2 \N Invoice2 {"date": null, "tags": [], "amount": "1250.00", "number": "Invoice2", "created": "2023-01-22T21:07:57.801Z", "comments": "", "contract": 1, "currency": "usd", "contracts": [1], "period_end": "2023-03-01", "last_updated": "2023-01-22T21:07:57.801Z", "period_start": "2023-02-01", "custom_fields": {}, "accounting_dimensions": {"account": "account1"}} {"date": "2023-01-24", "tags": [], "amount": "1250.00", "number": "Invoice2", "created": "2023-01-22T21:07:57.801Z", "comments": "", "contract": 1, "currency": "usd", "contracts": [1, 2], "period_end": "2023-03-01", "last_updated": "2023-01-24T14:48:53.329Z", "period_start": "2023-02-01", "custom_fields": {}, "accounting_dimensions": {"account": "account1"}} 118 \N 1
+58 2023-05-23 21:10:21.605825+00 admin b6ab8504-e15f-4549-a3fc-c3cea4e484c8 delete 19 \N ContractAssignement object (19) {"tags": [], "created": "2023-05-23T18:09:43.969Z", "contract": 1, "object_id": 1, "content_type": 1, "last_updated": "2023-05-23T18:09:43.969Z", "custom_fields": {}} \N 119 \N 1
+59 2023-05-23 21:10:51.916912+00 admin 212a0c3a-0fde-4f31-8d89-3d78dc29865b delete 21 \N ContractAssignement object (21) {"tags": [], "created": "2023-05-23T19:05:10.439Z", "contract": 3, "object_id": 1, "content_type": 1, "last_updated": "2023-05-23T19:05:10.439Z", "custom_fields": {}} \N 119 \N 1
+67 2023-05-25 20:17:41.370104+00 admin 9d989e0a-1121-40c1-a7f0-727ecbb25ef7 delete 23 \N ContractAssignement object (23) {"tags": [], "created": "2023-05-25T19:41:58.107Z", "contract": 2, "object_id": 1, "content_type": 1, "last_updated": "2023-05-25T19:41:58.107Z", "custom_fields": {}} \N 119 \N 1
+68 2023-05-25 20:17:52.773549+00 admin 563b717d-2dd4-4e79-a1be-b6d32cf88ede delete 24 \N ContractAssignement object (24) {"tags": [], "created": "2023-05-25T19:41:58.116Z", "contract": 3, "object_id": 1, "content_type": 1, "last_updated": "2023-05-25T19:41:58.116Z", "custom_fields": {}} \N 119 \N 1
+69 2023-05-25 20:18:16.503086+00 admin 31ae79a9-5591-41fd-9f3f-3933741a834f delete 25 \N ContractAssignement object (25) {"tags": [], "created": "2023-05-25T19:41:58.125Z", "contract": 4, "object_id": 2, "content_type": 1, "last_updated": "2023-05-25T19:41:58.125Z", "custom_fields": {}} \N 119 \N 1
+71 2023-05-25 21:11:45.945212+00 admin 6e77023c-04ba-4517-9529-3cb98c5fde1c delete 31 \N ContractAssignement object (31) {"tags": [], "created": "2023-05-25T21:08:34.005Z", "contract": 3, "object_id": 1, "content_type": 1, "last_updated": "2023-05-25T21:08:34.005Z", "custom_fields": {}} \N 119 \N 1
+72 2023-05-25 21:11:56.452098+00 admin 386757ca-5729-4f3d-94fc-2d383045dbd6 create 32 \N ContractAssignement object (32) \N {"tags": [], "created": "2023-05-25T21:11:56.444Z", "contract": 3, "object_id": 1, "content_type": 1, "last_updated": "2023-05-25T21:11:56.444Z", "custom_fields": {}} 119 \N 1
+73 2023-06-01 20:25:52.578087+00 admin 4568913d-3faf-4cac-a22d-5d580cf0d482 create 1 \N TestSite \N {"asns": [], "name": "TestSite", "slug": "testsite", "tags": [], "group": null, "region": null, "status": "active", "tenant": null, "created": "2023-06-01T20:25:52.543Z", "comments": "", "facility": "", "latitude": null, "longitude": null, "time_zone": null, "description": "", "last_updated": "2023-06-01T20:25:52.543Z", "custom_fields": {}, "physical_address": "", "shipping_address": ""} 31 \N 1
+10 2023-01-24 15:03:54.004203+00 admin 243bceb5-0eee-4a61-ac41-6ef2f02ac372 update 2 \N Contract2 {"mrc": "250.00", "nrc": "0.00", "name": "Contract2", "tags": [], "status": "Active", "tenant": null, "circuit": [], "created": "2023-01-24T14:48:30.718Z", "comments": "", "currency": "usd", "start_date": null, "initial_term": 12, "last_updated": "2023-01-24T14:48:30.718Z", "renewal_term": 12, "custom_fields": {}, "external_partie": 1, "internal_partie": "Nagravision Sarl", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": {"Accoount": ""}} {"mrc": "250.00", "nrc": "0.00", "name": "Contract2", "tags": [], "status": "Active", "tenant": null, "circuit": [1], "created": "2023-01-24T14:48:30.718Z", "comments": "", "currency": "usd", "start_date": null, "initial_term": 12, "last_updated": "2023-01-24T15:03:53.988Z", "renewal_term": 12, "custom_fields": {}, "external_partie": 1, "internal_partie": "Nagravision Sarl", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": {"Accoount": ""}} 116 \N 1
+11 2023-01-24 15:21:47.308907+00 admin 21aa9fe6-953a-4b1b-8594-686d7d05dcc9 create 3 \N Contract3 \N {"mrc": "300", "nrc": "0", "name": "Contract3", "tags": [], "status": "Active", "tenant": null, "circuit": [], "created": "2023-01-24T15:21:47.287Z", "comments": "", "currency": "usd", "start_date": null, "initial_term": 12, "last_updated": "2023-01-24T15:21:47.288Z", "renewal_term": 12, "custom_fields": {}, "external_partie": 1, "internal_partie": "Nagravision Sarl", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": {"Account": ""}} 116 \N 1
+12 2023-01-24 15:21:58.970399+00 admin fb6e3850-5a0b-434c-b886-ca627af1191d update 3 \N Contract3 {"mrc": "300.00", "nrc": "0.00", "name": "Contract3", "tags": [], "status": "Active", "tenant": null, "circuit": [], "created": "2023-01-24T15:21:47.287Z", "comments": "", "currency": "usd", "start_date": null, "initial_term": 12, "last_updated": "2023-01-24T15:21:47.288Z", "renewal_term": 12, "custom_fields": {}, "external_partie": 1, "internal_partie": "Nagravision Sarl", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": {"Account": ""}} {"mrc": "300.00", "nrc": "0.00", "name": "Contract3", "tags": [], "status": "Active", "tenant": null, "circuit": [1], "created": "2023-01-24T15:21:47.287Z", "comments": "", "currency": "usd", "start_date": null, "initial_term": 12, "last_updated": "2023-01-24T15:21:58.958Z", "renewal_term": 12, "custom_fields": {}, "external_partie": 1, "internal_partie": "Nagravision Sarl", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": {"Account": ""}} 116 \N 1
+13 2023-01-24 18:27:48.593411+00 admin 3b780686-5fd3-499f-876f-ce1960ab1dff create 3 \N invoice4 \N {"date": "2023-01-24", "tags": [], "amount": "1250.00", "number": "invoice4", "created": "2023-01-24T18:27:48.568Z", "comments": "", "currency": "usd", "contracts": [1], "period_end": "2023-04-02", "last_updated": "2023-01-24T18:27:48.568Z", "period_start": "2023-03-02", "custom_fields": {}, "accounting_dimensions": {"account": "account1"}} 118 \N 1
+14 2023-01-24 18:28:15.107952+00 admin c0eec81b-af76-4b2d-9000-ed69b1870599 update 3 \N invoice4 {"date": "2023-01-24", "tags": [], "amount": "1250.00", "number": "invoice4", "created": "2023-01-24T18:27:48.568Z", "comments": "", "currency": "usd", "contracts": [1], "period_end": "2023-04-02", "last_updated": "2023-01-24T18:27:48.568Z", "period_start": "2023-03-02", "custom_fields": {}, "accounting_dimensions": {"account": "account1"}} {"date": "2023-01-24", "tags": [], "amount": "1250.00", "number": "invoice4", "created": "2023-01-24T18:27:48.568Z", "comments": "", "currency": "usd", "contracts": [1, 2], "period_end": "2023-04-02", "last_updated": "2023-01-24T18:28:15.089Z", "period_start": "2023-03-02", "custom_fields": {}, "accounting_dimensions": {"account": "account1"}} 118 \N 1
+15 2023-01-24 18:30:11.007986+00 admin c85028f0-e53f-4adf-bdd0-6b85cccc7f99 create 4 \N invoice5 \N {"date": "2023-01-24", "tags": [], "amount": "125", "number": "invoice5", "created": "2023-01-24T18:30:10.984Z", "comments": "some comment", "currency": "usd", "contracts": [1], "period_end": "2023-01-01", "last_updated": "2023-01-24T18:30:10.984Z", "period_start": "2022-12-01", "custom_fields": {}, "accounting_dimensions": {"Account": ""}} 118 \N 1
+16 2023-01-24 18:57:20.69388+00 admin 438a2ce9-ae18-402a-bd52-558e0d3a68b0 update 1 \N Contract1 {"mrc": "1250.00", "nrc": "0.00", "name": "Contract1", "tags": [], "status": "Active", "tenant": null, "circuit": [1], "created": "2023-01-22T21:07:09.414Z", "comments": "", "currency": "usd", "start_date": null, "initial_term": 12, "last_updated": "2023-01-22T21:07:09.414Z", "renewal_term": 12, "custom_fields": {}, "external_partie": 1, "internal_partie": "Nagravision Sarl", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": {"account": "account1"}} {"mrc": "1250.00", "nrc": "0.00", "name": "Contract1", "tags": [], "status": "Cancled", "tenant": null, "circuit": [1], "created": "2023-01-22T21:07:09.414Z", "comments": "", "currency": "usd", "start_date": null, "initial_term": 12, "last_updated": "2023-01-24T18:57:20.676Z", "renewal_term": 12, "custom_fields": {}, "external_partie": 1, "internal_partie": "Nagravision Sarl", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": {"account": "account1"}} 116 \N 1
+17 2023-01-24 19:00:37.143672+00 admin 29bdaa00-a535-4957-b70c-daee767c0ec4 create 1 \N Test field \N {"name": "test_field", "type": "text", "label": "Test field", "weight": 100, "choices": [], "created": "2023-01-24T19:00:37.123Z", "default": null, "required": false, "group_name": "", "description": "", "object_type": null, "filter_logic": "loose", "last_updated": "2023-01-24T19:00:37.123Z", "content_types": [116], "search_weight": 1000, "ui_visibility": "read-write", "validation_regex": "", "validation_maximum": null, "validation_minimum": null} 103 \N 1
+64 2023-05-25 20:02:31.416562+00 admin 8244f894-27ad-45b4-92d9-281549a1d2b2 delete 22 \N ContractAssignement object (22) {"tags": [], "created": "2023-05-25T19:41:58.089Z", "contract": 1, "object_id": 1, "content_type": 1, "last_updated": "2023-05-25T19:41:58.089Z", "custom_fields": {}} \N 119 \N 1
+70 2023-05-25 21:08:07.56703+00 admin 744e3eeb-26d9-42ee-9f30-20376838e49f delete 29 \N ContractAssignement object (29) {"tags": [], "created": "2023-05-25T20:18:54.663Z", "contract": 3, "object_id": 1, "content_type": 1, "last_updated": "2023-05-25T20:18:54.663Z", "custom_fields": {}} \N 119 \N 1
+74 2023-06-01 20:26:18.804239+00 admin d5ce1e0f-7aff-44c2-9ec4-8e1184e43df9 create 1 \N TestRole \N {"name": "TestRole", "slug": "testrole", "tags": [], "color": "9e9e9e", "created": "2023-06-01T20:26:18.791Z", "vm_role": false, "description": "", "last_updated": "2023-06-01T20:26:18.791Z", "custom_fields": {}} 11 \N 1
+18 2023-01-24 19:01:01.664822+00 admin 9ef8b4de-14a6-478b-a08e-bcbadf18f3fe update 1 \N Contract1 {"mrc": "1250.00", "nrc": "0.00", "name": "Contract1", "tags": [], "status": "Cancled", "tenant": null, "circuit": [1], "created": "2023-01-22T21:07:09.414Z", "comments": "", "currency": "usd", "start_date": null, "initial_term": 12, "last_updated": "2023-01-24T18:57:20.676Z", "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": 1, "internal_partie": "Nagravision Sarl", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": {"account": "account1"}} {"mrc": "1250.00", "nrc": "0.00", "name": "Contract1", "tags": [], "status": "Cancled", "tenant": null, "circuit": [1], "created": "2023-01-22T21:07:09.414Z", "comments": "", "currency": "usd", "start_date": null, "initial_term": 12, "last_updated": "2023-01-24T19:01:01.654Z", "renewal_term": 12, "custom_fields": {"test_field": "test"}, "external_partie": 1, "internal_partie": "Nagravision Sarl", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": {"account": "account1"}} 116 \N 1
+19 2023-01-30 21:10:56.926246+00 admin 2027ac1f-81e8-41f2-91a8-8739e6255c8e update 1 \N Contract1 {"mrc": "1250.00", "nrc": "0.00", "name": "Contract1", "tags": [], "status": "Cancled", "tenant": null, "circuit": [1], "created": "2023-01-22T21:07:09.414Z", "comments": "", "currency": "usd", "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-01-24T19:01:01.654Z", "renewal_term": 12, "custom_fields": {"test_field": "test"}, "external_partie": 1, "internal_partie": "Nagravision Sarl", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": {"account": "account1"}} {"mrc": "1250.00", "nrc": "0.00", "name": "Contract1", "tags": [], "status": "Cancled", "tenant": null, "circuit": [1], "created": "2023-01-22T21:07:09.414Z", "comments": "", "currency": "usd", "documents": "https://docs.djangoproject.com/en/4.1/ref/models/fields/#urlfield", "start_date": null, "initial_term": 12, "last_updated": "2023-01-30T21:10:56.910Z", "renewal_term": 12, "custom_fields": {"test_field": "test"}, "external_partie": 1, "internal_partie": "Nagravision Sarl", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": {"account": "account1"}} 116 \N 1
+20 2023-01-30 21:36:38.410955+00 admin 1bafe9ce-64e9-4537-9e68-3e5c6ea88d94 update 1 \N Contract1 {"mrc": "1250.00", "nrc": "0.00", "name": "Contract1", "tags": [], "status": "Cancled", "tenant": null, "circuit": [1], "created": "2023-01-22T21:07:09.414Z", "comments": "", "currency": "usd", "end_date": null, "documents": "https://docs.djangoproject.com/en/4.1/ref/models/fields/#urlfield", "start_date": null, "initial_term": 12, "last_updated": "2023-01-30T21:10:56.910Z", "renewal_term": 12, "custom_fields": {"test_field": "test"}, "external_partie": 1, "internal_partie": "Nagravision Sarl", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": {"account": "account1"}} {"mrc": "1250.00", "nrc": "0.00", "name": "Contract1", "tags": [], "status": "Cancled", "tenant": null, "circuit": [1], "created": "2023-01-22T21:07:09.414Z", "comments": "", "currency": "usd", "end_date": "2023-01-30", "documents": "https://docs.djangoproject.com/en/4.1/ref/models/fields/#urlfield", "start_date": null, "initial_term": 12, "last_updated": "2023-01-30T21:36:38.399Z", "renewal_term": 12, "custom_fields": {"test_field": "test"}, "external_partie": 1, "internal_partie": "Nagravision Sarl", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": {"account": "account1"}} 116 \N 1
+21 2023-02-01 18:24:36.30636+00 admin 068bd35d-b715-4fce-b052-154f64324d3b create 4 \N Contract5 \N {"mrc": "750", "nrc": "0", "name": "Contract5", "tags": [], "status": "Active", "tenant": null, "circuit": [], "created": "2023-02-01T18:24:36.275Z", "comments": "", "currency": "usd", "end_date": null, "documents": "", "start_date": "2023-02-01", "initial_term": 12, "last_updated": "2023-02-01T18:24:36.275Z", "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": 1, "internal_partie": "Nagravision Sarl", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": {"account": ""}} 116 \N 1
+22 2023-02-01 18:33:36.88122+00 admin 95e6a5f1-191f-433e-91e4-261a455859f4 update 2 \N Contract2 {"mrc": "250.00", "nrc": "0.00", "name": "Contract2", "tags": [], "status": "Active", "tenant": null, "circuit": [1], "created": "2023-01-24T14:48:30.718Z", "comments": "", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-01-24T15:03:53.988Z", "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": 1, "internal_partie": "Nagravision Sarl", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": {"Accoount": ""}} {"mrc": "250.00", "nrc": "0.00", "name": "Contract2", "tags": [], "status": "Active", "tenant": null, "circuit": [1], "created": "2023-01-24T14:48:30.718Z", "comments": "", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-02-01T18:33:36.864Z", "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": 1, "internal_partie": "Nagravision Sarl", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": {"Accoount": ""}} 116 \N 1
+23 2023-02-10 20:29:59.955839+00 admin cdaa5491-6582-42c8-b7ea-67d784c1caa5 update 1 \N Contract1 {"mrc": "1250.00", "nrc": "0.00", "name": "Contract1", "tags": [], "status": "Cancled", "tenant": null, "circuit": [1], "created": "2023-01-22T21:07:09.414Z", "comments": "", "currency": "usd", "end_date": "2023-01-30", "documents": "https://docs.djangoproject.com/en/4.1/ref/models/fields/#urlfield", "start_date": null, "initial_term": 12, "last_updated": "2023-01-30T21:36:38.399Z", "renewal_term": 12, "custom_fields": {"test_field": "test"}, "external_partie": 1, "internal_partie": "Nagravision Sarl", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": {"account": "account1"}} {"mrc": "1250.00", "nrc": "0.00", "name": "Contract1", "tags": [], "status": "Cancled", "tenant": null, "circuit": [1], "created": "2023-01-22T21:07:09.414Z", "comments": "", "currency": "usd", "end_date": "2023-01-30", "documents": "https://docs.djangoproject.com/en/4.1/ref/models/fields/#urlfield", "start_date": null, "initial_term": 12, "last_updated": "2023-02-10T20:29:59.943Z", "renewal_term": 12, "custom_fields": {"test_field": "test"}, "external_partie": 1, "internal_partie": "nagra-india", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": {"account": "account1"}} 116 \N 1
+24 2023-02-10 20:32:11.987691+00 admin b8bc80a3-3f39-4bba-9710-312ce1e056a2 update 1 \N Contract1 {"mrc": "1250.00", "nrc": "0.00", "name": "Contract1", "tags": [], "status": "Cancled", "tenant": null, "circuit": [1], "created": "2023-01-22T21:07:09.414Z", "comments": "", "currency": "usd", "end_date": "2023-01-30", "documents": "https://docs.djangoproject.com/en/4.1/ref/models/fields/#urlfield", "start_date": null, "initial_term": 12, "last_updated": "2023-02-10T20:29:59.943Z", "renewal_term": 12, "custom_fields": {"test_field": "test"}, "external_partie": 1, "internal_partie": "nagra-india", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": {"account": "account1"}} {"mrc": "1250.00", "nrc": "0.00", "name": "Contract1", "tags": [], "status": "Cancled", "tenant": null, "circuit": [1], "created": "2023-01-22T21:07:09.414Z", "comments": "", "currency": "usd", "end_date": "2023-01-30", "documents": "https://docs.djangoproject.com/en/4.1/ref/models/fields/#urlfield", "start_date": null, "initial_term": 12, "last_updated": "2023-02-10T20:32:11.976Z", "renewal_term": 12, "custom_fields": {"test_field": "test"}, "external_partie": 1, "internal_partie": "Nagra India", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": {"account": "account1"}} 116 \N 1
+25 2023-02-10 21:29:58.02479+00 admin fe7c8b06-cb59-417c-9df0-fb78dc761f90 update 1 \N Contract1 {"mrc": "1250.00", "nrc": "0.00", "name": "Contract1", "tags": [], "status": "Cancled", "tenant": null, "circuit": [1], "created": "2023-01-22T21:07:09.414Z", "comments": "", "currency": "usd", "end_date": "2023-01-30", "documents": "https://docs.djangoproject.com/en/4.1/ref/models/fields/#urlfield", "start_date": null, "initial_term": 12, "last_updated": "2023-02-10T20:32:11.976Z", "renewal_term": 12, "custom_fields": {"test_field": "test"}, "external_partie": 1, "internal_partie": "Nagra India", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": {"account": "account1"}} {"mrc": "1250.00", "nrc": "0.00", "name": "Contract1", "tags": [], "status": "Cancled", "tenant": null, "circuit": [1], "created": "2023-01-22T21:07:09.414Z", "comments": "", "currency": "usd", "end_date": "2023-01-30", "documents": "https://docs.djangoproject.com/en/4.1/ref/models/fields/#urlfield", "start_date": null, "initial_term": 12, "last_updated": "2023-02-10T21:29:58.012Z", "renewal_term": 12, "custom_fields": {"test_field": "test"}, "external_partie": 1, "internal_partie": "Nagra USA", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": {"account": "account1"}} 116 \N 1
+26 2023-02-19 14:52:27.507908+00 admin 33768bb2-f1f4-42e4-9a3b-1da576773667 create 2 \N ServiceProvide2 \N {"name": "ServiceProvide2", "slug": "serviceprovide2", "tags": [], "created": "2023-02-19T14:52:27.452Z", "comments": "", "portal_url": "", "last_updated": "2023-02-19T14:52:27.452Z", "custom_fields": {}} 117 \N 1
+27 2023-02-19 14:52:43.408721+00 admin 180a452c-391b-4fd3-a092-ee1cf122c441 update 2 \N Contract2 {"mrc": "250.00", "nrc": "0.00", "name": "Contract2", "tags": [], "status": "Active", "tenant": null, "circuit": [1], "created": "2023-01-24T14:48:30.718Z", "comments": "", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-02-01T18:33:36.864Z", "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": 1, "internal_partie": "Nagravision Sarl", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": {"Accoount": ""}} {"mrc": "250.00", "nrc": "0.00", "name": "Contract2", "tags": [], "status": "Active", "tenant": null, "circuit": [1], "created": "2023-01-24T14:48:30.718Z", "comments": "", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-02-19T14:52:43.388Z", "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": 2, "internal_partie": "Nagravision SARL", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": {"Accoount": ""}} 116 \N 1
+28 2023-02-19 14:54:50.141315+00 admin feef5f6d-83d8-43ee-9ae9-24cacbb50b50 create 2 \N Circuit2 \N {"cid": "Circuit2", "tags": [], "type": 1, "status": "active", "tenant": null, "created": "2023-02-19T14:54:50.125Z", "comments": "", "provider": 1, "commit_rate": null, "description": "", "install_date": null, "last_updated": "2023-02-19T14:54:50.125Z", "custom_fields": {}, "termination_a": null, "termination_z": null, "termination_date": null} 1 \N 1
+29 2023-02-19 14:57:00.397216+00 admin c337c95e-b76f-403f-823e-926c937700a5 update 4 \N Contract5 {"mrc": "750.00", "nrc": "0.00", "name": "Contract5", "tags": [], "status": "Active", "tenant": null, "circuit": [], "created": "2023-02-01T18:24:36.275Z", "comments": "", "currency": "usd", "end_date": null, "documents": "", "start_date": "2023-02-01", "initial_term": 12, "last_updated": "2023-02-01T18:24:36.275Z", "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": 1, "internal_partie": "Nagravision Sarl", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": {"account": ""}} {"mrc": "750.00", "nrc": "0.00", "name": "Contract5", "tags": [], "status": "Active", "tenant": null, "circuit": [2], "created": "2023-02-01T18:24:36.275Z", "comments": "", "currency": "usd", "end_date": null, "documents": "", "start_date": "2023-02-01", "initial_term": 12, "last_updated": "2023-02-19T14:57:00.369Z", "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": 1, "internal_partie": "Nagravision SARL", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": {"account": ""}} 116 \N 1
+30 2023-03-12 14:52:35.765154+00 admin eb82866f-c7a6-4fe7-859e-7621a8271927 create 5 \N invoice10 \N {"date": "2023-03-12", "tags": [], "amount": "1250.00", "number": "invoice10", "created": "2023-03-12T14:52:35.728Z", "comments": "", "currency": "usd", "contracts": [1, 2], "documents": "", "period_end": "2023-05-03", "last_updated": "2023-03-12T14:52:35.728Z", "period_start": "2023-04-03", "custom_fields": {}, "accounting_dimensions": {"account": "account1"}} 118 \N 1
+65 2023-05-25 20:16:48.302261+00 admin f145283b-ff3b-4ca1-856d-a7cf4f314688 create 26 \N ContractAssignement object (26) \N {"tags": [], "created": "2023-05-25T20:16:48.292Z", "contract": 1, "object_id": 1, "content_type": 1, "last_updated": "2023-05-25T20:16:48.292Z", "custom_fields": {}} 119 \N 1
+66 2023-05-25 20:17:17.957729+00 admin 76c33207-f2fe-46d0-97ce-af2c4cbe5106 delete 26 \N ContractAssignement object (26) {"tags": [], "created": "2023-05-25T20:16:48.292Z", "contract": 1, "object_id": 1, "content_type": 1, "last_updated": "2023-05-25T20:16:48.292Z", "custom_fields": {}} \N 119 \N 1
+31 2023-03-12 16:55:23.601756+00 admin 22a6ce48-2e32-43fa-a293-5afa2405d6a6 update 2 \N Contract2 {"mrc": "250.00", "nrc": "0.00", "name": "Contract2", "tags": [], "status": "Active", "tenant": null, "circuit": [1], "created": "2023-01-24T14:48:30.718Z", "comments": "", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-02-19T14:52:43.388Z", "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": 2, "internal_partie": "Nagravision SARL", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": {"Accoount": ""}} {"mrc": "250.00", "nrc": "0.00", "name": "Contract2", "tags": [], "status": "Active", "tenant": null, "circuit": [1], "created": "2023-01-24T14:48:30.718Z", "comments": "", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-03-12T16:55:23.571Z", "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": 2, "internal_partie": "Nagravision SARL", "invoice_frequency": 2, "external_reference": null, "accounting_dimensions": {"Accoount": ""}} 116 \N 1
+32 2023-03-12 16:56:28.630807+00 admin 2abaf1b6-515f-4c13-a682-cef1810c5fc8 create 6 \N 11 \N {"date": "2023-03-12", "tags": [], "amount": "500.00", "number": "11", "created": "2023-03-12T16:56:28.601Z", "comments": "", "currency": "usd", "contracts": [1, 2], "documents": "", "period_end": "2023-07-04", "last_updated": "2023-03-12T16:56:28.601Z", "period_start": "2023-05-04", "custom_fields": {}, "accounting_dimensions": {"Accoount": ""}} 118 \N 1
+33 2023-03-12 16:56:48.465164+00 admin 8953657b-b38f-414f-b772-8aa3f9e5a88b update 6 \N invoice11 {"date": "2023-03-12", "tags": [], "amount": "500.00", "number": "11", "created": "2023-03-12T16:56:28.601Z", "comments": "", "currency": "usd", "contracts": [1, 2], "documents": "", "period_end": "2023-07-04", "last_updated": "2023-03-12T16:56:28.601Z", "period_start": "2023-05-04", "custom_fields": {}, "accounting_dimensions": {"Accoount": ""}} {"date": "2023-03-12", "tags": [], "amount": "500.00", "number": "invoice11", "created": "2023-03-12T16:56:28.601Z", "comments": "", "currency": "usd", "contracts": [1, 2], "documents": "", "period_end": "2023-07-04", "last_updated": "2023-03-12T16:56:48.440Z", "period_start": "2023-05-04", "custom_fields": {}, "accounting_dimensions": {"Accoount": ""}} 118 \N 1
+34 2023-03-12 17:03:13.416594+00 admin 4e456b43-b766-402b-9a9e-e36b42ebb833 create 7 \N invoice12 \N {"date": "2023-03-12", "tags": [], "amount": "500.00", "number": "invoice12", "created": "2023-03-12T17:03:13.380Z", "comments": "", "currency": "usd", "contracts": [1, 2], "documents": "", "period_end": "2023-09-04", "last_updated": "2023-03-12T17:03:13.380Z", "period_start": "2023-07-05", "custom_fields": {}, "accounting_dimensions": {"Accoount": ""}} 118 \N 1
+53 2023-05-23 18:09:43.993345+00 admin 49c5bae3-32d2-4b24-8a2a-dc603976f7a8 create 19 \N ContractAssignement object (19) \N {"tags": [], "created": "2023-05-23T18:09:43.969Z", "contract": 1, "object_id": 1, "content_type": 1, "last_updated": "2023-05-23T18:09:43.969Z", "custom_fields": {}} 119 \N 1
+54 2023-05-23 19:02:09.34207+00 admin cdbc7d11-bef9-4476-a432-087116be8c47 create 20 \N ContractAssignement object (20) \N {"tags": [], "created": "2023-05-23T19:02:09.331Z", "contract": 2, "object_id": 1, "content_type": 1, "last_updated": "2023-05-23T19:02:09.331Z", "custom_fields": {}} 119 \N 1
+55 2023-05-23 19:04:58.944049+00 admin 63f888c3-c8a8-4267-ae32-e9d08e7f9e74 delete 20 \N ContractAssignement object (20) {"tags": [], "created": "2023-05-23T19:02:09.331Z", "contract": 2, "object_id": 1, "content_type": 1, "last_updated": "2023-05-23T19:02:09.331Z", "custom_fields": {}} \N 119 \N 1
+56 2023-05-23 19:05:10.448862+00 admin 651b0a52-c710-49f5-8eb1-f0f9c5a548d0 create 21 \N ContractAssignement object (21) \N {"tags": [], "created": "2023-05-23T19:05:10.439Z", "contract": 3, "object_id": 1, "content_type": 1, "last_updated": "2023-05-23T19:05:10.439Z", "custom_fields": {}} 119 \N 1
+57 2023-05-23 20:56:33.770051+00 admin fbc7c62c-c7cb-4b02-8339-797f0cdb3a0b create 1 \N test \N {"link": "", "name": "test", "tags": [], "email": "", "group": null, "phone": "", "title": "", "address": "", "created": "2023-05-23T20:56:33.747Z", "comments": "", "description": "", "last_updated": "2023-05-23T20:56:33.747Z", "custom_fields": {}} 51 \N 1
+75 2023-06-01 20:27:48.776283+00 admin 67810d3e-0af9-442d-a9f0-22c63d095299 create 1 \N TestManufacturer \N {"name": "TestManufacturer", "slug": "testmanufacturer", "tags": [], "created": "2023-06-01T20:27:48.764Z", "description": "", "last_updated": "2023-06-01T20:27:48.764Z", "custom_fields": {}} 17 \N 1
+76 2023-06-01 20:29:41.138324+00 admin 8cb84d41-892b-4f48-a73f-f40f18344f2d create 1 \N TestDeviceType \N {"slug": "testdevicetype", "tags": [], "model": "TestDeviceType", "weight": null, "airflow": "", "created": "2023-06-01T20:29:41.125Z", "comments": "", "u_height": "1.0", "rear_image": "", "description": "", "front_image": "", "part_number": "", "weight_unit": "", "last_updated": "2023-06-01T20:29:41.125Z", "manufacturer": 1, "custom_fields": {}, "is_full_depth": true, "subdevice_role": ""} 12 \N 1
+77 2023-06-01 20:30:32.73385+00 admin cc910f9a-7caf-4aab-aee2-0db007b04290 create 1 \N TestDevice \N {"face": "", "name": "TestDevice", "rack": null, "site": 1, "tags": [], "serial": "", "status": "active", "tenant": null, "airflow": "", "cluster": null, "created": "2023-06-01T20:30:32.722Z", "comments": "", "location": null, "platform": null, "position": null, "asset_tag": null, "description": "", "device_role": 1, "device_type": 1, "primary_ip4": null, "primary_ip6": null, "vc_position": null, "vc_priority": null, "last_updated": "2023-06-01T20:30:32.722Z", "custom_fields": {}, "virtual_chassis": null, "local_context_data": null} 9 \N 1
+78 2023-06-01 20:30:45.78232+00 admin 7d97d801-1129-494c-8fc0-96e686c753f0 create 33 \N ContractAssignement object (33) \N {"tags": [], "created": "2023-06-01T20:30:45.772Z", "contract": 3, "object_id": 1, "content_type": 9, "last_updated": "2023-06-01T20:30:45.772Z", "custom_fields": {}} 119 \N 1
+79 2023-06-01 20:31:15.001521+00 admin c0990d7c-355d-4d24-9e43-67929ccd5f82 delete 33 \N ContractAssignement object (33) {"tags": [], "created": "2023-06-01T20:30:45.772Z", "contract": 3, "object_id": 1, "content_type": 9, "last_updated": "2023-06-01T20:30:45.772Z", "custom_fields": {}} \N 119 \N 1
+80 2023-06-01 20:31:38.553336+00 admin 16f9e5b0-a0fa-4be0-a2f4-e3bde4ae8eb8 delete 32 \N ContractAssignement object (32) {"tags": [], "created": "2023-05-25T21:11:56.444Z", "contract": 3, "object_id": 1, "content_type": 1, "last_updated": "2023-05-25T21:11:56.444Z", "custom_fields": {}} \N 119 \N 1
+81 2023-06-01 20:39:21.319444+00 admin cf04e666-e737-4625-a980-b3f0240e49e1 create 34 \N ContractAssignement object (34) \N {"tags": [], "created": "2023-06-01T20:39:21.305Z", "contract": 3, "object_id": 1, "content_type": 9, "last_updated": "2023-06-01T20:39:21.305Z", "custom_fields": {}} 119 \N 1
+82 2023-06-01 21:32:44.860627+00 admin 51bb2dfa-1cdb-4125-9b13-20d9b006ad69 create 35 \N ContractAssignement object (35) \N {"tags": [], "created": "2023-06-01T21:32:44.849Z", "contract": 2, "object_id": 1, "content_type": 9, "last_updated": "2023-06-01T21:32:44.849Z", "custom_fields": {}} 119 \N 1
+83 2023-06-01 21:32:57.04895+00 admin 2545fc3a-af6a-4586-9542-f6aa718f495b delete 35 \N ContractAssignement object (35) {"tags": [], "created": "2023-06-01T21:32:44.849Z", "contract": 2, "object_id": 1, "content_type": 9, "last_updated": "2023-06-01T21:32:44.849Z", "custom_fields": {}} \N 119 \N 1
+84 2023-06-04 08:22:43.169969+00 admin b0386c96-dc95-4c41-aabe-7a1d967728da delete 27 \N ContractAssignement object (27) {"tags": [], "created": "2023-05-25T20:18:54.644Z", "contract": 1, "object_id": 1, "content_type": 1, "last_updated": "2023-05-25T20:18:54.644Z", "custom_fields": {}} \N 119 \N 1
+85 2023-06-04 08:22:54.272759+00 admin 7a71ca02-c889-4e87-be5e-eead30568a78 create 36 \N ContractAssignement object (36) \N {"tags": [], "created": "2023-06-04T08:22:54.262Z", "contract": 3, "object_id": 1, "content_type": 1, "last_updated": "2023-06-04T08:22:54.262Z", "custom_fields": {}} 119 \N 1
+86 2023-06-04 08:23:34.607934+00 admin 8c985237-1579-45b8-8418-71531ab26cc6 delete 28 \N ContractAssignement object (28) {"tags": [], "created": "2023-05-25T20:18:54.655Z", "contract": 2, "object_id": 1, "content_type": 1, "last_updated": "2023-05-25T20:18:54.655Z", "custom_fields": {}} \N 119 \N 1
+87 2023-06-04 09:04:46.301526+00 admin 12d6b411-341a-4e3c-854b-ddcad7d26841 update 1 \N Contract1 {"mrc": "1250.00", "nrc": "0.00", "name": "Contract1", "tags": [], "status": "Cancled", "tenant": null, "circuit": [1], "created": "2023-01-22T21:07:09.414Z", "comments": "", "currency": "usd", "end_date": "2023-01-30", "documents": "https://docs.djangoproject.com/en/4.1/ref/models/fields/#urlfield", "start_date": null, "initial_term": 12, "last_updated": "2023-02-10T21:29:58.012Z", "renewal_term": 12, "custom_fields": {"test_field": "test"}, "external_partie": 1, "internal_partie": "Nagra USA", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": {"account": "account1"}} {"mrc": "1250.00", "nrc": "0.00", "name": "Contract1", "tags": [], "status": "Cancled", "tenant": null, "circuit": [1], "created": "2023-01-22T21:07:09.414Z", "comments": "", "currency": "usd", "end_date": "2023-01-30", "documents": "https://docs.djangoproject.com/en/4.1/ref/models/fields/#urlfield", "start_date": null, "initial_term": 12, "last_updated": "2023-06-04T09:04:46.277Z", "renewal_term": 12, "custom_fields": {"test_field": "test"}, "external_partie": 1, "internal_partie": "Nagra USA", "invoice_frequency": 1, "external_reference": "reference1", "accounting_dimensions": {"account": "account1"}} 116 \N 1
+88 2023-06-04 09:11:11.586964+00 admin a27ff902-cb0f-4a00-9652-4183bb76e8d6 update 2 \N Contract2 {"mrc": "250.00", "nrc": "0.00", "name": "Contract2", "tags": [], "status": "Active", "tenant": null, "circuit": [1], "created": "2023-01-24T14:48:30.718Z", "comments": "", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-03-12T16:55:23.571Z", "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": 2, "internal_partie": "Nagravision SARL", "invoice_frequency": 2, "external_reference": null, "accounting_dimensions": {"Accoount": ""}} {"mrc": "250.00", "nrc": "0.00", "name": "Contract2", "tags": [], "status": "Active", "tenant": null, "circuit": [1], "created": "2023-01-24T14:48:30.718Z", "comments": "Additional reference : testreference2", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-06-04T09:11:11.547Z", "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": 2, "internal_partie": "Nagravision SARL", "invoice_frequency": 2, "external_reference": null, "accounting_dimensions": {"Accoount": ""}} 116 \N 1
+89 2023-06-07 19:16:47.722382+00 add_contract 7dc49aa0-dcb1-4ca3-83cd-fc339c7fbfc1 create 37 \N ContractAssignement object (37) \N {"tags": [], "created": "2023-06-07T19:16:47.707Z", "contract": 3, "object_id": 1, "content_type": 1, "last_updated": "2023-06-07T19:16:47.707Z", "custom_fields": {}} 119 \N 4
+90 2023-06-13 19:50:41.419637+00 admin c37da5e5-8775-44f3-8cce-845cd1b36c2a create 38 \N ContractAssignement object (38) \N {"tags": [], "created": "2023-06-13T19:50:41.403Z", "contract": 2, "object_id": 1, "content_type": 9, "last_updated": "2023-06-13T19:50:41.403Z", "custom_fields": {}} 119 \N 1
+91 2023-06-13 19:53:17.003242+00 admin 4c2733f3-012e-4cfb-83ab-473dafa66855 delete 34 \N ContractAssignement object (34) {"tags": [], "created": "2023-06-01T20:39:21.305Z", "contract": 3, "object_id": 1, "content_type": 9, "last_updated": "2023-06-01T20:39:21.305Z", "custom_fields": {}} \N 119 \N 1
+92 2023-06-18 13:22:04.617872+00 admin be5856c3-f35b-4812-a0fc-98f796701494 create 39 \N ContractAssignement object (39) \N {"tags": [], "created": "2023-06-18T13:22:04.592Z", "contract": 3, "object_id": 1, "content_type": 9, "last_updated": "2023-06-18T13:22:04.592Z", "custom_fields": {}} 119 \N 1
+93 2023-06-18 13:22:27.628129+00 admin 3faa6ca0-e8e1-4da5-93c6-48739f4e4194 delete 39 \N ContractAssignement object (39) {"tags": [], "created": "2023-06-18T13:22:04.592Z", "contract": 3, "object_id": 1, "content_type": 9, "last_updated": "2023-06-18T13:22:04.592Z", "custom_fields": {}} \N 119 \N 1
+94 2023-06-18 15:14:23.567036+00 admin f5e91d1d-7882-44c2-9811-2b5dc0fd9bdc update 1 \N Contract1 {"mrc": "1250.00", "nrc": "0.00", "name": "Contract1", "tags": [], "parent": null, "status": "Cancled", "tenant": null, "circuit": [1], "created": "2023-01-22T21:07:09.414Z", "comments": "", "currency": "usd", "end_date": "2023-01-30", "documents": "https://docs.djangoproject.com/en/4.1/ref/models/fields/#urlfield", "start_date": null, "initial_term": 12, "last_updated": "2023-06-04T09:04:46.277Z", "renewal_term": 12, "custom_fields": {"test_field": "test"}, "external_partie": 1, "internal_partie": "Nagra USA", "invoice_frequency": 1, "external_reference": "reference1", "accounting_dimensions": {"account": "account1"}} {"mrc": "1250.00", "nrc": "0.00", "name": "Contract1", "tags": [], "parent": 2, "status": "Cancled", "tenant": null, "circuit": [1], "created": "2023-01-22T21:07:09.414Z", "comments": "", "currency": "usd", "end_date": "2023-01-30", "documents": "https://docs.djangoproject.com/en/4.1/ref/models/fields/#urlfield", "start_date": null, "initial_term": 12, "last_updated": "2023-06-18T15:14:23.541Z", "renewal_term": 12, "custom_fields": {"test_field": "test"}, "external_partie": 1, "internal_partie": "Nagra USA", "invoice_frequency": 1, "external_reference": "reference1", "accounting_dimensions": {"account": "account1"}} 116 \N 1
+95 2023-06-18 15:38:06.849582+00 admin 5756bd22-452b-4576-b089-d5f91aa00639 create 1 \N Tenant1 \N {"name": "Tenant1", "slug": "tenant1", "tags": [], "group": null, "created": "2023-06-18T15:38:06.823Z", "comments": "", "description": "", "last_updated": "2023-06-18T15:38:06.823Z", "custom_fields": {}} 54 \N 1
+97 2023-06-18 15:49:27.64359+00 admin a862f2ca-e86c-48a9-b4c0-409282ad2b95 create 6 \N Contract6 \N {"mrc": "100", "nrc": "0", "name": "Contract6", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [], "created": "2023-06-18T15:49:27.596Z", "comments": "", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-06-18T15:49:27.596Z", "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": 1, "internal_partie": "Nagravision SARL", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": null} 116 \N 1
+98 2023-06-18 15:51:01.954949+00 admin 44e3fb62-f7f8-4371-80f0-6ea01fe21d69 delete 6 \N Contract6 {"mrc": "100.00", "nrc": "0.00", "name": "Contract6", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [], "created": "2023-06-18T15:49:27.596Z", "comments": "", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-06-18T15:49:27.596Z", "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": 1, "internal_partie": "Nagravision SARL", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": null} \N 116 \N 1
+100 2023-06-18 15:58:58.939398+00 admin 1eb8a4c4-bdf3-4eb8-b5e3-d441773d84d3 create 8 \N Contract10 \N {"mrc": "100", "nrc": "1000", "name": "Contract10", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [], "created": "2023-06-18T15:58:58.874Z", "comments": "", "currency": "usd", "end_date": "2024-05-30", "documents": "", "start_date": "2023-06-01", "initial_term": 12, "last_updated": "2023-06-18T15:58:58.874Z", "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": 1, "internal_partie": "Nagra USA", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": null} 116 \N 1
+137 2023-11-12 16:10:39.708297+00 admin 47a785a4-8538-462d-b1d0-03ce5915d63c create 12 \N Contract10 \N {"mrc": "100", "nrc": "0", "name": "Contract10", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [], "created": "2023-11-12T16:10:39.654Z", "comments": "", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-11-12T16:10:39.654Z", "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": null, "internal_partie": "Nagravision SARL", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": {}, "external_partie_object_id": 1, "external_partie_object_type": 117} 116 \N 1
+101 2023-06-18 16:03:13.725888+00 admin 1b439032-c6d7-44e8-ae9d-0964fd032dc9 update 2 \N Contract2 {"mrc": "250.00", "nrc": "0.00", "name": "Contract2", "tags": [], "parent": null, "status": "Active", "tenant": null, "circuit": [1], "created": "2023-01-24T14:48:30.718Z", "comments": "Additional reference : testreference2", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-06-04T09:11:11.547Z", "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": 2, "internal_partie": "Nagravision SARL", "invoice_frequency": 2, "external_reference": null, "accounting_dimensions": {"Accoount": ""}} {"mrc": "250.00", "nrc": "0.00", "name": "Contract2", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [1], "created": "2023-01-24T14:48:30.718Z", "comments": "Additional reference : testreference2", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-06-18T16:03:13.700Z", "renewal_term": 36, "custom_fields": {"test_field": null}, "external_partie": 2, "internal_partie": "Nagravision SARL", "invoice_frequency": 2, "external_reference": null, "accounting_dimensions": {"Accoount": ""}} 116 \N 1
+102 2023-06-21 19:50:39.672386+00 admin d8837355-4c06-4a36-b9c7-2b40b69ac463 create 1 \N TestRole \N {"name": "TestRole", "slug": "testrole", "tags": [], "created": "2023-06-21T19:50:39.644Z", "description": "", "last_updated": "2023-06-21T19:50:39.645Z", "custom_fields": {}} 53 \N 1
+103 2023-06-21 19:50:51.890016+00 admin bbba9731-6b61-47d2-8bd8-578de18d2053 create 1 \N test -> ServiceProvide2 \N {"role": 1, "contact": 1, "created": "2023-06-21T19:50:51.877Z", "priority": "", "object_id": 2, "content_type": 117, "last_updated": "2023-06-21T19:50:51.877Z"} 109 \N 1
+104 2023-06-25 08:48:53.75679+00 admin c2f08405-f369-4f24-8498-0e90b346b4be update 2 \N ServicerProvide2 {"name": "ServiceProvide2", "slug": "serviceprovide2", "tags": [], "created": "2023-02-19T14:52:27.452Z", "comments": "", "portal_url": "", "last_updated": "2023-02-19T14:52:27.452Z", "custom_fields": {}} {"name": "ServicerProvide2", "slug": "serviceprovide2", "tags": [], "created": "2023-02-19T14:52:27.452Z", "comments": "", "portal_url": "", "last_updated": "2023-06-25T08:48:53.732Z", "custom_fields": {}} 117 \N 1
+105 2023-06-25 08:49:15.34747+00 admin e6bff3c4-467f-4ac5-98a9-cd8793004204 update 2 \N ServicerProvider2 {"name": "ServicerProvide2", "slug": "serviceprovide2", "tags": [], "created": "2023-02-19T14:52:27.452Z", "comments": "", "portal_url": "", "last_updated": "2023-06-25T08:48:53.732Z", "custom_fields": {}} {"name": "ServicerProvider2", "slug": "serviceprovide2", "tags": [], "created": "2023-02-19T14:52:27.452Z", "comments": "", "portal_url": "", "last_updated": "2023-06-25T08:49:15.324Z", "custom_fields": {}} 117 \N 1
+106 2023-06-25 08:49:33.750905+00 admin 018edf9d-658b-4178-8003-d4cafcff72cb create 3 \N ServiceProvider3 \N {"name": "ServiceProvider3", "slug": "serviceprovider3", "tags": [], "created": "2023-06-25T08:49:33.731Z", "comments": "", "portal_url": "", "last_updated": "2023-06-25T08:49:33.731Z", "custom_fields": {}} 117 \N 1
+107 2023-06-25 08:49:47.013209+00 admin 4dc11ca6-3d35-4b57-b778-c8523690f938 create 2 \N test -> ServiceProvider3 \N {"role": 1, "contact": 1, "created": "2023-06-25T08:49:47.005Z", "priority": "", "object_id": 3, "content_type": 117, "last_updated": "2023-06-25T08:49:47.005Z"} 109 \N 1
+108 2023-06-25 08:55:15.847666+00 admin 330facd7-3a72-4bf7-bd36-4dfe3bc0168e create 2 \N test2 \N {"link": "", "name": "test2", "tags": [], "email": "", "group": null, "phone": "", "title": "", "address": "", "created": "2023-06-25T08:55:15.826Z", "comments": "", "description": "", "last_updated": "2023-06-25T08:55:15.826Z", "custom_fields": {}} 51 \N 1
+110 2023-09-03 08:19:35.019974+00 admin 9c4f1221-ef99-4569-8bcf-11472092ccc5 create 2 1 att1 \N {"file": "netbox-attachments/contract_1_att1_uriw3rL.pdf", "name": "att1", "size": 241766, "tags": [], "created": "2023-09-03T08:19:34.990Z", "comments": "attachement 1", "object_id": 1, "content_type": 116, "last_updated": "2023-09-03T08:19:34.990Z", "custom_fields": {}} 131 116 1
+111 2023-09-03 08:21:01.510694+00 admin 0bba1969-309b-407a-9796-c4e7a864ccd1 create 3 7 att2 \N {"file": "netbox-attachments/invoice_7_att2.pdf", "name": "att2", "size": 880935, "tags": [], "created": "2023-09-03T08:21:01.493Z", "comments": "", "object_id": 7, "content_type": 118, "last_updated": "2023-09-03T08:21:01.493Z", "custom_fields": {}} 131 118 1
+112 2023-09-03 08:46:19.308433+00 admin d0c4c9db-fb38-4386-a220-a6e716c14d3c update 4 \N Contract5 {"mrc": "750.00", "nrc": "0.00", "name": "Contract5", "tags": [], "parent": null, "status": "Active", "tenant": null, "circuit": [2], "created": "2023-02-01T18:24:36.275Z", "comments": "", "currency": "usd", "end_date": null, "documents": "", "start_date": "2023-02-01", "initial_term": 12, "last_updated": "2023-02-19T14:57:00.369Z", "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": 1, "internal_partie": "Nagravision SARL", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": {"account": ""}} {"mrc": "750.00", "nrc": "0.00", "name": "Contract5", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [2], "created": "2023-02-01T18:24:36.275Z", "comments": "", "currency": "usd", "end_date": null, "documents": "", "start_date": "2023-02-01", "initial_term": 12, "last_updated": "2023-09-03T08:46:19.262Z", "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": 1, "internal_partie": "Nagravision SARL", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": {"cc": "872", "account": ""}} 116 \N 1
+113 2023-09-03 08:46:36.629215+00 admin 1822822f-705d-4971-abe6-e82055c4ac28 update 4 \N Contract5 {"mrc": "750.00", "nrc": "0.00", "name": "Contract5", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [2], "created": "2023-02-01T18:24:36.275Z", "comments": "", "currency": "usd", "end_date": null, "documents": "", "start_date": "2023-02-01", "initial_term": 12, "last_updated": "2023-09-03T08:46:19.262Z", "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": 1, "internal_partie": "Nagravision SARL", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": {"cc": "872", "account": ""}} {"mrc": "750.00", "nrc": "0.00", "name": "Contract5", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [2], "created": "2023-02-01T18:24:36.275Z", "comments": "", "currency": "usd", "end_date": null, "documents": "", "start_date": "2023-02-01", "initial_term": 12, "last_updated": "2023-09-03T08:46:36.602Z", "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": 1, "internal_partie": "Nagravision SARL", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": {"cc": "872", "account": ""}} 116 \N 1
+114 2023-09-03 10:57:08.777782+00 admin 3ade0c6b-76dd-4746-935a-8b17695c9df7 create 1 \N cluster_type_1 \N {"name": "cluster_type_1", "slug": "cluster_type_1", "tags": [], "created": "2023-09-03T10:57:08.748Z", "description": "", "last_updated": "2023-09-03T10:57:08.748Z", "custom_fields": {}} 58 \N 1
+115 2023-09-03 10:57:22.285619+00 admin 77051688-a376-4b50-965f-2db41a61fce8 create 1 \N cluster1 \N {"name": "cluster1", "site": null, "tags": [], "type": 1, "group": null, "status": "active", "tenant": null, "created": "2023-09-03T10:57:22.267Z", "comments": "", "description": "", "last_updated": "2023-09-03T10:57:22.267Z", "custom_fields": {}} 56 \N 1
+116 2023-09-03 10:57:49.315659+00 admin 0157c5d9-2ff6-4730-b3aa-f446deab58bd create 1 \N test1 \N {"disk": null, "name": "test1", "role": null, "site": null, "tags": [], "vcpus": null, "device": null, "memory": null, "status": "active", "tenant": null, "cluster": 1, "created": "2023-09-03T10:57:49.300Z", "comments": "", "platform": null, "description": "", "primary_ip4": null, "primary_ip6": null, "last_updated": "2023-09-03T10:57:49.300Z", "custom_fields": {}, "local_context_data": null} 59 \N 1
+117 2023-09-18 22:38:18.51522+00 admin 6281b605-80bd-46b7-8284-6a1f908a8dd8 create 1 \N tenantgoupe1 \N {"name": "tenantgoupe1", "slug": "tenantgoupe1", "tags": [], "parent": null, "created": "2023-09-18T22:38:18.475Z", "description": "", "last_updated": "2023-09-18T22:38:18.475Z", "custom_fields": {}} 55 \N 1
+118 2023-09-18 22:38:38.760957+00 admin 5e2af2f8-7eb4-4174-9906-a19e48a0b01d create 2 \N tenant2 \N {"name": "tenant2", "slug": "tenant2", "tags": [], "group": null, "created": "2023-09-18T22:38:38.745Z", "comments": "", "description": "", "last_updated": "2023-09-18T22:38:38.745Z", "custom_fields": {}} 54 \N 1
+119 2023-09-18 22:39:03.033002+00 admin 944a56f0-3056-4b00-8e24-34d120e9940c update 1 \N Tenant1 {"name": "Tenant1", "slug": "tenant1", "tags": [], "group": null, "created": "2023-06-18T15:38:06.823Z", "comments": "", "description": "", "last_updated": "2023-06-18T15:38:06.823Z", "custom_fields": {}} {"name": "Tenant1", "slug": "tenant1", "tags": [], "group": 1, "created": "2023-06-18T15:38:06.823Z", "comments": "", "description": "", "last_updated": "2023-09-18T22:39:03.013Z", "custom_fields": {}} 54 \N 1
+120 2023-09-26 20:32:46.647234+00 admin 4684b0ff-1ae2-4ebb-b0cf-b4872902b779 update 1 \N Contract1 {"mrc": "1250.00", "nrc": "0.00", "name": "Contract1", "tags": [], "parent": 2, "status": "Cancled", "tenant": null, "circuit": [1], "created": "2023-01-22T21:07:09.414Z", "comments": "", "currency": "usd", "end_date": "2023-01-30", "documents": "https://docs.djangoproject.com/en/4.1/ref/models/fields/#urlfield", "start_date": null, "initial_term": 12, "last_updated": "2023-09-24T19:11:51.106Z", "renewal_term": 12, "custom_fields": {"test_field": "test"}, "external_partie": 1, "internal_partie": "Nagra USA", "invoice_frequency": 1, "external_reference": "reference1", "accounting_dimensions": {"account": "account1"}, "external_partie_object_id": 1, "external_partie_object_type": 117} {"mrc": "1250.00", "nrc": "0.00", "name": "Contract1", "tags": [], "parent": 2, "status": "Cancled", "tenant": 1, "circuit": [1], "created": "2023-01-22T21:07:09.414Z", "comments": "", "currency": "usd", "end_date": "2023-01-30", "documents": "https://docs.djangoproject.com/en/4.1/ref/models/fields/#urlfield", "start_date": null, "initial_term": 12, "last_updated": "2023-09-26T20:32:46.587Z", "renewal_term": 12, "custom_fields": {"test_field": "test"}, "external_partie": 1, "internal_partie": "Nagra USA", "invoice_frequency": 1, "external_reference": "reference1", "accounting_dimensions": "\\"{\\\\\\"account\\\\\\": \\\\\\"account1\\\\\\"}\\"", "external_partie_object_id": 1, "external_partie_object_type": 117} 116 \N 1
+121 2023-09-26 20:48:10.761294+00 admin 978cce28-5a6b-4044-b836-b244f55873b5 update 1 \N Contract1 {"mrc": "1250.00", "nrc": "0.00", "name": "Contract1", "tags": [], "parent": 2, "status": "Cancled", "tenant": 1, "circuit": [1], "created": "2023-01-22T21:07:09.414Z", "comments": "", "currency": "usd", "end_date": "2023-01-30", "documents": "https://docs.djangoproject.com/en/4.1/ref/models/fields/#urlfield", "start_date": null, "initial_term": 12, "last_updated": "2023-09-26T20:32:46.587Z", "renewal_term": 12, "custom_fields": {"test_field": "test"}, "external_partie": 1, "internal_partie": "Nagra USA", "invoice_frequency": 1, "external_reference": "reference1", "accounting_dimensions": "\\"{\\\\\\"account\\\\\\": \\\\\\"account1\\\\\\"}\\"", "external_partie_object_id": 1, "external_partie_object_type": 117} {"mrc": "1250.00", "nrc": "0.00", "name": "Contract1", "tags": [], "parent": 2, "status": "Cancled", "tenant": 1, "circuit": [1], "created": "2023-01-22T21:07:09.414Z", "comments": "", "currency": "usd", "end_date": "2023-01-30", "documents": "https://docs.djangoproject.com/en/4.1/ref/models/fields/#urlfield", "start_date": null, "initial_term": 12, "last_updated": "2023-09-26T20:48:10.712Z", "renewal_term": 12, "custom_fields": {"test_field": "test"}, "external_partie": 1, "internal_partie": "Nagra USA", "invoice_frequency": 1, "external_reference": "reference1", "accounting_dimensions": "\\"\\\\\\"{\\\\\\\\\\\\\\"account\\\\\\\\\\\\\\": \\\\\\\\\\\\\\"account1\\\\\\\\\\\\\\"}\\\\\\"\\"", "external_partie_object_id": 1, "external_partie_object_type": 4} 116 \N 1
+122 2023-11-01 18:43:12.182609+00 admin 6f3a0faf-2b62-4cfe-b77e-c31ed237cc13 update 1 \N Contract1 {"mrc": "1250.00", "nrc": "0.00", "name": "Contract1", "tags": [], "parent": 2, "status": "Cancled", "tenant": 1, "circuit": [1], "created": "2023-01-22T21:07:09.414Z", "comments": "", "currency": "usd", "end_date": "2023-01-30", "documents": "https://docs.djangoproject.com/en/4.1/ref/models/fields/#urlfield", "start_date": null, "initial_term": 12, "last_updated": "2023-09-26T20:48:10.712Z", "renewal_term": 12, "custom_fields": {"test_field": "test"}, "external_partie": 1, "internal_partie": "Nagra USA", "invoice_frequency": 1, "external_reference": "reference1", "accounting_dimensions": "\\"\\\\\\"{\\\\\\\\\\\\\\"account\\\\\\\\\\\\\\": \\\\\\\\\\\\\\"account1\\\\\\\\\\\\\\"}\\\\\\"\\"", "external_partie_object_id": 1, "external_partie_object_type": 4} {"mrc": "1250.00", "nrc": "0.00", "name": "Contract1", "tags": [], "parent": 2, "status": "Cancled", "tenant": 1, "circuit": [1], "created": "2023-01-22T21:07:09.414Z", "comments": "", "currency": "usd", "end_date": "2023-01-30", "documents": "https://docs.djangoproject.com/en/4.1/ref/models/fields/#urlfield", "start_date": null, "initial_term": 12, "last_updated": "2023-11-01T18:43:12.139Z", "renewal_term": 12, "custom_fields": {"test_field": "test"}, "external_partie": 1, "internal_partie": "Nagra USA", "invoice_frequency": 1, "external_reference": "reference1", "accounting_dimensions": "\\"\\\\\\"\\\\\\\\\\\\\\"{\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"account\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\": \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"account1\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"}\\\\\\\\\\\\\\"\\\\\\"\\"", "external_partie_object_id": 2, "external_partie_object_type": 117} 116 \N 1
+123 2023-11-01 18:50:44.575887+00 admin f8d2ca8d-abdf-4d1b-a3fd-bef1a01f9253 create 9 \N Contract4 \N {"mrc": "0", "nrc": "0", "name": "Contract4", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [], "created": "2023-11-01T18:50:44.514Z", "comments": "", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-11-01T18:50:44.514Z", "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": 1, "internal_partie": "Nagravision SARL", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": "\\"null\\"", "external_partie_object_id": 1, "external_partie_object_type": 117} 116 \N 1
+124 2023-11-01 18:51:05.829551+00 admin 0a22cadb-0a4f-4b53-a52d-3a7c4cf3ef17 update 9 \N Contract4 {"mrc": "0.00", "nrc": "0.00", "name": "Contract4", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [], "created": "2023-11-01T18:50:44.514Z", "comments": "", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-11-01T18:50:44.514Z", "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": 1, "internal_partie": "Nagravision SARL", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": "\\"null\\"", "external_partie_object_id": 1, "external_partie_object_type": 117} {"mrc": "0.00", "nrc": "0.00", "name": "Contract4", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [], "created": "2023-11-01T18:50:44.514Z", "comments": "", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-11-01T18:51:05.778Z", "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": 1, "internal_partie": "Nagravision SARL", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": "\\"\\\\\\"null\\\\\\"\\"", "external_partie_object_id": 1, "external_partie_object_type": 4} 116 \N 1
+125 2023-11-01 18:51:14.433293+00 admin 1f9edb07-7b9c-4382-8b5e-a070f4908f4d delete 9 \N Contract4 {"mrc": "0.00", "nrc": "0.00", "name": "Contract4", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [], "created": "2023-11-01T18:50:44.514Z", "comments": "", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-11-01T18:51:05.778Z", "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": 1, "internal_partie": "Nagravision SARL", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": "\\"\\\\\\"null\\\\\\"\\"", "external_partie_object_id": 1, "external_partie_object_type": 4} \N 116 \N 1
+126 2023-11-05 15:58:11.561124+00 admin abcfb4d6-c07c-4f84-b2ca-1f463a1c5192 update 1 \N Contract1 {"mrc": "1250.00", "nrc": "0.00", "name": "Contract1", "tags": [], "parent": 2, "status": "Cancled", "tenant": 1, "circuit": [1], "created": "2023-01-22T21:07:09.414Z", "comments": "", "currency": "usd", "end_date": "2023-01-30", "documents": "https://docs.djangoproject.com/en/4.1/ref/models/fields/#urlfield", "start_date": null, "initial_term": 12, "last_updated": "2023-11-01T18:43:12.139Z", "renewal_term": 12, "custom_fields": {"test_field": "test"}, "external_partie": 1, "internal_partie": "Nagra USA", "invoice_frequency": 1, "external_reference": "reference1", "accounting_dimensions": "\\"\\\\\\"\\\\\\\\\\\\\\"{\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"account\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\": \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"account1\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"}\\\\\\\\\\\\\\"\\\\\\"\\"", "external_partie_object_id": 2, "external_partie_object_type": 117} {"mrc": "1250.00", "nrc": "0.00", "name": "Contract1", "tags": [], "parent": 2, "status": "Cancled", "tenant": 1, "circuit": [1], "created": "2023-01-22T21:07:09.414Z", "comments": "", "currency": "usd", "end_date": "2023-01-30", "documents": "https://docs.djangoproject.com/en/4.1/ref/models/fields/#urlfield", "start_date": null, "initial_term": 12, "last_updated": "2023-11-05T15:58:11.495Z", "renewal_term": 12, "custom_fields": {"test_field": "test"}, "external_partie": 1, "internal_partie": "Nagra USA", "invoice_frequency": 1, "external_reference": "reference1", "accounting_dimensions": "\\"\\\\\\"\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"{\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"account\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\": \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"account1\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"}\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\"\\\\\\"\\"", "external_partie_object_id": 1, "external_partie_object_type": 4} 116 \N 1
+138 2023-11-12 16:11:08.559425+00 admin a247cd00-6deb-47c4-9a40-720299720c80 update 12 \N Contract10 {"mrc": "100.00", "nrc": "0.00", "name": "Contract10", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [], "created": "2023-11-12T16:10:39.654Z", "comments": "", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-11-12T16:10:39.654Z", "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": null, "internal_partie": "Nagravision SARL", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": {}, "external_partie_object_id": 1, "external_partie_object_type": 117} {"mrc": "100.00", "nrc": "0.00", "name": "Contract10", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [], "created": "2023-11-12T16:10:39.654Z", "comments": "", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-11-12T16:11:08.516Z", "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": null, "internal_partie": "Nagravision SARL", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": "{}", "external_partie_object_id": 1, "external_partie_object_type": 4} 116 \N 1
+127 2023-11-05 15:58:44.033866+00 admin e16a4029-8deb-4e5b-ad76-007597efd053 update 1 \N Contract1 {"mrc": "1250.00", "nrc": "0.00", "name": "Contract1", "tags": [], "parent": 2, "status": "Cancled", "tenant": 1, "circuit": [1], "created": "2023-01-22T21:07:09.414Z", "comments": "", "currency": "usd", "end_date": "2023-01-30", "documents": "https://docs.djangoproject.com/en/4.1/ref/models/fields/#urlfield", "start_date": null, "initial_term": 12, "last_updated": "2023-11-05T15:58:11.495Z", "renewal_term": 12, "custom_fields": {"test_field": "test"}, "external_partie": 1, "internal_partie": "Nagra USA", "invoice_frequency": 1, "external_reference": "reference1", "accounting_dimensions": "\\"\\\\\\"\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"{\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"account\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\": \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"account1\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"}\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\"\\\\\\"\\"", "external_partie_object_id": 1, "external_partie_object_type": 4} {"mrc": "1250.00", "nrc": "0.00", "name": "Contract1", "tags": [], "parent": 2, "status": "Cancled", "tenant": 1, "circuit": [1], "created": "2023-01-22T21:07:09.414Z", "comments": "", "currency": "usd", "end_date": "2023-01-30", "documents": "https://docs.djangoproject.com/en/4.1/ref/models/fields/#urlfield", "start_date": null, "initial_term": 12, "last_updated": "2023-11-05T15:58:43.974Z", "renewal_term": 12, "custom_fields": {"test_field": "test"}, "external_partie": 1, "internal_partie": "Nagra USA", "invoice_frequency": 1, "external_reference": "reference1", "accounting_dimensions": "\\"\\\\\\"\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"{\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"account\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\": \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"account1\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"}\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\"\\\\\\"\\"", "external_partie_object_id": 3, "external_partie_object_type": 117} 116 \N 1
+128 2023-11-05 16:01:10.1262+00 admin 764fda09-01f9-45b2-a010-40e5ebfef7bb update 1 \N Contract1 {"mrc": "1250.00", "nrc": "0.00", "name": "Contract1", "tags": [], "parent": 2, "status": "Cancled", "tenant": 1, "circuit": [1], "created": "2023-01-22T21:07:09.414Z", "comments": "", "currency": "usd", "end_date": "2023-01-30", "documents": "https://docs.djangoproject.com/en/4.1/ref/models/fields/#urlfield", "start_date": null, "initial_term": 12, "last_updated": "2023-11-05T15:58:43.974Z", "renewal_term": 12, "custom_fields": {"test_field": "test"}, "external_partie": 1, "internal_partie": "Nagra USA", "invoice_frequency": 1, "external_reference": "reference1", "accounting_dimensions": "\\"\\\\\\"\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"{\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"account\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\": \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"account1\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"}\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\"\\\\\\"\\"", "external_partie_object_id": 3, "external_partie_object_type": 117} {"mrc": "1250.00", "nrc": "0.00", "name": "Contract1", "tags": [], "parent": 2, "status": "Cancled", "tenant": 1, "circuit": [1], "created": "2023-01-22T21:07:09.414Z", "comments": "", "currency": "usd", "end_date": "2023-01-30", "documents": "https://docs.djangoproject.com/en/4.1/ref/models/fields/#urlfield", "start_date": null, "initial_term": 12, "last_updated": "2023-11-05T16:01:10.073Z", "renewal_term": 12, "custom_fields": {"test_field": "test"}, "external_partie": 1, "internal_partie": "Nagra USA", "invoice_frequency": 1, "external_reference": "reference1", "accounting_dimensions": "\\"\\\\\\"\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"{\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"account\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\": \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"account1\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"}\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\"\\\\\\"\\"", "external_partie_object_id": 1, "external_partie_object_type": 4} 116 \N 1
+129 2023-11-05 16:04:35.937867+00 admin 0b925637-c966-4720-92ee-263a1af1faa3 update 1 \N Contract1 {"mrc": "1250.00", "nrc": "0.00", "name": "Contract1", "tags": [], "parent": 2, "status": "Cancled", "tenant": 1, "circuit": [1], "created": "2023-01-22T21:07:09.414Z", "comments": "", "currency": "usd", "end_date": "2023-01-30", "documents": "https://docs.djangoproject.com/en/4.1/ref/models/fields/#urlfield", "start_date": null, "initial_term": 12, "last_updated": "2023-11-05T16:01:10.073Z", "renewal_term": 12, "custom_fields": {"test_field": "test"}, "external_partie": 1, "internal_partie": "Nagra USA", "invoice_frequency": 1, "external_reference": "reference1", "accounting_dimensions": "\\"\\\\\\"\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"{\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"account\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\": \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"account1\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"}\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\"\\\\\\"\\"", "external_partie_object_id": 1, "external_partie_object_type": 4} {"mrc": "1250.00", "nrc": "0.00", "name": "Contract1", "tags": [], "parent": 2, "status": "Cancled", "tenant": 1, "circuit": [1], "created": "2023-01-22T21:07:09.414Z", "comments": "", "currency": "usd", "end_date": "2023-01-30", "documents": "https://docs.djangoproject.com/en/4.1/ref/models/fields/#urlfield", "start_date": null, "initial_term": 12, "last_updated": "2023-11-05T16:04:35.901Z", "renewal_term": 12, "custom_fields": {"test_field": "test"}, "external_partie": 1, "internal_partie": "Nagra USA", "invoice_frequency": 1, "external_reference": "reference1", "accounting_dimensions": "\\"\\\\\\"\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"{\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"account\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\": \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"account1\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"}\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\"\\\\\\"\\"", "external_partie_object_id": 3, "external_partie_object_type": 117} 116 \N 1
+130 2023-11-05 16:06:01.542519+00 admin f42d4633-24d3-4a18-a59b-6150d14d9931 update 1 \N Contract1 {"mrc": "1250.00", "nrc": "0.00", "name": "Contract1", "tags": [], "parent": 2, "status": "Cancled", "tenant": 1, "circuit": [1], "created": "2023-01-22T21:07:09.414Z", "comments": "", "currency": "usd", "end_date": "2023-01-30", "documents": "https://docs.djangoproject.com/en/4.1/ref/models/fields/#urlfield", "start_date": null, "initial_term": 12, "last_updated": "2023-11-05T16:04:35.901Z", "renewal_term": 12, "custom_fields": {"test_field": "test"}, "external_partie": 1, "internal_partie": "Nagra USA", "invoice_frequency": 1, "external_reference": "reference1", "accounting_dimensions": "\\"\\\\\\"\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"{\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"account\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\": \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"account1\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"}\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\"\\\\\\"\\"", "external_partie_object_id": 3, "external_partie_object_type": 117} {"mrc": "1250.00", "nrc": "0.00", "name": "Contract1", "tags": [], "parent": 2, "status": "Cancled", "tenant": 1, "circuit": [1], "created": "2023-01-22T21:07:09.414Z", "comments": "", "currency": "usd", "end_date": "2023-01-30", "documents": "https://docs.djangoproject.com/en/4.1/ref/models/fields/#urlfield", "start_date": null, "initial_term": 12, "last_updated": "2023-11-05T16:06:01.497Z", "renewal_term": 12, "custom_fields": {"test_field": "test"}, "external_partie": 1, "internal_partie": "Nagra USA", "invoice_frequency": 1, "external_reference": "reference1", "accounting_dimensions": {"Account": ""}, "external_partie_object_id": 3, "external_partie_object_type": 117} 116 \N 1
+186 2024-02-06 21:01:13.04801+00 admin e662b3c1-95b2-4f2f-bec8-46821eab7b8b create 8 \N invoice99 \N {"date": "2024-02-06", "tags": [], "amount": "10.00", "number": "invoice99", "created": "2024-02-06T21:01:13.029Z", "comments": "", "currency": "usd", "contracts": [17], "documents": "", "period_end": "2024-03-06", "period_start": "2024-02-06", "custom_fields": {}, "accounting_dimensions": {"Accoount": ""}} 118 \N 1
+131 2023-11-05 16:06:32.683721+00 admin e6aae34a-4441-4a68-bc32-7b99877c0c8b update 1 \N Contract1 {"mrc": "1250.00", "nrc": "0.00", "name": "Contract1", "tags": [], "parent": 2, "status": "Cancled", "tenant": 1, "circuit": [1], "created": "2023-01-22T21:07:09.414Z", "comments": "", "currency": "usd", "end_date": "2023-01-30", "documents": "https://docs.djangoproject.com/en/4.1/ref/models/fields/#urlfield", "start_date": null, "initial_term": 12, "last_updated": "2023-11-05T16:06:01.497Z", "renewal_term": 12, "custom_fields": {"test_field": "test"}, "external_partie": 1, "internal_partie": "Nagra USA", "invoice_frequency": 1, "external_reference": "reference1", "accounting_dimensions": {"Account": ""}, "external_partie_object_id": 3, "external_partie_object_type": 117} {"mrc": "1250.00", "nrc": "0.00", "name": "Contract1", "tags": [], "parent": 2, "status": "Cancled", "tenant": 1, "circuit": [1], "created": "2023-01-22T21:07:09.414Z", "comments": "", "currency": "usd", "end_date": "2023-01-30", "documents": "https://docs.djangoproject.com/en/4.1/ref/models/fields/#urlfield", "start_date": null, "initial_term": 12, "last_updated": "2023-11-05T16:06:32.655Z", "renewal_term": 12, "custom_fields": {"test_field": "test"}, "external_partie": 1, "internal_partie": "Nagra USA", "invoice_frequency": 1, "external_reference": "reference1", "accounting_dimensions": "{\\"Account\\": \\"\\"}", "external_partie_object_id": 1, "external_partie_object_type": 4} 116 \N 1
+132 2023-11-05 16:10:42.092202+00 admin f608c98b-227e-4080-b5a6-eed3bbffed75 create 10 \N Contract8 \N {"mrc": "1000", "nrc": "1000", "name": "Contract8", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [], "created": "2023-11-05T16:10:42.037Z", "comments": "", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-11-05T16:10:42.037Z", "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": 1, "internal_partie": "Nagravision SARL", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": {"account": ""}, "external_partie_object_id": 1, "external_partie_object_type": 117} 116 \N 1
+133 2023-11-05 16:15:15.513179+00 admin d40e20d1-5550-4843-8fe2-57344be577cf update 10 \N Contract8 {"mrc": "1000.00", "nrc": "1000.00", "name": "Contract8", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [], "created": "2023-11-05T16:10:42.037Z", "comments": "", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-11-05T16:10:42.037Z", "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": 1, "internal_partie": "Nagravision SARL", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": {"account": ""}, "external_partie_object_id": 1, "external_partie_object_type": 117} {"mrc": "1000.00", "nrc": "1000.00", "name": "Contract8", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [], "created": "2023-11-05T16:10:42.037Z", "comments": "", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-11-05T16:15:15.482Z", "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": 1, "internal_partie": "Nagravision SARL", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": {"Account": ""}, "external_partie_object_id": 1, "external_partie_object_type": 4} 116 \N 1
+134 2023-11-05 16:19:39.428653+00 admin 1510fabf-46eb-462a-9ee7-99df27c37086 update 1 \N Contract1 {"mrc": "1250.00", "nrc": "0.00", "name": "Contract1", "tags": [], "parent": 2, "status": "Cancled", "tenant": 1, "circuit": [1], "created": "2023-01-22T21:07:09.414Z", "comments": "", "currency": "usd", "end_date": "2023-01-30", "documents": "https://docs.djangoproject.com/en/4.1/ref/models/fields/#urlfield", "start_date": null, "initial_term": 12, "last_updated": "2023-11-05T16:06:32.655Z", "renewal_term": 12, "custom_fields": {"test_field": "test"}, "external_partie": 1, "internal_partie": "Nagra USA", "invoice_frequency": 1, "external_reference": "reference1", "accounting_dimensions": "{\\"Account\\": \\"\\"}", "external_partie_object_id": 1, "external_partie_object_type": 4} {"mrc": "1250.00", "nrc": "0.00", "name": "Contract1", "tags": [], "parent": 2, "status": "Cancled", "tenant": 1, "circuit": [1], "created": "2023-01-22T21:07:09.414Z", "comments": "", "currency": "usd", "end_date": "2023-01-30", "documents": "https://docs.djangoproject.com/en/4.1/ref/models/fields/#urlfield", "start_date": null, "initial_term": 12, "last_updated": "2023-11-05T16:19:39.371Z", "renewal_term": 12, "custom_fields": {"test_field": "test"}, "external_partie": 1, "internal_partie": "Nagra USA", "invoice_frequency": 1, "external_reference": "reference1", "accounting_dimensions": "\\"\\\\\\"{\\\\\\\\\\\\\\"Account\\\\\\\\\\\\\\": \\\\\\\\\\\\\\"\\\\\\\\\\\\\\"}\\\\\\"\\"", "external_partie_object_id": 1, "external_partie_object_type": 4} 116 \N 1
+135 2023-11-12 16:03:04.209297+00 admin d22f7125-a354-4600-855c-2781da398dc9 update 8 \N Contract10 {"mrc": "100.00", "nrc": "1000.00", "name": "Contract10", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [], "created": "2023-06-18T15:58:58.874Z", "comments": "", "currency": "usd", "end_date": "2024-05-30", "documents": "", "start_date": "2023-06-01", "initial_term": 12, "last_updated": "2023-09-24T19:11:51.137Z", "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": 1, "internal_partie": "Nagra USA", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": null, "external_partie_object_id": 1, "external_partie_object_type": 117} {"mrc": "100.00", "nrc": "1000.00", "name": "Contract10", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [], "created": "2023-06-18T15:58:58.874Z", "comments": "", "currency": "usd", "end_date": "2024-05-30", "documents": "", "start_date": "2023-06-01", "initial_term": 12, "last_updated": "2023-11-12T16:03:04.156Z", "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": 1, "internal_partie": "Nagra USA", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": "null", "external_partie_object_id": 1, "external_partie_object_type": 4} 116 \N 1
+136 2023-11-12 16:03:26.246313+00 admin 71ed1314-7e67-42c8-b5e6-460ed3787e84 delete 8 \N Contract10 {"mrc": "100.00", "nrc": "1000.00", "name": "Contract10", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [], "created": "2023-06-18T15:58:58.874Z", "comments": "", "currency": "usd", "end_date": "2024-05-30", "documents": "", "start_date": "2023-06-01", "initial_term": 12, "last_updated": "2023-11-12T16:03:04.156Z", "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": 1, "internal_partie": "Nagra USA", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": "null", "external_partie_object_id": 1, "external_partie_object_type": 4} \N 116 \N 1
+139 2023-11-12 19:34:53.375281+00 admin a63e8aad-123f-40d6-87ba-0f0ab8f3a0cc update 1 \N Contract1 {"mrc": "1250.00", "nrc": "0.00", "name": "Contract1", "tags": [], "parent": 2, "status": "Cancled", "tenant": 1, "circuit": [1], "created": "2023-01-22T21:07:09.414Z", "comments": "", "currency": "usd", "end_date": "2023-01-30", "documents": "https://docs.djangoproject.com/en/4.1/ref/models/fields/#urlfield", "start_date": null, "initial_term": 12, "last_updated": "2023-11-05T16:19:39.371Z", "renewal_term": 12, "custom_fields": {"test_field": "test"}, "external_partie": 1, "internal_partie": "Nagra USA", "invoice_frequency": 1, "external_reference": "reference1", "accounting_dimensions": "\\"\\\\\\"{\\\\\\\\\\\\\\"Account\\\\\\\\\\\\\\": \\\\\\\\\\\\\\"\\\\\\\\\\\\\\"}\\\\\\"\\"", "external_partie_object_id": 1, "external_partie_object_type": 4} {"mrc": "1250.00", "nrc": "0.00", "name": "Contract1", "tags": [], "parent": 2, "status": "Cancled", "tenant": 1, "circuit": [1], "created": "2023-01-22T21:07:09.414Z", "comments": "", "currency": "usd", "end_date": "2023-01-30", "documents": "https://docs.djangoproject.com/en/4.1/ref/models/fields/#urlfield", "start_date": null, "initial_term": 12, "last_updated": "2023-11-12T19:34:53.348Z", "renewal_term": 12, "custom_fields": {"test_field": "test"}, "external_partie": 1, "internal_partie": "Nagra USA", "invoice_frequency": 1, "external_reference": "reference1", "accounting_dimensions": {}, "external_partie_object_id": 1, "external_partie_object_type": 4} 116 \N 1
+140 2023-11-13 22:12:26.561368+00 admin b307265d-1f70-4f2a-9f01-7456e28daefd create 13 \N Contract99 \N {"mrc": "100", "nrc": "100", "name": "Contract99", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [], "created": "2023-11-13T22:12:26.506Z", "comments": "", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-11-13T22:12:26.506Z", "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": null, "internal_partie": "Nagravision SARL", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": null, "external_partie_object_id": 1, "external_partie_object_type": 4} 116 \N 1
+141 2023-11-13 22:32:47.276739+00 admin bc2ee3ee-3776-4121-9fef-bb920ce8eaac update 1 \N Contract1 {"mrc": "1250.00", "nrc": "0.00", "name": "Contract1", "tags": [], "parent": 2, "status": "Cancled", "tenant": 1, "circuit": [1], "created": "2023-01-22T21:07:09.414Z", "comments": "", "currency": "usd", "end_date": "2023-01-30", "documents": "https://docs.djangoproject.com/en/4.1/ref/models/fields/#urlfield", "start_date": null, "initial_term": 12, "last_updated": "2023-11-12T19:34:53.348Z", "renewal_term": 12, "custom_fields": {"test_field": "test"}, "external_partie": 1, "internal_partie": "Nagra USA", "invoice_frequency": 1, "external_reference": "reference1", "accounting_dimensions": {}, "external_partie_object_id": 1, "external_partie_object_type": 4} {"mrc": "1250.00", "nrc": "0.00", "name": "Contract1", "tags": [], "parent": 2, "status": "Cancled", "tenant": 1, "circuit": [1], "created": "2023-01-22T21:07:09.414Z", "comments": "", "currency": "usd", "end_date": "2023-01-30", "documents": "https://docs.djangoproject.com/en/4.1/ref/models/fields/#urlfield", "start_date": null, "initial_term": 12, "last_updated": "2023-11-13T22:32:47.251Z", "renewal_term": 12, "custom_fields": {"test_field": "test"}, "external_partie": 1, "internal_partie": "Nagra USA", "invoice_frequency": 1, "external_reference": "reference1", "accounting_dimensions": "{}", "external_partie_object_id": 3, "external_partie_object_type": 117} 116 \N 1
+142 2023-11-13 22:33:14.293093+00 admin b76453bc-09e6-40c8-93fb-73c9f0673202 delete 12 \N Contract10 {"mrc": "100.00", "nrc": "0.00", "name": "Contract10", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [], "created": "2023-11-12T16:10:39.654Z", "comments": "", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-11-12T16:11:08.516Z", "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": null, "internal_partie": "Nagravision SARL", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": "{}", "external_partie_object_id": 1, "external_partie_object_type": 4} \N 116 \N 1
+143 2023-11-13 22:33:53.298176+00 admin 0d597faf-6c25-414c-90a2-0557dd0679f7 create 14 \N Contract10 \N {"mrc": "100", "nrc": "100", "name": "Contract10", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [], "created": "2023-11-13T22:33:53.274Z", "comments": "", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-11-13T22:33:53.274Z", "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": null, "internal_partie": "Nagravision SARL", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": "null", "external_partie_object_id": 1, "external_partie_object_type": 4} 116 \N 1
+188 2024-03-16 22:17:22.580676+00 admin 24ec59bd-7548-4440-b7da-30d5c81dd8c1 create 2 \N 2024-03-16 22:17 (Info) \N {"kind": "info", "tags": [], "created": "2024-03-16T22:17:22.562Z", "comments": "# Info 1\\r\\nthis is a new info", "created_by": 1, "custom_fields": {}, "assigned_object_id": 1, "assigned_object_type": 116} 35 \N 1
+147 2023-12-02 09:10:41.4401+00 admin 515e90eb-524e-4605-931d-5326c1ded55a update 3 \N Contract3 {"mrc": "300.00", "nrc": "0.00", "name": "Contract3", "tags": [], "parent": null, "status": "Active", "tenant": null, "circuit": [1], "created": "2023-01-24T15:21:47.287Z", "comments": "", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-09-24T19:11:51.182Z", "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": 1, "internal_partie": "Nagravision Sarl", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": {"Account": ""}, "external_partie_object_id": 1, "external_partie_object_type": 117} {"mrc": "300.00", "nrc": "0.00", "name": "Contract3", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [1], "created": "2023-01-24T15:21:47.287Z", "comments": "", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-12-02T09:10:41.415Z", "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": 1, "internal_partie": "Nagravision SARL", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": {"Account": ""}, "external_partie_object_id": 1, "external_partie_object_type": 117} 116 \N 1
+148 2023-12-02 09:11:28.661383+00 admin 6e74b257-3fed-4c2f-bb74-c70cbc14289f update 3 \N Contract3 {"mrc": "300.00", "nrc": "0.00", "name": "Contract3", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [1], "created": "2023-01-24T15:21:47.287Z", "comments": "", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-12-02T09:10:41.415Z", "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": 1, "internal_partie": "Nagravision SARL", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": {"Account": ""}, "external_partie_object_id": 1, "external_partie_object_type": 117} {"mrc": "300.00", "nrc": "0.00", "name": "Contract3", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [1], "created": "2023-01-24T15:21:47.287Z", "comments": "", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-12-02T09:11:28.618Z", "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": 1, "internal_partie": "Nagravision SARL", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": {"Account": ""}, "external_partie_object_id": 1, "external_partie_object_type": 117} 116 \N 1
+149 2023-12-02 09:11:45.64566+00 admin 4fc9a337-344e-49ae-b954-e3e8e27231dd update 2 \N Contract2 {"mrc": "250.00", "nrc": "0.00", "name": "Contract2", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [1], "created": "2023-01-24T14:48:30.718Z", "comments": "Additional reference : testreference2", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-09-24T19:11:51.163Z", "renewal_term": 36, "custom_fields": {"test_field": null}, "external_partie": 2, "internal_partie": "Nagravision SARL", "invoice_frequency": 2, "external_reference": null, "accounting_dimensions": {"Accoount": ""}, "external_partie_object_id": 2, "external_partie_object_type": 117} {"mrc": "250.00", "nrc": "0.00", "name": "Contract2", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [1], "created": "2023-01-24T14:48:30.718Z", "comments": "Additional reference : testreference2", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-12-02T09:11:45.610Z", "renewal_term": 36, "custom_fields": {"test_field": null}, "external_partie": 2, "internal_partie": "Nagravision SARL", "invoice_frequency": 2, "external_reference": null, "accounting_dimensions": {"Accoount": ""}, "external_partie_object_id": 1, "external_partie_object_type": 117} 116 \N 1
+150 2023-12-02 09:11:45.723359+00 admin 4fc9a337-344e-49ae-b954-e3e8e27231dd update 3 \N Contract3 {"mrc": "300.00", "nrc": "0.00", "name": "Contract3", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [1], "created": "2023-01-24T15:21:47.287Z", "comments": "", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-12-02T09:11:28.618Z", "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": 1, "internal_partie": "Nagravision SARL", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": {"Account": ""}, "external_partie_object_id": 1, "external_partie_object_type": 117} {"mrc": "300.00", "nrc": "0.00", "name": "Contract3", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [1], "created": "2023-01-24T15:21:47.287Z", "comments": "", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-12-02T09:11:45.703Z", "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": 1, "internal_partie": "Nagravision SARL", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": {"Account": ""}, "external_partie_object_id": 1, "external_partie_object_type": 117} 116 \N 1
+151 2023-12-02 09:12:40.006394+00 admin fa1edd43-b350-4528-8fee-c3b3acbf0525 update 2 \N Contract2 {"mrc": "250.00", "nrc": "0.00", "name": "Contract2", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [1], "created": "2023-01-24T14:48:30.718Z", "comments": "Additional reference : testreference2", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-12-02T09:11:45.610Z", "renewal_term": 36, "custom_fields": {"test_field": null}, "external_partie": 2, "internal_partie": "Nagravision SARL", "invoice_frequency": 2, "external_reference": null, "accounting_dimensions": {"Accoount": ""}, "external_partie_object_id": 1, "external_partie_object_type": 117} {"mrc": "250.00", "nrc": "0.00", "name": "Contract2", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [1], "created": "2023-01-24T14:48:30.718Z", "comments": "Additional reference : testreference2", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-12-02T09:12:39.985Z", "renewal_term": 36, "custom_fields": {"test_field": null}, "external_partie": 2, "internal_partie": "Nagravision SARL", "invoice_frequency": 2, "external_reference": null, "accounting_dimensions": {"Accoount": ""}, "external_partie_object_id": 1, "external_partie_object_type": 117} 116 \N 1
+152 2023-12-02 09:12:40.085762+00 admin fa1edd43-b350-4528-8fee-c3b3acbf0525 update 3 \N Contract3 {"mrc": "300.00", "nrc": "0.00", "name": "Contract3", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [1], "created": "2023-01-24T15:21:47.287Z", "comments": "", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-12-02T09:11:45.703Z", "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": 1, "internal_partie": "Nagravision SARL", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": {"Account": ""}, "external_partie_object_id": 1, "external_partie_object_type": 117} {"mrc": "300.00", "nrc": "0.00", "name": "Contract3", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [1], "created": "2023-01-24T15:21:47.287Z", "comments": "", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-12-02T09:12:40.064Z", "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": 1, "internal_partie": "Nagravision SARL", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": {"Account": ""}, "external_partie_object_id": 1, "external_partie_object_type": 117} 116 \N 1
+153 2023-12-02 09:26:37.466389+00 admin 5db1dd7b-4d88-4d04-a6b3-17616bf6ac61 update 2 \N Contract2 {"mrc": "250.00", "nrc": "0.00", "name": "Contract2", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [1], "created": "2023-01-24T14:48:30.718Z", "comments": "Additional reference : testreference2", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-12-02T09:12:39.985Z", "renewal_term": 36, "custom_fields": {"test_field": null}, "external_partie": 2, "internal_partie": "Nagravision SARL", "invoice_frequency": 2, "external_reference": null, "accounting_dimensions": {"Accoount": ""}, "external_partie_object_id": 1, "external_partie_object_type": 117} {"mrc": "250.00", "nrc": "0.00", "name": "Contract2", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [1], "created": "2023-01-24T14:48:30.718Z", "comments": "Additional reference : testreference2", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-12-02T09:26:37.420Z", "renewal_term": 36, "custom_fields": {"test_field": null}, "external_partie": 2, "internal_partie": "Nagravision SARL", "invoice_frequency": 2, "external_reference": null, "accounting_dimensions": {"Accoount": ""}, "external_partie_object_id": 1, "external_partie_object_type": 117} 116 \N 1
+154 2023-12-02 09:26:37.581852+00 admin 5db1dd7b-4d88-4d04-a6b3-17616bf6ac61 update 3 \N Contract3 {"mrc": "300.00", "nrc": "0.00", "name": "Contract3", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [1], "created": "2023-01-24T15:21:47.287Z", "comments": "", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-12-02T09:12:40.064Z", "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": 1, "internal_partie": "Nagravision SARL", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": {"Account": ""}, "external_partie_object_id": 1, "external_partie_object_type": 117} {"mrc": "300.00", "nrc": "0.00", "name": "Contract3", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [1], "created": "2023-01-24T15:21:47.287Z", "comments": "", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-12-02T09:26:37.528Z", "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": 1, "internal_partie": "Nagravision SARL", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": {"Account": ""}, "external_partie_object_id": 1, "external_partie_object_type": 117} 116 \N 1
+155 2023-12-02 10:21:59.915388+00 admin cc1ccbad-b2af-4d3e-ba7a-df435a6596bf update 2 \N Contract2 {"mrc": "250.00", "nrc": "0.00", "name": "Contract2", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [1], "created": "2023-01-24T14:48:30.718Z", "comments": "Additional reference : testreference2", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-12-02T09:26:37.420Z", "renewal_term": 36, "custom_fields": {"test_field": null}, "external_partie": 2, "internal_partie": "Nagravision SARL", "invoice_frequency": 2, "external_reference": null, "accounting_dimensions": {"Accoount": ""}, "external_partie_object_id": 1, "external_partie_object_type": 117} {"mrc": "250.00", "nrc": "0.00", "name": "Contract2", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [1], "created": "2023-01-24T14:48:30.718Z", "comments": "Additional reference : testreference2", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-12-02T10:21:59.888Z", "renewal_term": 36, "custom_fields": {"test_field": null}, "external_partie": 2, "internal_partie": "Nagravision SARL", "invoice_frequency": 2, "external_reference": null, "accounting_dimensions": {"Accoount": ""}, "external_partie_object_id": 1, "external_partie_object_type": 117} 116 \N 1
+156 2023-12-02 10:22:00.010375+00 admin cc1ccbad-b2af-4d3e-ba7a-df435a6596bf update 3 \N Contract3 {"mrc": "300.00", "nrc": "0.00", "name": "Contract3", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [1], "created": "2023-01-24T15:21:47.287Z", "comments": "", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-12-02T09:26:37.528Z", "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": 1, "internal_partie": "Nagravision SARL", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": {"Account": ""}, "external_partie_object_id": 1, "external_partie_object_type": 117} {"mrc": "300.00", "nrc": "0.00", "name": "Contract3", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [1], "created": "2023-01-24T15:21:47.287Z", "comments": "", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-12-02T10:21:59.979Z", "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": 1, "internal_partie": "Nagravision SARL", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": {"Account": ""}, "external_partie_object_id": 1, "external_partie_object_type": 117} 116 \N 1
+157 2023-12-02 10:24:39.726734+00 admin c1efdda7-29e8-40fc-803b-7595a1369079 update 2 \N Contract2 {"mrc": "250.00", "nrc": "0.00", "name": "Contract2", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [1], "created": "2023-01-24T14:48:30.718Z", "comments": "Additional reference : testreference2", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-12-02T10:21:59.888Z", "renewal_term": 36, "custom_fields": {"test_field": null}, "external_partie": 2, "internal_partie": "Nagravision SARL", "invoice_frequency": 2, "external_reference": null, "accounting_dimensions": {"Accoount": ""}, "external_partie_object_id": 1, "external_partie_object_type": 117} {"mrc": "250.00", "nrc": "0.00", "name": "Contract2", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [1], "created": "2023-01-24T14:48:30.718Z", "comments": "Additional reference : testreference2", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-12-02T10:24:39.702Z", "renewal_term": 36, "custom_fields": {"test_field": null}, "external_partie": 2, "internal_partie": "Nagravision SARL", "invoice_frequency": 2, "external_reference": null, "accounting_dimensions": {"Accoount": ""}, "external_partie_object_id": 1, "external_partie_object_type": 117} 116 \N 1
+158 2023-12-02 10:24:39.813539+00 admin c1efdda7-29e8-40fc-803b-7595a1369079 update 3 \N Contract3 {"mrc": "300.00", "nrc": "0.00", "name": "Contract3", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [1], "created": "2023-01-24T15:21:47.287Z", "comments": "", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-12-02T10:21:59.979Z", "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": 1, "internal_partie": "Nagravision SARL", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": {"Account": ""}, "external_partie_object_id": 1, "external_partie_object_type": 117} {"mrc": "300.00", "nrc": "0.00", "name": "Contract3", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [1], "created": "2023-01-24T15:21:47.287Z", "comments": "", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-12-02T10:24:39.792Z", "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": 1, "internal_partie": "Nagravision SARL", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": {"Account": ""}, "external_partie_object_id": 1, "external_partie_object_type": 117} 116 \N 1
+159 2023-12-02 10:29:08.293714+00 admin d41cdd13-8819-4af7-9acf-b5c96c2e8efe update 2 \N Contract2 {"mrc": "250.00", "nrc": "0.00", "name": "Contract2", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [1], "created": "2023-01-24T14:48:30.718Z", "comments": "Additional reference : testreference2", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-12-02T10:24:39.702Z", "renewal_term": 36, "custom_fields": {"test_field": null}, "external_partie": 2, "internal_partie": "Nagravision SARL", "invoice_frequency": 2, "external_reference": null, "accounting_dimensions": {"Accoount": ""}, "external_partie_object_id": 1, "external_partie_object_type": 117} {"mrc": "250.00", "nrc": "0.00", "name": "Contract2", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [1], "created": "2023-01-24T14:48:30.718Z", "comments": "Additional reference : testreference2", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-12-02T10:29:08.249Z", "renewal_term": 36, "custom_fields": {"test_field": null}, "external_partie": 2, "internal_partie": "Nagravision SARL", "invoice_frequency": 2, "external_reference": null, "accounting_dimensions": {"Accoount": ""}, "external_partie_object_id": 1, "external_partie_object_type": 117} 116 \N 1
+160 2023-12-02 10:29:08.407411+00 admin d41cdd13-8819-4af7-9acf-b5c96c2e8efe update 3 \N Contract3 {"mrc": "300.00", "nrc": "0.00", "name": "Contract3", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [1], "created": "2023-01-24T15:21:47.287Z", "comments": "", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-12-02T10:24:39.792Z", "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": 1, "internal_partie": "Nagravision SARL", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": {"Account": ""}, "external_partie_object_id": 1, "external_partie_object_type": 117} {"mrc": "300.00", "nrc": "0.00", "name": "Contract3", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [1], "created": "2023-01-24T15:21:47.287Z", "comments": "", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-12-02T10:29:08.379Z", "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": 1, "internal_partie": "Nagravision SARL", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": {"Account": ""}, "external_partie_object_id": 1, "external_partie_object_type": 117} 116 \N 1
+161 2023-12-02 10:29:57.71697+00 admin e5b21de8-c258-4488-9b18-b610d620fa60 update 2 \N Contract2 {"mrc": "250.00", "nrc": "0.00", "name": "Contract2", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [1], "created": "2023-01-24T14:48:30.718Z", "comments": "Additional reference : testreference2", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-12-02T10:29:08.249Z", "renewal_term": 36, "custom_fields": {"test_field": null}, "external_partie": 2, "internal_partie": "Nagravision SARL", "invoice_frequency": 2, "external_reference": null, "accounting_dimensions": {"Accoount": ""}, "external_partie_object_id": 1, "external_partie_object_type": 117} {"mrc": "250.00", "nrc": "0.00", "name": "Contract2", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [1], "created": "2023-01-24T14:48:30.718Z", "comments": "Additional reference : testreference2", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-12-02T10:29:57.672Z", "renewal_term": 36, "custom_fields": {"test_field": null}, "external_partie": 2, "internal_partie": "Nagra USA", "invoice_frequency": 2, "external_reference": null, "accounting_dimensions": {"Accoount": ""}, "external_partie_object_id": 1, "external_partie_object_type": 117} 116 \N 1
+162 2023-12-02 10:29:57.826028+00 admin e5b21de8-c258-4488-9b18-b610d620fa60 update 3 \N Contract3 {"mrc": "300.00", "nrc": "0.00", "name": "Contract3", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [1], "created": "2023-01-24T15:21:47.287Z", "comments": "", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-12-02T10:29:08.379Z", "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": 1, "internal_partie": "Nagravision SARL", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": {"Account": ""}, "external_partie_object_id": 1, "external_partie_object_type": 117} {"mrc": "300.00", "nrc": "0.00", "name": "Contract3", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [1], "created": "2023-01-24T15:21:47.287Z", "comments": "", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-12-02T10:29:57.784Z", "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": 1, "internal_partie": "Nagra USA", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": {"Account": ""}, "external_partie_object_id": 1, "external_partie_object_type": 117} 116 \N 1
+163 2023-12-02 10:56:41.216787+00 admin 878d00c4-e7a2-46a4-a159-76a7f09bb106 update 2 \N Contract2 {"mrc": "250.00", "nrc": "0.00", "name": "Contract2", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [1], "created": "2023-01-24T14:48:30.718Z", "comments": "Additional reference : testreference2", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-12-02T10:29:57.672Z", "renewal_term": 36, "custom_fields": {"test_field": null}, "external_partie": 2, "internal_partie": "Nagra USA", "invoice_frequency": 2, "external_reference": null, "accounting_dimensions": {"Accoount": ""}, "external_partie_object_id": 1, "external_partie_object_type": 117} {"mrc": "250.00", "nrc": "0.00", "name": "Contract2", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [1], "created": "2023-01-24T14:48:30.718Z", "comments": "Additional reference : testreference2", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-12-02T10:56:41.168Z", "renewal_term": 36, "custom_fields": {"test_field": null}, "external_partie": 2, "internal_partie": "Nagravision SARL", "invoice_frequency": 2, "external_reference": null, "accounting_dimensions": {"Accoount": ""}, "external_partie_object_id": 1, "external_partie_object_type": 117} 116 \N 1
+164 2023-12-02 10:56:41.316169+00 admin 878d00c4-e7a2-46a4-a159-76a7f09bb106 update 3 \N Contract3 {"mrc": "300.00", "nrc": "0.00", "name": "Contract3", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [1], "created": "2023-01-24T15:21:47.287Z", "comments": "", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-12-02T10:29:57.784Z", "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": 1, "internal_partie": "Nagra USA", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": {"Account": ""}, "external_partie_object_id": 1, "external_partie_object_type": 117} {"mrc": "300.00", "nrc": "0.00", "name": "Contract3", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [1], "created": "2023-01-24T15:21:47.287Z", "comments": "", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-12-02T10:56:41.277Z", "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": 1, "internal_partie": "Nagravision SARL", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": {"Account": ""}, "external_partie_object_id": 1, "external_partie_object_type": 117} 116 \N 1
+165 2023-12-02 10:58:08.738182+00 admin 8156eb5c-c432-4b5d-a6d0-5d2b6bfa108e update 2 \N Contract2 {"mrc": "250.00", "nrc": "0.00", "name": "Contract2", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [1], "created": "2023-01-24T14:48:30.718Z", "comments": "Additional reference : testreference2", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-12-02T10:56:41.168Z", "renewal_term": 36, "custom_fields": {"test_field": null}, "external_partie": 2, "internal_partie": "Nagravision SARL", "invoice_frequency": 2, "external_reference": null, "accounting_dimensions": {"Accoount": ""}, "external_partie_object_id": 1, "external_partie_object_type": 117} {"mrc": "250.00", "nrc": "0.00", "name": "Contract2", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [1], "created": "2023-01-24T14:48:30.718Z", "comments": "Additional reference : testreference2", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-12-02T10:58:08.695Z", "renewal_term": 36, "custom_fields": {"test_field": null}, "external_partie": 2, "internal_partie": "Nagravision SARL", "invoice_frequency": 2, "external_reference": null, "accounting_dimensions": {"Accoount": ""}, "external_partie_object_id": 1, "external_partie_object_type": 117} 116 \N 1
+166 2023-12-02 10:58:08.827394+00 admin 8156eb5c-c432-4b5d-a6d0-5d2b6bfa108e update 3 \N Contract3 {"mrc": "300.00", "nrc": "0.00", "name": "Contract3", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [1], "created": "2023-01-24T15:21:47.287Z", "comments": "", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-12-02T10:56:41.277Z", "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": 1, "internal_partie": "Nagravision SARL", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": {"Account": ""}, "external_partie_object_id": 1, "external_partie_object_type": 117} {"mrc": "300.00", "nrc": "0.00", "name": "Contract3", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [1], "created": "2023-01-24T15:21:47.287Z", "comments": "", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-12-02T10:58:08.798Z", "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": 1, "internal_partie": "Nagravision SARL", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": {"Account": ""}, "external_partie_object_id": 1, "external_partie_object_type": 117} 116 \N 1
+167 2023-12-06 19:40:46.897609+00 admin b30e4e13-8e63-4d5a-8379-97296d528cfe create 40 \N ContractAssignement object (40) \N {"tags": [], "created": "2023-12-06T19:40:46.879Z", "contract": 10, "object_id": 1, "content_type": 59, "last_updated": "2023-12-06T19:40:46.879Z", "custom_fields": {}} 119 \N 1
+168 2023-12-06 19:41:13.662184+00 admin b11bb754-5525-4cb2-88c3-22848b17d8d5 delete 40 \N ContractAssignement object (40) {"tags": [], "created": "2023-12-06T19:40:46.879Z", "contract": 10, "object_id": 1, "content_type": 59, "last_updated": "2023-12-06T19:40:46.879Z", "custom_fields": {}} \N 119 \N 1
+169 2023-12-06 19:42:14.07803+00 admin 7615bdca-f9d0-4b0d-bef5-e50bed6be480 delete 37 \N ContractAssignement object (37) {"tags": [], "created": "2023-06-07T19:16:47.707Z", "contract": 3, "object_id": 1, "content_type": 1, "last_updated": "2023-06-07T19:16:47.707Z", "custom_fields": {}} \N 119 \N 1
+170 2023-12-06 19:48:09.846717+00 admin 246c4710-7957-48a6-897e-491a8e472521 update 3 \N Contract3 {"mrc": "300.00", "nrc": "0.00", "name": "Contract3", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [1], "created": "2023-01-24T15:21:47.287Z", "comments": "", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-12-02T10:58:08.798Z", "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": 1, "internal_partie": "Nagravision SARL", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": {"Account": ""}, "external_partie_object_id": 1, "external_partie_object_type": 117} {"mrc": "300.00", "nrc": "0.00", "name": "Contract3", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [1], "created": "2023-01-24T15:21:47.287Z", "comments": "", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-12-06T19:48:09.819Z", "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": 1, "internal_partie": "Nagravision SARL", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": "{\\"Account\\": \\"\\"}", "external_partie_object_id": 1, "external_partie_object_type": 4} 116 \N 1
+171 2023-12-06 19:57:45.301094+00 admin 1fb79be9-7b3b-4d05-884d-3343bc4d80e8 update 4 \N Contract5 {"mrc": "750.00", "nrc": "0.00", "name": "Contract5", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [2], "created": "2023-02-01T18:24:36.275Z", "comments": "", "currency": "usd", "end_date": null, "documents": "", "start_date": "2023-02-01", "initial_term": 12, "last_updated": "2023-09-24T19:11:51.198Z", "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": 1, "internal_partie": "Nagravision SARL", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": {"cc": "872", "account": ""}, "external_partie_object_id": 1, "external_partie_object_type": 117} {"mrc": "750.00", "nrc": "0.00", "name": "Contract5", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [2], "created": "2023-02-01T18:24:36.275Z", "comments": "", "currency": "usd", "end_date": null, "documents": "", "start_date": "2023-02-01", "initial_term": 12, "last_updated": "2023-12-06T19:57:45.269Z", "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": 1, "internal_partie": "Nagravision SARL", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": "{\\"cc\\": \\"872\\", \\"account\\": \\"\\"}", "external_partie_object_id": 1, "external_partie_object_type": 4} 116 \N 1
+172 2023-12-06 19:58:27.932907+00 admin b8655440-793f-4ce3-b5f4-92b5a5413d92 create 15 \N Contract9 \N {"mrc": "100", "nrc": "0", "name": "Contract9", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [], "created": "2023-12-06T19:58:27.910Z", "comments": "", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-12-06T19:58:27.910Z", "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": null, "internal_partie": "Nagra USA", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": "null", "external_partie_object_id": 1, "external_partie_object_type": 4} 116 \N 1
+173 2023-12-06 20:17:18.701852+00 admin d870c7e4-90df-4648-b4e2-c15725e1cff1 update 3 \N Contract3 {"mrc": "300.00", "nrc": "0.00", "name": "Contract3", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [1], "created": "2023-01-24T15:21:47.287Z", "comments": "", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-12-06T19:48:09.819Z", "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": 1, "internal_partie": "Nagravision SARL", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": "{\\"Account\\": \\"\\"}", "external_partie_object_id": 1, "external_partie_object_type": 4} {"mrc": "300.00", "nrc": "0.00", "name": "Contract3", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [1], "created": "2023-01-24T15:21:47.287Z", "comments": "", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-12-06T20:17:18.367Z", "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": 1, "internal_partie": "Nagravision SARL", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": {"account": "", "project": "", "cost center": ""}, "external_partie_object_id": 1, "external_partie_object_type": 4} 116 \N 1
+174 2023-12-13 20:18:51.767989+00 admin 16e0e7ee-cd51-43a3-99b0-fb83e85a7ab7 delete 10 \N Contract8 {"mrc": "1000.00", "nrc": "1000.00", "name": "Contract8", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [], "created": "2023-11-05T16:10:42.037Z", "comments": "", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-11-05T16:15:15.482Z", "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": 1, "internal_partie": "Nagravision SARL", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": {"Account": ""}, "external_partie_object_id": 1, "external_partie_object_type": 4} \N 116 \N 1
+175 2023-12-13 20:18:51.843176+00 admin 16e0e7ee-cd51-43a3-99b0-fb83e85a7ab7 delete 15 \N Contract9 {"mrc": "100.00", "nrc": "0.00", "name": "Contract9", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [], "created": "2023-12-06T19:58:27.910Z", "comments": "", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-12-06T19:58:27.910Z", "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": null, "internal_partie": "Nagra USA", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": "null", "external_partie_object_id": 1, "external_partie_object_type": 4} \N 116 \N 1
+176 2023-12-15 20:59:56.412129+00 admin b405a9b6-3e3f-4369-b4fd-8905d4974058 create 41 \N ContractAssignement object (41) \N {"tags": [], "created": "2023-12-15T20:59:56.382Z", "contract": 4, "object_id": 1, "content_type": 59, "last_updated": "2023-12-15T20:59:56.383Z", "custom_fields": {}} 119 \N 1
+177 2023-12-15 21:00:13.466014+00 admin bec539a0-753c-441a-8eb9-1ebab054ee85 delete 41 \N ContractAssignement object (41) {"tags": [], "created": "2023-12-15T20:59:56.382Z", "contract": 4, "object_id": 1, "content_type": 59, "last_updated": "2023-12-15T20:59:56.383Z", "custom_fields": {}} \N 119 \N 1
+178 2023-12-15 21:07:05.468286+00 admin 883d2859-4e81-4adb-ac3b-16b83c17e74b create 42 \N ContractAssignement object (42) \N {"tags": [], "created": "2023-12-15T21:07:05.451Z", "contract": 4, "object_id": 1, "content_type": 31, "last_updated": "2023-12-15T21:07:05.451Z", "custom_fields": {}} 119 \N 1
+179 2023-12-15 21:07:15.266351+00 admin 0d55df9c-1d0b-46c2-aec0-599b1c1df60e delete 42 \N ContractAssignement object (42) {"tags": [], "created": "2023-12-15T21:07:05.451Z", "contract": 4, "object_id": 1, "content_type": 31, "last_updated": "2023-12-15T21:07:05.451Z", "custom_fields": {}} \N 119 \N 1
+180 2023-12-15 21:14:51.733356+00 admin 7627eff0-1a7c-4828-a80a-6a6f4a918c10 create 1 \N 10.0.0.0/8 \N {"vrf": null, "role": null, "site": null, "tags": [], "vlan": null, "prefix": "10.0.0.0/8", "status": "active", "tenant": null, "created": "2023-12-15T21:14:51.682Z", "is_pool": false, "comments": "", "description": "", "last_updated": "2023-12-15T21:14:51.682Z", "custom_fields": {}, "mark_utilized": false} 42 \N 1
+181 2023-12-15 21:15:17.946698+00 admin a710ac1a-3e03-46f4-a252-5dff93475c56 create 2 \N 10.0.0.0/16 \N {"vrf": null, "role": null, "site": null, "tags": [], "vlan": null, "prefix": "10.0.0.0/16", "status": "active", "tenant": null, "created": "2023-12-15T21:15:17.916Z", "is_pool": false, "comments": "", "description": "", "last_updated": "2023-12-15T21:15:17.916Z", "custom_fields": {}, "mark_utilized": false} 42 \N 1
+182 2023-12-15 21:38:08.804757+00 admin 97172f61-1bcd-4c4e-ba3d-ed4ea9bb3629 create 16 \N Contract8 \N {"mrc": "100", "nrc": "0", "name": "Contract8", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [], "created": "2023-12-15T21:38:08.770Z", "comments": "", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "last_updated": "2023-12-15T21:38:08.770Z", "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": null, "internal_partie": "Nagra India", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": {"account": "account1"}, "external_partie_object_id": 1, "external_partie_object_type": 4} 116 \N 1
+183 2023-12-15 21:45:39.534836+00 admin c4c694f5-796f-479e-9c23-8cda52c581d6 create 43 \N ContractAssignement object (43) \N {"tags": [], "created": "2023-12-15T21:45:39.520Z", "contract": 16, "object_id": 1, "content_type": 31, "last_updated": "2023-12-15T21:45:39.520Z", "custom_fields": {}} 119 \N 1
+184 2024-02-06 20:03:14.154428+00 admin 553128ff-422d-4d2a-bf04-588b5e531f7d create 44 \N ContractAssignement object (44) \N {"tags": [], "created": "2024-02-06T20:03:14.135Z", "contract": 14, "object_id": 1, "content_type": 9, "custom_fields": {}} 119 \N 1
+185 2024-02-06 20:05:53.100357+00 admin 91664885-5b6e-4945-9a28-59fe70848928 create 17 \N Contract99 \N {"mrc": "10", "nrc": "10", "name": "Contract99", "tags": [], "parent": null, "status": "Active", "tenant": 1, "circuit": [], "created": "2024-02-06T20:05:53.071Z", "comments": "", "currency": "usd", "end_date": null, "documents": "", "start_date": null, "initial_term": 12, "renewal_term": 12, "custom_fields": {"test_field": null}, "external_partie": null, "internal_partie": "Nagravision SARL", "invoice_frequency": 1, "external_reference": null, "accounting_dimensions": {"Accoount": ""}, "external_partie_object_id": 1, "external_partie_object_type": 4} 116 \N 1
+187 2024-03-12 21:44:06.763496+00 admin a142327a-1a74-43cb-9996-50fb5dcd12e3 create 1 \N 2024-03-12 21:44 (Info) \N {"kind": "info", "tags": [], "created": "2024-03-12T21:44:06.735Z", "comments": "test", "created_by": 1, "custom_fields": {}, "assigned_object_id": 1, "assigned_object_type": 9} 35 \N 1
+\.
+
+
+--
+-- Data for Name: extras_savedfilter; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.extras_savedfilter (id, created, last_updated, name, slug, description, weight, enabled, shared, parameters, user_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: extras_savedfilter_content_types; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.extras_savedfilter_content_types (id, savedfilter_id, contenttype_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: extras_stagedchange; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.extras_stagedchange (id, action, object_id, data, branch_id, object_type_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: extras_tag; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.extras_tag (name, slug, created, last_updated, id, color, description) FROM stdin;
+\.
+
+
+--
+-- Data for Name: extras_tag_object_types; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.extras_tag_object_types (id, tag_id, contenttype_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: extras_taggeditem; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.extras_taggeditem (object_id, id, content_type_id, tag_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: extras_webhook; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.extras_webhook (id, name, payload_url, http_method, http_content_type, additional_headers, body_template, secret, ssl_verification, ca_file_path, created, last_updated, custom_field_data, description) FROM stdin;
+\.
+
+
+--
+-- Data for Name: ipam_aggregate; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.ipam_aggregate (created, last_updated, custom_field_data, id, prefix, date_added, description, rir_id, tenant_id, comments) FROM stdin;
+\.
+
+
+--
+-- Data for Name: ipam_asn; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.ipam_asn (created, last_updated, custom_field_data, id, asn, description, rir_id, tenant_id, comments) FROM stdin;
+\.
+
+
+--
+-- Data for Name: ipam_asnrange; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.ipam_asnrange (id, created, last_updated, custom_field_data, description, name, slug, start, "end", rir_id, tenant_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: ipam_fhrpgroup; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.ipam_fhrpgroup (created, last_updated, custom_field_data, id, group_id, protocol, auth_type, auth_key, description, name, comments) FROM stdin;
+\.
+
+
+--
+-- Data for Name: ipam_fhrpgroupassignment; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.ipam_fhrpgroupassignment (created, last_updated, id, interface_id, priority, group_id, interface_type_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: ipam_ipaddress; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.ipam_ipaddress (created, last_updated, custom_field_data, id, address, status, role, assigned_object_id, dns_name, description, assigned_object_type_id, nat_inside_id, tenant_id, vrf_id, comments) FROM stdin;
+\.
+
+
+--
+-- Data for Name: ipam_iprange; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.ipam_iprange (created, last_updated, custom_field_data, id, start_address, end_address, size, status, description, role_id, tenant_id, vrf_id, comments, mark_utilized) FROM stdin;
+\.
+
+
+--
+-- Data for Name: ipam_prefix; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.ipam_prefix (created, last_updated, custom_field_data, id, prefix, status, is_pool, description, role_id, site_id, tenant_id, vlan_id, vrf_id, _children, _depth, mark_utilized, comments) FROM stdin;
+2023-12-15 21:14:51.682498+00 2023-12-15 21:14:51.682528+00 {} 1 10.0.0.0/8 active f \N \N \N \N \N 1 0 f
+2023-12-15 21:15:17.91647+00 2023-12-15 21:15:17.916515+00 {} 2 10.0.0.0/16 active f \N \N \N \N \N 0 1 f
+\.
+
+
+--
+-- Data for Name: ipam_rir; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.ipam_rir (created, last_updated, custom_field_data, id, name, slug, is_private, description) FROM stdin;
+\.
+
+
+--
+-- Data for Name: ipam_role; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.ipam_role (created, last_updated, custom_field_data, id, name, slug, weight, description) FROM stdin;
+\.
+
+
+--
+-- Data for Name: ipam_routetarget; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.ipam_routetarget (created, last_updated, custom_field_data, id, name, description, tenant_id, comments) FROM stdin;
+\.
+
+
+--
+-- Data for Name: ipam_service; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.ipam_service (created, last_updated, custom_field_data, id, name, protocol, ports, description, device_id, virtual_machine_id, comments) FROM stdin;
+\.
+
+
+--
+-- Data for Name: ipam_service_ipaddresses; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.ipam_service_ipaddresses (id, service_id, ipaddress_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: ipam_servicetemplate; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.ipam_servicetemplate (created, last_updated, custom_field_data, id, protocol, ports, description, name, comments) FROM stdin;
+\.
+
+
+--
+-- Data for Name: ipam_vlan; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.ipam_vlan (created, last_updated, custom_field_data, id, vid, name, status, description, group_id, role_id, site_id, tenant_id, comments) FROM stdin;
+\.
+
+
+--
+-- Data for Name: ipam_vlangroup; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.ipam_vlangroup (created, last_updated, custom_field_data, id, name, slug, scope_id, description, scope_type_id, max_vid, min_vid) FROM stdin;
+\.
+
+
+--
+-- Data for Name: ipam_vrf; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.ipam_vrf (created, last_updated, custom_field_data, id, name, rd, enforce_unique, description, tenant_id, comments) FROM stdin;
+\.
+
+
+--
+-- Data for Name: ipam_vrf_export_targets; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.ipam_vrf_export_targets (id, vrf_id, routetarget_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: ipam_vrf_import_targets; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.ipam_vrf_import_targets (id, vrf_id, routetarget_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: netbox_attachments_netboxattachment; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.netbox_attachments_netboxattachment (id, created, last_updated, custom_field_data, object_id, file, name, content_type_id, comments, size, description) FROM stdin;
+2 2023-09-03 08:19:34.990553+00 2023-09-03 08:19:34.990673+00 {} 1 netbox-attachments/contract_1_att1_uriw3rL.pdf att1 116 attachement 1 241766
+3 2023-09-03 08:21:01.493658+00 2023-09-03 08:21:01.493689+00 {} 7 netbox-attachments/invoice_7_att2.pdf att2 118 880935
+\.
+
+
+--
+-- Data for Name: netbox_contract_contract; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.netbox_contract_contract (id, created, last_updated, custom_field_data, name, internal_partie, status, start_date, initial_term, renewal_term, mrc, nrc, invoice_frequency, comments, external_partie_id, tenant_id, currency, accounting_dimensions, external_reference, documents, end_date, parent_id, external_partie_object_id, external_partie_object_type_id) FROM stdin;
+13 2023-11-13 22:12:26.506864+00 2023-11-13 22:12:26.506895+00 {"test_field": null} Contract99 Nagravision SARL Active \N 12 12 100.00 100.00 1 \N 1 usd \N \N \N \N 1 4
+1 2023-01-22 21:07:09.414592+00 2023-11-13 22:32:47.251003+00 {"test_field": "test"} Contract1 Nagra USA Cancled \N 12 12 1250.00 0.00 1 1 1 usd "{}" reference1 https://docs.djangoproject.com/en/4.1/ref/models/fields/#urlfield 2023-01-30 2 3 117
+14 2023-11-13 22:33:53.274522+00 2023-11-13 22:33:53.274565+00 {"test_field": null} Contract10 Nagravision SARL Active \N 12 12 100.00 100.00 1 \N 1 usd "null" \N \N \N 1 4
+4 2023-02-01 18:24:36.275805+00 2023-12-06 19:57:45.269302+00 {"test_field": null} Contract5 Nagravision SARL Active 2023-02-01 12 12 750.00 0.00 1 1 1 usd "{\\"cc\\": \\"872\\", \\"account\\": \\"\\"}" \N \N \N 1 4
+3 2023-01-24 15:21:47.287965+00 2023-12-06 20:17:18.367141+00 {"test_field": null} Contract3 Nagravision SARL Active \N 12 12 300.00 0.00 1 1 1 usd {"account": "", "project": "", "cost center": ""} \N \N \N 1 4
+16 2023-12-15 21:38:08.770732+00 2023-12-15 21:38:08.770763+00 {"test_field": null} Contract8 Nagra India Active \N 12 12 100.00 0.00 1 \N 1 usd {"account": "account1"} \N \N \N 1 4
+17 2024-02-06 20:05:53.071223+00 2024-02-06 20:05:53.071279+00 {"test_field": null} Contract99 Nagravision SARL Active \N 12 12 10.00 10.00 1 \N 1 usd {"Accoount": ""} \N \N \N 1 4
+2 2023-01-24 14:48:30.718548+00 2023-12-02 10:58:08.695478+00 {"test_field": null} Contract2 Nagravision SARL Active \N 12 36 250.00 0.00 2 Additional reference : testreference2 2 1 usd {"Accoount": ""} \N \N \N 1 117
+\.
+
+
+--
+-- Data for Name: netbox_contract_contract_circuit; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.netbox_contract_contract_circuit (id, contract_id, circuit_id) FROM stdin;
+1 1 1
+2 2 1
+3 3 1
+4 4 2
+\.
+
+
+--
+-- Data for Name: netbox_contract_contractassignement; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.netbox_contract_contractassignement (id, created, last_updated, custom_field_data, object_id, content_type_id, contract_id) FROM stdin;
+30 2023-05-25 20:18:54.67341+00 2023-05-25 20:18:54.673449+00 {} 2 1 4
+36 2023-06-04 08:22:54.262836+00 2023-06-04 08:22:54.262869+00 {} 1 1 3
+38 2023-06-13 19:50:41.403663+00 2023-06-13 19:50:41.403689+00 {} 1 9 2
+43 2023-12-15 21:45:39.520531+00 2023-12-15 21:45:39.520558+00 {} 1 31 16
+44 2024-02-06 20:03:14.135256+00 2024-02-06 20:03:14.135284+00 {} 1 9 14
+\.
+
+
+--
+-- Data for Name: netbox_contract_invoice; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.netbox_contract_invoice (id, created, last_updated, custom_field_data, number, period_start, period_end, amount, currency, accounting_dimensions, date, comments, documents) FROM stdin;
+1 2023-01-22 21:07:37.084644+00 2023-01-22 21:07:37.084696+00 {} Invoice1 2023-01-01 2023-01-31 1250.00 usd {"account": "account1"} \N
+2 2023-01-22 21:07:57.80186+00 2023-01-24 14:48:53.32945+00 {} Invoice2 2023-02-01 2023-03-01 1250.00 usd {"account": "account1"} 2023-01-24
+3 2023-01-24 18:27:48.568432+00 2023-01-24 18:28:15.089816+00 {} invoice4 2023-03-02 2023-04-02 1250.00 usd {"account": "account1"} 2023-01-24
+4 2023-01-24 18:30:10.984039+00 2023-01-24 18:30:10.984071+00 {} invoice5 2022-12-01 2023-01-01 125.00 usd {"Account": ""} 2023-01-24 some comment
+5 2023-03-12 14:52:35.728743+00 2023-03-12 14:52:35.728814+00 {} invoice10 2023-04-03 2023-05-03 1250.00 usd {"account": "account1"} 2023-03-12
+6 2023-03-12 16:56:28.601122+00 2023-03-12 16:56:48.440035+00 {} invoice11 2023-05-04 2023-07-04 500.00 usd {"Accoount": ""} 2023-03-12
+7 2023-03-12 17:03:13.380891+00 2023-03-12 17:03:13.380939+00 {} invoice12 2023-07-05 2023-09-04 500.00 usd {"Accoount": ""} 2023-03-12
+8 2024-02-06 21:01:13.029602+00 2024-02-06 21:01:13.029631+00 {} invoice99 2024-02-06 2024-03-06 10.00 usd {"Accoount": ""} 2024-02-06
+\.
+
+
+--
+-- Data for Name: netbox_contract_invoice_contracts; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.netbox_contract_invoice_contracts (id, invoice_id, contract_id) FROM stdin;
+1 2 1
+2 1 1
+3 2 2
+4 3 1
+5 3 2
+6 4 1
+7 5 1
+8 5 2
+9 6 1
+10 6 2
+11 7 1
+12 7 2
+13 8 17
+\.
+
+
+--
+-- Data for Name: netbox_contract_serviceprovider; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.netbox_contract_serviceprovider (id, created, last_updated, custom_field_data, name, slug, portal_url, comments) FROM stdin;
+1 2023-01-22 21:06:16.052555+00 2023-01-22 21:06:16.052589+00 {} ServiceProvider1 serviceprovider1
+2 2023-02-19 14:52:27.452434+00 2023-06-25 08:49:15.324226+00 {} ServicerProvider2 serviceprovide2
+3 2023-06-25 08:49:33.731373+00 2023-06-25 08:49:33.731435+00 {} ServiceProvider3 serviceprovider3
+\.
+
+
+--
+-- Data for Name: social_auth_association; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.social_auth_association (id, server_url, handle, secret, issued, lifetime, assoc_type) FROM stdin;
+\.
+
+
+--
+-- Data for Name: social_auth_code; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.social_auth_code (id, email, code, verified, "timestamp") FROM stdin;
+\.
+
+
+--
+-- Data for Name: social_auth_nonce; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.social_auth_nonce (id, server_url, "timestamp", salt) FROM stdin;
+\.
+
+
+--
+-- Data for Name: social_auth_partial; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.social_auth_partial (id, token, next_step, backend, "timestamp", data) FROM stdin;
+\.
+
+
+--
+-- Data for Name: social_auth_usersocialauth; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.social_auth_usersocialauth (id, provider, uid, user_id, created, modified, extra_data) FROM stdin;
+\.
+
+
+--
+-- Data for Name: taggit_tag; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.taggit_tag (id, name, slug) FROM stdin;
+\.
+
+
+--
+-- Data for Name: taggit_taggeditem; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.taggit_taggeditem (id, object_id, content_type_id, tag_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: tenancy_contact; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.tenancy_contact (created, last_updated, custom_field_data, id, name, title, phone, email, address, comments, group_id, link, description) FROM stdin;
+2023-05-23 20:56:33.747539+00 2023-05-23 20:56:33.747565+00 {} 1 test \N
+2023-06-25 08:55:15.826152+00 2023-06-25 08:55:15.826229+00 {} 2 test2 \N
+\.
+
+
+--
+-- Data for Name: tenancy_contactassignment; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.tenancy_contactassignment (created, last_updated, id, object_id, priority, contact_id, content_type_id, role_id, custom_field_data) FROM stdin;
+2023-06-21 19:50:51.877136+00 2023-06-21 19:50:51.877164+00 1 2 1 117 1 {}
+2023-06-25 08:49:47.005417+00 2023-06-25 08:49:47.005491+00 2 3 1 117 1 {}
+\.
+
+
+--
+-- Data for Name: tenancy_contactgroup; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.tenancy_contactgroup (created, last_updated, custom_field_data, id, name, slug, description, lft, rght, tree_id, level, parent_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: tenancy_contactrole; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.tenancy_contactrole (created, last_updated, custom_field_data, id, name, slug, description) FROM stdin;
+2023-06-21 19:50:39.644974+00 2023-06-21 19:50:39.645015+00 {} 1 TestRole testrole
+\.
+
+
+--
+-- Data for Name: tenancy_tenant; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.tenancy_tenant (created, last_updated, custom_field_data, id, name, slug, description, comments, group_id) FROM stdin;
+2023-09-18 22:38:38.745804+00 2023-09-18 22:38:38.745841+00 {} 2 tenant2 tenant2 \N
+2023-06-18 15:38:06.82385+00 2023-09-18 22:39:03.013844+00 {} 1 Tenant1 tenant1 1
+\.
+
+
+--
+-- Data for Name: tenancy_tenantgroup; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.tenancy_tenantgroup (created, last_updated, custom_field_data, id, name, slug, description, lft, rght, tree_id, level, parent_id) FROM stdin;
+2023-09-18 22:38:18.475374+00 2023-09-18 22:38:18.47543+00 {} 1 tenantgoupe1 tenantgoupe1 1 2 1 0 \N
+\.
+
+
+--
+-- Data for Name: users_objectpermission; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.users_objectpermission (id, name, description, enabled, actions, constraints) FROM stdin;
+1 view_contract t {view} \N
+2 add_contract t {view,add,change,delete} \N
+3 view_circuit t {view} \N
+4 add_contractassignement t {add} \N
+5 view_contractassignement t {view} \N
+6 add_journal_entry t {view,add,change,delete} \N
+\.
+
+
+--
+-- Data for Name: users_objectpermission_groups; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.users_objectpermission_groups (id, objectpermission_id, group_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: users_objectpermission_object_types; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.users_objectpermission_object_types (id, objectpermission_id, contenttype_id) FROM stdin;
+1 1 116
+2 2 116
+3 3 1
+4 4 119
+5 5 119
+6 6 35
+\.
+
+
+--
+-- Data for Name: users_objectpermission_users; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.users_objectpermission_users (id, objectpermission_id, user_id) FROM stdin;
+1 1 3
+2 2 4
+3 3 3
+4 3 4
+5 4 4
+6 6 1
+\.
+
+
+--
+-- Data for Name: users_token; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.users_token (id, created, expires, key, write_enabled, description, user_id, allowed_ips, last_used) FROM stdin;
+\.
+
+
+--
+-- Data for Name: users_userconfig; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.users_userconfig (id, data, user_id) FROM stdin;
+3 {} 3
+4 {} 4
+1 {"tables": {"ContractListTable": {"columns": ["name", "status", "parent", "external_partie_object_type", "external_partie_object"]}, "ServiceProviderListTable": {"columns": ["id", "name", "portal_url"]}}} 1
+\.
+
+
+--
+-- Data for Name: virtualization_cluster; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.virtualization_cluster (created, last_updated, custom_field_data, id, name, comments, group_id, site_id, tenant_id, type_id, status, description) FROM stdin;
+2023-09-03 10:57:22.267732+00 2023-09-03 10:57:22.267779+00 {} 1 cluster1 \N \N \N 1 active
+\.
+
+
+--
+-- Data for Name: virtualization_clustergroup; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.virtualization_clustergroup (created, last_updated, custom_field_data, id, name, slug, description) FROM stdin;
+\.
+
+
+--
+-- Data for Name: virtualization_clustertype; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.virtualization_clustertype (created, last_updated, custom_field_data, id, name, slug, description) FROM stdin;
+2023-09-03 10:57:08.748689+00 2023-09-03 10:57:08.748762+00 {} 1 cluster_type_1 cluster_type_1
+\.
+
+
+--
+-- Data for Name: virtualization_virtualdisk; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.virtualization_virtualdisk (id, created, last_updated, custom_field_data, name, _name, description, size, virtual_machine_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: virtualization_virtualmachine; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.virtualization_virtualmachine (created, last_updated, custom_field_data, id, local_context_data, name, status, vcpus, memory, disk, comments, cluster_id, platform_id, primary_ip4_id, primary_ip6_id, role_id, tenant_id, _name, site_id, device_id, description, interface_count, config_template_id, virtual_disk_count) FROM stdin;
+2023-09-03 10:57:49.300409+00 2023-09-03 10:57:49.300443+00 {} 1 \N test1 active \N \N \N 1 \N \N \N \N \N test00000001 \N \N 0 \N 0
+\.
+
+
+--
+-- Data for Name: virtualization_vminterface; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.virtualization_vminterface (created, last_updated, custom_field_data, id, enabled, mac_address, mtu, mode, name, _name, description, parent_id, untagged_vlan_id, virtual_machine_id, bridge_id, vrf_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: virtualization_vminterface_tagged_vlans; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.virtualization_vminterface_tagged_vlans (id, vminterface_id, vlan_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: vpn_ikepolicy; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.vpn_ikepolicy (id, created, last_updated, custom_field_data, description, comments, name, version, mode, preshared_key) FROM stdin;
+\.
+
+
+--
+-- Data for Name: vpn_ikepolicy_proposals; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.vpn_ikepolicy_proposals (id, ikepolicy_id, ikeproposal_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: vpn_ikeproposal; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.vpn_ikeproposal (id, created, last_updated, custom_field_data, description, comments, name, authentication_method, encryption_algorithm, authentication_algorithm, "group", sa_lifetime) FROM stdin;
+\.
+
+
+--
+-- Data for Name: vpn_ipsecpolicy; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.vpn_ipsecpolicy (id, created, last_updated, custom_field_data, description, comments, name, pfs_group) FROM stdin;
+\.
+
+
+--
+-- Data for Name: vpn_ipsecpolicy_proposals; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.vpn_ipsecpolicy_proposals (id, ipsecpolicy_id, ipsecproposal_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: vpn_ipsecprofile; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.vpn_ipsecprofile (id, created, last_updated, custom_field_data, description, comments, name, mode, ike_policy_id, ipsec_policy_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: vpn_ipsecproposal; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.vpn_ipsecproposal (id, created, last_updated, custom_field_data, description, comments, name, encryption_algorithm, authentication_algorithm, sa_lifetime_seconds, sa_lifetime_data) FROM stdin;
+\.
+
+
+--
+-- Data for Name: vpn_l2vpn; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.vpn_l2vpn (id, created, last_updated, custom_field_data, name, slug, type, identifier, description, tenant_id, comments) FROM stdin;
+\.
+
+
+--
+-- Data for Name: vpn_l2vpn_export_targets; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.vpn_l2vpn_export_targets (id, l2vpn_id, routetarget_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: vpn_l2vpn_import_targets; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.vpn_l2vpn_import_targets (id, l2vpn_id, routetarget_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: vpn_l2vpntermination; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.vpn_l2vpntermination (id, created, last_updated, custom_field_data, assigned_object_id, assigned_object_type_id, l2vpn_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: vpn_tunnel; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.vpn_tunnel (id, created, last_updated, custom_field_data, description, comments, name, status, group_id, encapsulation, tunnel_id, ipsec_profile_id, tenant_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: vpn_tunnelgroup; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.vpn_tunnelgroup (id, created, last_updated, custom_field_data, name, slug, description) FROM stdin;
+\.
+
+
+--
+-- Data for Name: vpn_tunneltermination; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.vpn_tunneltermination (id, created, last_updated, custom_field_data, role, termination_id, termination_type_id, outside_ip_id, tunnel_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: wireless_wirelesslan; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.wireless_wirelesslan (created, last_updated, custom_field_data, id, ssid, group_id, description, auth_cipher, auth_psk, auth_type, vlan_id, tenant_id, comments, status) FROM stdin;
+\.
+
+
+--
+-- Data for Name: wireless_wirelesslangroup; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.wireless_wirelesslangroup (created, last_updated, custom_field_data, id, name, slug, description, lft, rght, tree_id, level, parent_id) FROM stdin;
+\.
+
+
+--
+-- Data for Name: wireless_wirelesslink; Type: TABLE DATA; Schema: public; Owner: netbox
+--
+
+COPY public.wireless_wirelesslink (created, last_updated, custom_field_data, id, ssid, status, description, auth_cipher, auth_psk, auth_type, _interface_a_device_id, _interface_b_device_id, interface_a_id, interface_b_id, tenant_id, comments) FROM stdin;
+\.
+
+
+--
+-- Name: auth_group_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.auth_group_id_seq', 1, false);
+
+
+--
+-- Name: auth_group_permissions_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.auth_group_permissions_id_seq', 1, false);
+
+
+--
+-- Name: auth_permission_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.auth_permission_id_seq', 585, true);
+
+
+--
+-- Name: auth_user_groups_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.auth_user_groups_id_seq', 1, false);
+
+
+--
+-- Name: auth_user_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.auth_user_id_seq', 4, true);
+
+
+--
+-- Name: auth_user_user_permissions_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.auth_user_user_permissions_id_seq', 1, false);
+
+
+--
+-- Name: circuits_circuit_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.circuits_circuit_id_seq', 2, true);
+
+
+--
+-- Name: circuits_circuittermination_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.circuits_circuittermination_id_seq', 1, false);
+
+
+--
+-- Name: circuits_circuittype_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.circuits_circuittype_id_seq', 1, true);
+
+
+--
+-- Name: circuits_provider_asns_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.circuits_provider_asns_id_seq', 1, false);
+
+
+--
+-- Name: circuits_provider_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.circuits_provider_id_seq', 1, true);
+
+
+--
+-- Name: circuits_provideraccount_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.circuits_provideraccount_id_seq', 1, false);
+
+
+--
+-- Name: circuits_providernetwork_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.circuits_providernetwork_id_seq', 1, false);
+
+
+--
+-- Name: core_autosyncrecord_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.core_autosyncrecord_id_seq', 1, false);
+
+
+--
+-- Name: core_datafile_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.core_datafile_id_seq', 1, false);
+
+
+--
+-- Name: core_datasource_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.core_datasource_id_seq', 1, false);
+
+
+--
+-- Name: core_job_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.core_job_id_seq', 1, false);
+
+
+--
+-- Name: core_managedfile_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.core_managedfile_id_seq', 1, false);
+
+
+--
+-- Name: dcim_cable_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.dcim_cable_id_seq', 1, false);
+
+
+--
+-- Name: dcim_cablepath_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.dcim_cablepath_id_seq', 1, false);
+
+
+--
+-- Name: dcim_cabletermination_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.dcim_cabletermination_id_seq', 1, false);
+
+
+--
+-- Name: dcim_consoleport_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.dcim_consoleport_id_seq', 1, false);
+
+
+--
+-- Name: dcim_consoleporttemplate_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.dcim_consoleporttemplate_id_seq', 1, false);
+
+
+--
+-- Name: dcim_consoleserverport_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.dcim_consoleserverport_id_seq', 1, false);
+
+
+--
+-- Name: dcim_consoleserverporttemplate_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.dcim_consoleserverporttemplate_id_seq', 1, false);
+
+
+--
+-- Name: dcim_device_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.dcim_device_id_seq', 1, true);
+
+
+--
+-- Name: dcim_devicebay_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.dcim_devicebay_id_seq', 1, false);
+
+
+--
+-- Name: dcim_devicebaytemplate_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.dcim_devicebaytemplate_id_seq', 1, false);
+
+
+--
+-- Name: dcim_devicerole_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.dcim_devicerole_id_seq', 1, true);
+
+
+--
+-- Name: dcim_devicetype_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.dcim_devicetype_id_seq', 1, true);
+
+
+--
+-- Name: dcim_frontport_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.dcim_frontport_id_seq', 1, false);
+
+
+--
+-- Name: dcim_frontporttemplate_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.dcim_frontporttemplate_id_seq', 1, false);
+
+
+--
+-- Name: dcim_interface_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.dcim_interface_id_seq', 1, false);
+
+
+--
+-- Name: dcim_interface_tagged_vlans_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.dcim_interface_tagged_vlans_id_seq', 1, false);
+
+
+--
+-- Name: dcim_interface_vdcs_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.dcim_interface_vdcs_id_seq', 1, false);
+
+
+--
+-- Name: dcim_interface_wireless_lans_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.dcim_interface_wireless_lans_id_seq', 1, false);
+
+
+--
+-- Name: dcim_interfacetemplate_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.dcim_interfacetemplate_id_seq', 1, false);
+
+
+--
+-- Name: dcim_inventoryitem_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.dcim_inventoryitem_id_seq', 1, false);
+
+
+--
+-- Name: dcim_inventoryitemrole_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.dcim_inventoryitemrole_id_seq', 1, false);
+
+
+--
+-- Name: dcim_inventoryitemtemplate_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.dcim_inventoryitemtemplate_id_seq', 1, false);
+
+
+--
+-- Name: dcim_location_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.dcim_location_id_seq', 1, false);
+
+
+--
+-- Name: dcim_manufacturer_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.dcim_manufacturer_id_seq', 1, true);
+
+
+--
+-- Name: dcim_module_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.dcim_module_id_seq', 1, false);
+
+
+--
+-- Name: dcim_modulebay_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.dcim_modulebay_id_seq', 1, false);
+
+
+--
+-- Name: dcim_modulebaytemplate_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.dcim_modulebaytemplate_id_seq', 1, false);
+
+
+--
+-- Name: dcim_moduletype_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.dcim_moduletype_id_seq', 1, false);
+
+
+--
+-- Name: dcim_platform_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.dcim_platform_id_seq', 1, false);
+
+
+--
+-- Name: dcim_powerfeed_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.dcim_powerfeed_id_seq', 1, false);
+
+
+--
+-- Name: dcim_poweroutlet_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.dcim_poweroutlet_id_seq', 1, false);
+
+
+--
+-- Name: dcim_poweroutlettemplate_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.dcim_poweroutlettemplate_id_seq', 1, false);
+
+
+--
+-- Name: dcim_powerpanel_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.dcim_powerpanel_id_seq', 1, false);
+
+
+--
+-- Name: dcim_powerport_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.dcim_powerport_id_seq', 1, false);
+
+
+--
+-- Name: dcim_powerporttemplate_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.dcim_powerporttemplate_id_seq', 1, false);
+
+
+--
+-- Name: dcim_rack_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.dcim_rack_id_seq', 1, false);
+
+
+--
+-- Name: dcim_rackreservation_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.dcim_rackreservation_id_seq', 1, false);
+
+
+--
+-- Name: dcim_rackrole_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.dcim_rackrole_id_seq', 1, false);
+
+
+--
+-- Name: dcim_rearport_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.dcim_rearport_id_seq', 1, false);
+
+
+--
+-- Name: dcim_rearporttemplate_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.dcim_rearporttemplate_id_seq', 1, false);
+
+
+--
+-- Name: dcim_region_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.dcim_region_id_seq', 1, false);
+
+
+--
+-- Name: dcim_site_asns_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.dcim_site_asns_id_seq', 1, false);
+
+
+--
+-- Name: dcim_site_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.dcim_site_id_seq', 1, true);
+
+
+--
+-- Name: dcim_sitegroup_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.dcim_sitegroup_id_seq', 1, false);
+
+
+--
+-- Name: dcim_virtualchassis_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.dcim_virtualchassis_id_seq', 1, false);
+
+
+--
+-- Name: dcim_virtualdevicecontext_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.dcim_virtualdevicecontext_id_seq', 1, false);
+
+
+--
+-- Name: django_admin_log_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.django_admin_log_id_seq', 12, true);
+
+
+--
+-- Name: django_content_type_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.django_content_type_id_seq', 150, true);
+
+
+--
+-- Name: django_migrations_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.django_migrations_id_seq', 601, true);
+
+
+--
+-- Name: extras_bookmark_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.extras_bookmark_id_seq', 1, false);
+
+
+--
+-- Name: extras_branch_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.extras_branch_id_seq', 1, false);
+
+
+--
+-- Name: extras_configcontext_cluster_groups_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.extras_configcontext_cluster_groups_id_seq', 1, false);
+
+
+--
+-- Name: extras_configcontext_cluster_types_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.extras_configcontext_cluster_types_id_seq', 1, false);
+
+
+--
+-- Name: extras_configcontext_clusters_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.extras_configcontext_clusters_id_seq', 1, false);
+
+
+--
+-- Name: extras_configcontext_device_types_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.extras_configcontext_device_types_id_seq', 1, false);
+
+
+--
+-- Name: extras_configcontext_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.extras_configcontext_id_seq', 1, false);
+
+
+--
+-- Name: extras_configcontext_locations_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.extras_configcontext_locations_id_seq', 1, false);
+
+
+--
+-- Name: extras_configcontext_platforms_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.extras_configcontext_platforms_id_seq', 1, false);
+
+
+--
+-- Name: extras_configcontext_regions_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.extras_configcontext_regions_id_seq', 1, false);
+
+
+--
+-- Name: extras_configcontext_roles_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.extras_configcontext_roles_id_seq', 1, false);
+
+
+--
+-- Name: extras_configcontext_site_groups_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.extras_configcontext_site_groups_id_seq', 1, false);
+
+
+--
+-- Name: extras_configcontext_sites_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.extras_configcontext_sites_id_seq', 1, false);
+
+
+--
+-- Name: extras_configcontext_tags_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.extras_configcontext_tags_id_seq', 1, false);
+
+
+--
+-- Name: extras_configcontext_tenant_groups_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.extras_configcontext_tenant_groups_id_seq', 1, false);
+
+
+--
+-- Name: extras_configcontext_tenants_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.extras_configcontext_tenants_id_seq', 1, false);
+
+
+--
+-- Name: extras_configrevision_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.extras_configrevision_id_seq', 1, false);
+
+
+--
+-- Name: extras_configtemplate_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.extras_configtemplate_id_seq', 1, false);
+
+
+--
+-- Name: extras_customfield_content_types_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.extras_customfield_content_types_id_seq', 1, true);
+
+
+--
+-- Name: extras_customfield_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.extras_customfield_id_seq', 1, true);
+
+
+--
+-- Name: extras_customfieldchoiceset_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.extras_customfieldchoiceset_id_seq', 1, false);
+
+
+--
+-- Name: extras_customlink_content_types_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.extras_customlink_content_types_id_seq', 1, false);
+
+
+--
+-- Name: extras_customlink_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.extras_customlink_id_seq', 1, false);
+
+
+--
+-- Name: extras_dashboard_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.extras_dashboard_id_seq', 3, true);
+
+
+--
+-- Name: extras_eventrule_content_types_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.extras_eventrule_content_types_id_seq', 1, false);
+
+
+--
+-- Name: extras_eventrule_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.extras_eventrule_id_seq', 1, false);
+
+
+--
+-- Name: extras_exporttemplate_content_types_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.extras_exporttemplate_content_types_id_seq', 1, false);
+
+
+--
+-- Name: extras_exporttemplate_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.extras_exporttemplate_id_seq', 1, false);
+
+
+--
+-- Name: extras_imageattachment_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.extras_imageattachment_id_seq', 1, false);
+
+
+--
+-- Name: extras_journalentry_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.extras_journalentry_id_seq', 2, true);
+
+
+--
+-- Name: extras_objectchange_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.extras_objectchange_id_seq', 188, true);
+
+
+--
+-- Name: extras_savedfilter_content_types_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.extras_savedfilter_content_types_id_seq', 1, false);
+
+
+--
+-- Name: extras_savedfilter_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.extras_savedfilter_id_seq', 1, false);
+
+
+--
+-- Name: extras_stagedchange_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.extras_stagedchange_id_seq', 1, false);
+
+
+--
+-- Name: extras_tag_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.extras_tag_id_seq', 1, false);
+
+
+--
+-- Name: extras_tag_object_types_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.extras_tag_object_types_id_seq', 1, false);
+
+
+--
+-- Name: extras_taggeditem_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.extras_taggeditem_id_seq', 1, false);
+
+
+--
+-- Name: extras_webhook_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.extras_webhook_id_seq', 1, false);
+
+
+--
+-- Name: ipam_aggregate_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.ipam_aggregate_id_seq', 1, false);
+
+
+--
+-- Name: ipam_asn_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.ipam_asn_id_seq', 1, false);
+
+
+--
+-- Name: ipam_asnrange_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.ipam_asnrange_id_seq', 1, false);
+
+
+--
+-- Name: ipam_fhrpgroup_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.ipam_fhrpgroup_id_seq', 1, false);
+
+
+--
+-- Name: ipam_fhrpgroupassignment_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.ipam_fhrpgroupassignment_id_seq', 1, false);
+
+
+--
+-- Name: ipam_ipaddress_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.ipam_ipaddress_id_seq', 1, false);
+
+
+--
+-- Name: ipam_iprange_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.ipam_iprange_id_seq', 1, false);
+
+
+--
+-- Name: ipam_l2vpn_export_targets_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.ipam_l2vpn_export_targets_id_seq', 1, false);
+
+
+--
+-- Name: ipam_l2vpn_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.ipam_l2vpn_id_seq', 1, false);
+
+
+--
+-- Name: ipam_l2vpn_import_targets_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.ipam_l2vpn_import_targets_id_seq', 1, false);
+
+
+--
+-- Name: ipam_l2vpntermination_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.ipam_l2vpntermination_id_seq', 1, false);
+
+
+--
+-- Name: ipam_prefix_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.ipam_prefix_id_seq', 2, true);
+
+
+--
+-- Name: ipam_rir_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.ipam_rir_id_seq', 1, false);
+
+
+--
+-- Name: ipam_role_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.ipam_role_id_seq', 1, false);
+
+
+--
+-- Name: ipam_routetarget_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.ipam_routetarget_id_seq', 1, false);
+
+
+--
+-- Name: ipam_service_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.ipam_service_id_seq', 1, false);
+
+
+--
+-- Name: ipam_service_ipaddresses_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.ipam_service_ipaddresses_id_seq', 1, false);
+
+
+--
+-- Name: ipam_servicetemplate_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.ipam_servicetemplate_id_seq', 1, false);
+
+
+--
+-- Name: ipam_vlan_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.ipam_vlan_id_seq', 1, false);
+
+
+--
+-- Name: ipam_vlangroup_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.ipam_vlangroup_id_seq', 1, false);
+
+
+--
+-- Name: ipam_vrf_export_targets_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.ipam_vrf_export_targets_id_seq', 1, false);
+
+
+--
+-- Name: ipam_vrf_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.ipam_vrf_id_seq', 1, false);
+
+
+--
+-- Name: ipam_vrf_import_targets_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.ipam_vrf_import_targets_id_seq', 1, false);
+
+
+--
+-- Name: netbox_attachments_netboxattachment_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.netbox_attachments_netboxattachment_id_seq', 3, true);
+
+
+--
+-- Name: netbox_contract_contract_circuit_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.netbox_contract_contract_circuit_id_seq', 4, true);
+
+
+--
+-- Name: netbox_contract_contract_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.netbox_contract_contract_id_seq', 17, true);
+
+
+--
+-- Name: netbox_contract_contractassignement_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.netbox_contract_contractassignement_id_seq', 44, true);
+
+
+--
+-- Name: netbox_contract_invoice_contracts_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.netbox_contract_invoice_contracts_id_seq', 13, true);
+
+
+--
+-- Name: netbox_contract_invoice_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.netbox_contract_invoice_id_seq', 8, true);
+
+
+--
+-- Name: netbox_contract_serviceprovider_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.netbox_contract_serviceprovider_id_seq', 3, true);
+
+
+--
+-- Name: social_auth_association_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.social_auth_association_id_seq', 1, false);
+
+
+--
+-- Name: social_auth_code_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.social_auth_code_id_seq', 1, false);
+
+
+--
+-- Name: social_auth_nonce_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.social_auth_nonce_id_seq', 1, false);
+
+
+--
+-- Name: social_auth_partial_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.social_auth_partial_id_seq', 1, false);
+
+
+--
+-- Name: social_auth_usersocialauth_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.social_auth_usersocialauth_id_seq', 1, false);
+
+
+--
+-- Name: taggit_tag_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.taggit_tag_id_seq', 1, false);
+
+
+--
+-- Name: taggit_taggeditem_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.taggit_taggeditem_id_seq', 1, false);
+
+
+--
+-- Name: tenancy_contact_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.tenancy_contact_id_seq', 2, true);
+
+
+--
+-- Name: tenancy_contactassignment_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.tenancy_contactassignment_id_seq', 2, true);
+
+
+--
+-- Name: tenancy_contactgroup_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.tenancy_contactgroup_id_seq', 1, false);
+
+
+--
+-- Name: tenancy_contactrole_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.tenancy_contactrole_id_seq', 1, true);
+
+
+--
+-- Name: tenancy_tenant_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.tenancy_tenant_id_seq', 2, true);
+
+
+--
+-- Name: tenancy_tenantgroup_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.tenancy_tenantgroup_id_seq', 1, true);
+
+
+--
+-- Name: users_objectpermission_groups_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.users_objectpermission_groups_id_seq', 1, false);
+
+
+--
+-- Name: users_objectpermission_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.users_objectpermission_id_seq', 6, true);
+
+
+--
+-- Name: users_objectpermission_object_types_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.users_objectpermission_object_types_id_seq', 6, true);
+
+
+--
+-- Name: users_objectpermission_users_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.users_objectpermission_users_id_seq', 6, true);
+
+
+--
+-- Name: users_token_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.users_token_id_seq', 1, false);
+
+
+--
+-- Name: users_userconfig_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.users_userconfig_id_seq', 4, true);
+
+
+--
+-- Name: virtualization_cluster_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.virtualization_cluster_id_seq', 1, true);
+
+
+--
+-- Name: virtualization_clustergroup_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.virtualization_clustergroup_id_seq', 1, false);
+
+
+--
+-- Name: virtualization_clustertype_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.virtualization_clustertype_id_seq', 1, true);
+
+
+--
+-- Name: virtualization_virtualdisk_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.virtualization_virtualdisk_id_seq', 1, false);
+
+
+--
+-- Name: virtualization_virtualmachine_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.virtualization_virtualmachine_id_seq', 1, true);
+
+
+--
+-- Name: virtualization_vminterface_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.virtualization_vminterface_id_seq', 1, false);
+
+
+--
+-- Name: virtualization_vminterface_tagged_vlans_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.virtualization_vminterface_tagged_vlans_id_seq', 1, false);
+
+
+--
+-- Name: vpn_ikepolicy_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.vpn_ikepolicy_id_seq', 1, false);
+
+
+--
+-- Name: vpn_ikepolicy_proposals_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.vpn_ikepolicy_proposals_id_seq', 1, false);
+
+
+--
+-- Name: vpn_ikeproposal_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.vpn_ikeproposal_id_seq', 1, false);
+
+
+--
+-- Name: vpn_ipsecpolicy_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.vpn_ipsecpolicy_id_seq', 1, false);
+
+
+--
+-- Name: vpn_ipsecpolicy_proposals_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.vpn_ipsecpolicy_proposals_id_seq', 1, false);
+
+
+--
+-- Name: vpn_ipsecprofile_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.vpn_ipsecprofile_id_seq', 1, false);
+
+
+--
+-- Name: vpn_ipsecproposal_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.vpn_ipsecproposal_id_seq', 1, false);
+
+
+--
+-- Name: vpn_tunnel_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.vpn_tunnel_id_seq', 1, false);
+
+
+--
+-- Name: vpn_tunnelgroup_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.vpn_tunnelgroup_id_seq', 1, false);
+
+
+--
+-- Name: vpn_tunneltermination_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.vpn_tunneltermination_id_seq', 1, false);
+
+
+--
+-- Name: wireless_wirelesslan_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.wireless_wirelesslan_id_seq', 1, false);
+
+
+--
+-- Name: wireless_wirelesslangroup_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.wireless_wirelesslangroup_id_seq', 1, false);
+
+
+--
+-- Name: wireless_wirelesslink_id_seq; Type: SEQUENCE SET; Schema: public; Owner: netbox
+--
+
+SELECT pg_catalog.setval('public.wireless_wirelesslink_id_seq', 1, false);
+
+
+--
+-- Name: auth_group auth_group_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.auth_group
+ ADD CONSTRAINT auth_group_name_key UNIQUE (name);
+
+
+--
+-- Name: auth_group_permissions auth_group_permissions_group_id_permission_id_0cd325b0_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.auth_group_permissions
+ ADD CONSTRAINT auth_group_permissions_group_id_permission_id_0cd325b0_uniq UNIQUE (group_id, permission_id);
+
+
+--
+-- Name: auth_group_permissions auth_group_permissions_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.auth_group_permissions
+ ADD CONSTRAINT auth_group_permissions_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: auth_group auth_group_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.auth_group
+ ADD CONSTRAINT auth_group_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: auth_permission auth_permission_content_type_id_codename_01ab375a_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.auth_permission
+ ADD CONSTRAINT auth_permission_content_type_id_codename_01ab375a_uniq UNIQUE (content_type_id, codename);
+
+
+--
+-- Name: auth_permission auth_permission_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.auth_permission
+ ADD CONSTRAINT auth_permission_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: auth_user_groups auth_user_groups_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.auth_user_groups
+ ADD CONSTRAINT auth_user_groups_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: auth_user_groups auth_user_groups_user_id_group_id_94350c0c_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.auth_user_groups
+ ADD CONSTRAINT auth_user_groups_user_id_group_id_94350c0c_uniq UNIQUE (user_id, group_id);
+
+
+--
+-- Name: auth_user auth_user_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.auth_user
+ ADD CONSTRAINT auth_user_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: auth_user_user_permissions auth_user_user_permissions_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.auth_user_user_permissions
+ ADD CONSTRAINT auth_user_user_permissions_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: auth_user_user_permissions auth_user_user_permissions_user_id_permission_id_14a6b632_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.auth_user_user_permissions
+ ADD CONSTRAINT auth_user_user_permissions_user_id_permission_id_14a6b632_uniq UNIQUE (user_id, permission_id);
+
+
+--
+-- Name: auth_user auth_user_username_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.auth_user
+ ADD CONSTRAINT auth_user_username_key UNIQUE (username);
+
+
+--
+-- Name: circuits_circuit circuits_circuit_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.circuits_circuit
+ ADD CONSTRAINT circuits_circuit_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: circuits_circuit circuits_circuit_unique_provider_cid; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.circuits_circuit
+ ADD CONSTRAINT circuits_circuit_unique_provider_cid UNIQUE (provider_id, cid);
+
+
+--
+-- Name: circuits_circuit circuits_circuit_unique_provideraccount_cid; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.circuits_circuit
+ ADD CONSTRAINT circuits_circuit_unique_provideraccount_cid UNIQUE (provider_account_id, cid);
+
+
+--
+-- Name: circuits_circuittermination circuits_circuittermination_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.circuits_circuittermination
+ ADD CONSTRAINT circuits_circuittermination_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: circuits_circuittermination circuits_circuittermination_unique_circuit_term_side; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.circuits_circuittermination
+ ADD CONSTRAINT circuits_circuittermination_unique_circuit_term_side UNIQUE (circuit_id, term_side);
+
+
+--
+-- Name: circuits_circuittype circuits_circuittype_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.circuits_circuittype
+ ADD CONSTRAINT circuits_circuittype_name_key UNIQUE (name);
+
+
+--
+-- Name: circuits_circuittype circuits_circuittype_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.circuits_circuittype
+ ADD CONSTRAINT circuits_circuittype_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: circuits_circuittype circuits_circuittype_slug_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.circuits_circuittype
+ ADD CONSTRAINT circuits_circuittype_slug_key UNIQUE (slug);
+
+
+--
+-- Name: circuits_provider_asns circuits_provider_asns_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.circuits_provider_asns
+ ADD CONSTRAINT circuits_provider_asns_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: circuits_provider_asns circuits_provider_asns_provider_id_asn_id_6e573798_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.circuits_provider_asns
+ ADD CONSTRAINT circuits_provider_asns_provider_id_asn_id_6e573798_uniq UNIQUE (provider_id, asn_id);
+
+
+--
+-- Name: circuits_provider circuits_provider_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.circuits_provider
+ ADD CONSTRAINT circuits_provider_name_key UNIQUE (name);
+
+
+--
+-- Name: circuits_provider circuits_provider_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.circuits_provider
+ ADD CONSTRAINT circuits_provider_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: circuits_provider circuits_provider_slug_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.circuits_provider
+ ADD CONSTRAINT circuits_provider_slug_key UNIQUE (slug);
+
+
+--
+-- Name: circuits_provideraccount circuits_provideraccount_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.circuits_provideraccount
+ ADD CONSTRAINT circuits_provideraccount_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: circuits_provideraccount circuits_provideraccount_unique_provider_account; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.circuits_provideraccount
+ ADD CONSTRAINT circuits_provideraccount_unique_provider_account UNIQUE (provider_id, account);
+
+
+--
+-- Name: circuits_providernetwork circuits_providernetwork_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.circuits_providernetwork
+ ADD CONSTRAINT circuits_providernetwork_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: circuits_providernetwork circuits_providernetwork_unique_provider_name; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.circuits_providernetwork
+ ADD CONSTRAINT circuits_providernetwork_unique_provider_name UNIQUE (provider_id, name);
+
+
+--
+-- Name: core_autosyncrecord core_autosyncrecord_object; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.core_autosyncrecord
+ ADD CONSTRAINT core_autosyncrecord_object UNIQUE (object_type_id, object_id);
+
+
+--
+-- Name: core_autosyncrecord core_autosyncrecord_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.core_autosyncrecord
+ ADD CONSTRAINT core_autosyncrecord_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: core_datafile core_datafile_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.core_datafile
+ ADD CONSTRAINT core_datafile_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: core_datafile core_datafile_unique_source_path; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.core_datafile
+ ADD CONSTRAINT core_datafile_unique_source_path UNIQUE (source_id, path);
+
+
+--
+-- Name: core_datasource core_datasource_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.core_datasource
+ ADD CONSTRAINT core_datasource_name_key UNIQUE (name);
+
+
+--
+-- Name: core_datasource core_datasource_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.core_datasource
+ ADD CONSTRAINT core_datasource_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: core_job core_job_job_id_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.core_job
+ ADD CONSTRAINT core_job_job_id_key UNIQUE (job_id);
+
+
+--
+-- Name: core_job core_job_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.core_job
+ ADD CONSTRAINT core_job_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: core_managedfile core_managedfile_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.core_managedfile
+ ADD CONSTRAINT core_managedfile_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: core_managedfile core_managedfile_unique_root_path; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.core_managedfile
+ ADD CONSTRAINT core_managedfile_unique_root_path UNIQUE (file_root, file_path);
+
+
+--
+-- Name: dcim_cable dcim_cable_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_cable
+ ADD CONSTRAINT dcim_cable_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: dcim_cablepath dcim_cablepath_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_cablepath
+ ADD CONSTRAINT dcim_cablepath_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: dcim_cabletermination dcim_cabletermination_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_cabletermination
+ ADD CONSTRAINT dcim_cabletermination_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: dcim_cabletermination dcim_cabletermination_unique_termination; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_cabletermination
+ ADD CONSTRAINT dcim_cabletermination_unique_termination UNIQUE (termination_type_id, termination_id);
+
+
+--
+-- Name: dcim_consoleport dcim_consoleport_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_consoleport
+ ADD CONSTRAINT dcim_consoleport_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: dcim_consoleport dcim_consoleport_unique_device_name; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_consoleport
+ ADD CONSTRAINT dcim_consoleport_unique_device_name UNIQUE (device_id, name);
+
+
+--
+-- Name: dcim_consoleporttemplate dcim_consoleporttemplate_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_consoleporttemplate
+ ADD CONSTRAINT dcim_consoleporttemplate_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: dcim_consoleporttemplate dcim_consoleporttemplate_unique_device_type_name; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_consoleporttemplate
+ ADD CONSTRAINT dcim_consoleporttemplate_unique_device_type_name UNIQUE (device_type_id, name);
+
+
+--
+-- Name: dcim_consoleporttemplate dcim_consoleporttemplate_unique_module_type_name; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_consoleporttemplate
+ ADD CONSTRAINT dcim_consoleporttemplate_unique_module_type_name UNIQUE (module_type_id, name);
+
+
+--
+-- Name: dcim_consoleserverport dcim_consoleserverport_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_consoleserverport
+ ADD CONSTRAINT dcim_consoleserverport_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: dcim_consoleserverport dcim_consoleserverport_unique_device_name; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_consoleserverport
+ ADD CONSTRAINT dcim_consoleserverport_unique_device_name UNIQUE (device_id, name);
+
+
+--
+-- Name: dcim_consoleserverporttemplate dcim_consoleserverporttemplate_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_consoleserverporttemplate
+ ADD CONSTRAINT dcim_consoleserverporttemplate_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: dcim_consoleserverporttemplate dcim_consoleserverporttemplate_unique_device_type_name; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_consoleserverporttemplate
+ ADD CONSTRAINT dcim_consoleserverporttemplate_unique_device_type_name UNIQUE (device_type_id, name);
+
+
+--
+-- Name: dcim_consoleserverporttemplate dcim_consoleserverporttemplate_unique_module_type_name; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_consoleserverporttemplate
+ ADD CONSTRAINT dcim_consoleserverporttemplate_unique_module_type_name UNIQUE (module_type_id, name);
+
+
+--
+-- Name: dcim_device dcim_device_asset_tag_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_device
+ ADD CONSTRAINT dcim_device_asset_tag_key UNIQUE (asset_tag);
+
+
+--
+-- Name: dcim_device dcim_device_oob_ip_id_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_device
+ ADD CONSTRAINT dcim_device_oob_ip_id_key UNIQUE (oob_ip_id);
+
+
+--
+-- Name: dcim_device dcim_device_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_device
+ ADD CONSTRAINT dcim_device_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: dcim_device dcim_device_primary_ip4_id_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_device
+ ADD CONSTRAINT dcim_device_primary_ip4_id_key UNIQUE (primary_ip4_id);
+
+
+--
+-- Name: dcim_device dcim_device_primary_ip6_id_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_device
+ ADD CONSTRAINT dcim_device_primary_ip6_id_key UNIQUE (primary_ip6_id);
+
+
+--
+-- Name: dcim_device dcim_device_unique_rack_position_face; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_device
+ ADD CONSTRAINT dcim_device_unique_rack_position_face UNIQUE (rack_id, "position", face);
+
+
+--
+-- Name: dcim_device dcim_device_unique_virtual_chassis_vc_position; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_device
+ ADD CONSTRAINT dcim_device_unique_virtual_chassis_vc_position UNIQUE (virtual_chassis_id, vc_position);
+
+
+--
+-- Name: dcim_devicebay dcim_devicebay_installed_device_id_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_devicebay
+ ADD CONSTRAINT dcim_devicebay_installed_device_id_key UNIQUE (installed_device_id);
+
+
+--
+-- Name: dcim_devicebay dcim_devicebay_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_devicebay
+ ADD CONSTRAINT dcim_devicebay_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: dcim_devicebay dcim_devicebay_unique_device_name; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_devicebay
+ ADD CONSTRAINT dcim_devicebay_unique_device_name UNIQUE (device_id, name);
+
+
+--
+-- Name: dcim_devicebaytemplate dcim_devicebaytemplate_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_devicebaytemplate
+ ADD CONSTRAINT dcim_devicebaytemplate_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: dcim_devicebaytemplate dcim_devicebaytemplate_unique_device_type_name; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_devicebaytemplate
+ ADD CONSTRAINT dcim_devicebaytemplate_unique_device_type_name UNIQUE (device_type_id, name);
+
+
+--
+-- Name: dcim_devicerole dcim_devicerole_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_devicerole
+ ADD CONSTRAINT dcim_devicerole_name_key UNIQUE (name);
+
+
+--
+-- Name: dcim_devicerole dcim_devicerole_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_devicerole
+ ADD CONSTRAINT dcim_devicerole_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: dcim_devicerole dcim_devicerole_slug_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_devicerole
+ ADD CONSTRAINT dcim_devicerole_slug_key UNIQUE (slug);
+
+
+--
+-- Name: dcim_devicetype dcim_devicetype_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_devicetype
+ ADD CONSTRAINT dcim_devicetype_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: dcim_devicetype dcim_devicetype_unique_manufacturer_model; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_devicetype
+ ADD CONSTRAINT dcim_devicetype_unique_manufacturer_model UNIQUE (manufacturer_id, model);
+
+
+--
+-- Name: dcim_devicetype dcim_devicetype_unique_manufacturer_slug; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_devicetype
+ ADD CONSTRAINT dcim_devicetype_unique_manufacturer_slug UNIQUE (manufacturer_id, slug);
+
+
+--
+-- Name: dcim_frontport dcim_frontport_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_frontport
+ ADD CONSTRAINT dcim_frontport_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: dcim_frontport dcim_frontport_unique_device_name; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_frontport
+ ADD CONSTRAINT dcim_frontport_unique_device_name UNIQUE (device_id, name);
+
+
+--
+-- Name: dcim_frontport dcim_frontport_unique_rear_port_position; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_frontport
+ ADD CONSTRAINT dcim_frontport_unique_rear_port_position UNIQUE (rear_port_id, rear_port_position);
+
+
+--
+-- Name: dcim_frontporttemplate dcim_frontporttemplate_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_frontporttemplate
+ ADD CONSTRAINT dcim_frontporttemplate_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: dcim_frontporttemplate dcim_frontporttemplate_unique_device_type_name; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_frontporttemplate
+ ADD CONSTRAINT dcim_frontporttemplate_unique_device_type_name UNIQUE (device_type_id, name);
+
+
+--
+-- Name: dcim_frontporttemplate dcim_frontporttemplate_unique_module_type_name; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_frontporttemplate
+ ADD CONSTRAINT dcim_frontporttemplate_unique_module_type_name UNIQUE (module_type_id, name);
+
+
+--
+-- Name: dcim_frontporttemplate dcim_frontporttemplate_unique_rear_port_position; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_frontporttemplate
+ ADD CONSTRAINT dcim_frontporttemplate_unique_rear_port_position UNIQUE (rear_port_id, rear_port_position);
+
+
+--
+-- Name: dcim_interface dcim_interface_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_interface
+ ADD CONSTRAINT dcim_interface_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: dcim_interface_tagged_vlans dcim_interface_tagged_vlans_interface_id_vlan_id_0d55c576_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_interface_tagged_vlans
+ ADD CONSTRAINT dcim_interface_tagged_vlans_interface_id_vlan_id_0d55c576_uniq UNIQUE (interface_id, vlan_id);
+
+
+--
+-- Name: dcim_interface_tagged_vlans dcim_interface_tagged_vlans_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_interface_tagged_vlans
+ ADD CONSTRAINT dcim_interface_tagged_vlans_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: dcim_interface dcim_interface_unique_device_name; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_interface
+ ADD CONSTRAINT dcim_interface_unique_device_name UNIQUE (device_id, name);
+
+
+--
+-- Name: dcim_interface_vdcs dcim_interface_vdcs_interface_id_virtualdevi_cca9c2a6_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_interface_vdcs
+ ADD CONSTRAINT dcim_interface_vdcs_interface_id_virtualdevi_cca9c2a6_uniq UNIQUE (interface_id, virtualdevicecontext_id);
+
+
+--
+-- Name: dcim_interface_vdcs dcim_interface_vdcs_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_interface_vdcs
+ ADD CONSTRAINT dcim_interface_vdcs_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: dcim_interface_wireless_lans dcim_interface_wireless__interface_id_wirelesslan_b52fb3d8_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_interface_wireless_lans
+ ADD CONSTRAINT dcim_interface_wireless__interface_id_wirelesslan_b52fb3d8_uniq UNIQUE (interface_id, wirelesslan_id);
+
+
+--
+-- Name: dcim_interface_wireless_lans dcim_interface_wireless_lans_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_interface_wireless_lans
+ ADD CONSTRAINT dcim_interface_wireless_lans_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: dcim_interfacetemplate dcim_interfacetemplate_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_interfacetemplate
+ ADD CONSTRAINT dcim_interfacetemplate_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: dcim_interfacetemplate dcim_interfacetemplate_unique_device_type_name; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_interfacetemplate
+ ADD CONSTRAINT dcim_interfacetemplate_unique_device_type_name UNIQUE (device_type_id, name);
+
+
+--
+-- Name: dcim_interfacetemplate dcim_interfacetemplate_unique_module_type_name; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_interfacetemplate
+ ADD CONSTRAINT dcim_interfacetemplate_unique_module_type_name UNIQUE (module_type_id, name);
+
+
+--
+-- Name: dcim_inventoryitem dcim_inventoryitem_asset_tag_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_inventoryitem
+ ADD CONSTRAINT dcim_inventoryitem_asset_tag_key UNIQUE (asset_tag);
+
+
+--
+-- Name: dcim_inventoryitem dcim_inventoryitem_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_inventoryitem
+ ADD CONSTRAINT dcim_inventoryitem_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: dcim_inventoryitem dcim_inventoryitem_unique_device_parent_name; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_inventoryitem
+ ADD CONSTRAINT dcim_inventoryitem_unique_device_parent_name UNIQUE (device_id, parent_id, name);
+
+
+--
+-- Name: dcim_inventoryitemrole dcim_inventoryitemrole_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_inventoryitemrole
+ ADD CONSTRAINT dcim_inventoryitemrole_name_key UNIQUE (name);
+
+
+--
+-- Name: dcim_inventoryitemrole dcim_inventoryitemrole_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_inventoryitemrole
+ ADD CONSTRAINT dcim_inventoryitemrole_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: dcim_inventoryitemrole dcim_inventoryitemrole_slug_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_inventoryitemrole
+ ADD CONSTRAINT dcim_inventoryitemrole_slug_key UNIQUE (slug);
+
+
+--
+-- Name: dcim_inventoryitemtemplate dcim_inventoryitemtemplate_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_inventoryitemtemplate
+ ADD CONSTRAINT dcim_inventoryitemtemplate_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: dcim_inventoryitemtemplate dcim_inventoryitemtemplate_unique_device_type_parent_name; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_inventoryitemtemplate
+ ADD CONSTRAINT dcim_inventoryitemtemplate_unique_device_type_parent_name UNIQUE (device_type_id, parent_id, name);
+
+
+--
+-- Name: dcim_location dcim_location_parent_name; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_location
+ ADD CONSTRAINT dcim_location_parent_name UNIQUE (site_id, parent_id, name);
+
+
+--
+-- Name: dcim_location dcim_location_parent_slug; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_location
+ ADD CONSTRAINT dcim_location_parent_slug UNIQUE (site_id, parent_id, slug);
+
+
+--
+-- Name: dcim_location dcim_location_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_location
+ ADD CONSTRAINT dcim_location_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: dcim_manufacturer dcim_manufacturer_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_manufacturer
+ ADD CONSTRAINT dcim_manufacturer_name_key UNIQUE (name);
+
+
+--
+-- Name: dcim_manufacturer dcim_manufacturer_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_manufacturer
+ ADD CONSTRAINT dcim_manufacturer_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: dcim_manufacturer dcim_manufacturer_slug_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_manufacturer
+ ADD CONSTRAINT dcim_manufacturer_slug_key UNIQUE (slug);
+
+
+--
+-- Name: dcim_module dcim_module_asset_tag_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_module
+ ADD CONSTRAINT dcim_module_asset_tag_key UNIQUE (asset_tag);
+
+
+--
+-- Name: dcim_module dcim_module_module_bay_id_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_module
+ ADD CONSTRAINT dcim_module_module_bay_id_key UNIQUE (module_bay_id);
+
+
+--
+-- Name: dcim_module dcim_module_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_module
+ ADD CONSTRAINT dcim_module_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: dcim_modulebay dcim_modulebay_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_modulebay
+ ADD CONSTRAINT dcim_modulebay_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: dcim_modulebay dcim_modulebay_unique_device_name; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_modulebay
+ ADD CONSTRAINT dcim_modulebay_unique_device_name UNIQUE (device_id, name);
+
+
+--
+-- Name: dcim_modulebaytemplate dcim_modulebaytemplate_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_modulebaytemplate
+ ADD CONSTRAINT dcim_modulebaytemplate_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: dcim_modulebaytemplate dcim_modulebaytemplate_unique_device_type_name; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_modulebaytemplate
+ ADD CONSTRAINT dcim_modulebaytemplate_unique_device_type_name UNIQUE (device_type_id, name);
+
+
+--
+-- Name: dcim_moduletype dcim_moduletype_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_moduletype
+ ADD CONSTRAINT dcim_moduletype_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: dcim_moduletype dcim_moduletype_unique_manufacturer_model; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_moduletype
+ ADD CONSTRAINT dcim_moduletype_unique_manufacturer_model UNIQUE (manufacturer_id, model);
+
+
+--
+-- Name: dcim_platform dcim_platform_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_platform
+ ADD CONSTRAINT dcim_platform_name_key UNIQUE (name);
+
+
+--
+-- Name: dcim_platform dcim_platform_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_platform
+ ADD CONSTRAINT dcim_platform_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: dcim_platform dcim_platform_slug_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_platform
+ ADD CONSTRAINT dcim_platform_slug_key UNIQUE (slug);
+
+
+--
+-- Name: dcim_powerfeed dcim_powerfeed_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_powerfeed
+ ADD CONSTRAINT dcim_powerfeed_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: dcim_powerfeed dcim_powerfeed_unique_power_panel_name; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_powerfeed
+ ADD CONSTRAINT dcim_powerfeed_unique_power_panel_name UNIQUE (power_panel_id, name);
+
+
+--
+-- Name: dcim_poweroutlet dcim_poweroutlet_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_poweroutlet
+ ADD CONSTRAINT dcim_poweroutlet_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: dcim_poweroutlet dcim_poweroutlet_unique_device_name; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_poweroutlet
+ ADD CONSTRAINT dcim_poweroutlet_unique_device_name UNIQUE (device_id, name);
+
+
+--
+-- Name: dcim_poweroutlettemplate dcim_poweroutlettemplate_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_poweroutlettemplate
+ ADD CONSTRAINT dcim_poweroutlettemplate_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: dcim_poweroutlettemplate dcim_poweroutlettemplate_unique_device_type_name; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_poweroutlettemplate
+ ADD CONSTRAINT dcim_poweroutlettemplate_unique_device_type_name UNIQUE (device_type_id, name);
+
+
+--
+-- Name: dcim_poweroutlettemplate dcim_poweroutlettemplate_unique_module_type_name; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_poweroutlettemplate
+ ADD CONSTRAINT dcim_poweroutlettemplate_unique_module_type_name UNIQUE (module_type_id, name);
+
+
+--
+-- Name: dcim_powerpanel dcim_powerpanel_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_powerpanel
+ ADD CONSTRAINT dcim_powerpanel_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: dcim_powerpanel dcim_powerpanel_unique_site_name; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_powerpanel
+ ADD CONSTRAINT dcim_powerpanel_unique_site_name UNIQUE (site_id, name);
+
+
+--
+-- Name: dcim_powerport dcim_powerport_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_powerport
+ ADD CONSTRAINT dcim_powerport_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: dcim_powerport dcim_powerport_unique_device_name; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_powerport
+ ADD CONSTRAINT dcim_powerport_unique_device_name UNIQUE (device_id, name);
+
+
+--
+-- Name: dcim_powerporttemplate dcim_powerporttemplate_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_powerporttemplate
+ ADD CONSTRAINT dcim_powerporttemplate_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: dcim_powerporttemplate dcim_powerporttemplate_unique_device_type_name; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_powerporttemplate
+ ADD CONSTRAINT dcim_powerporttemplate_unique_device_type_name UNIQUE (device_type_id, name);
+
+
+--
+-- Name: dcim_powerporttemplate dcim_powerporttemplate_unique_module_type_name; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_powerporttemplate
+ ADD CONSTRAINT dcim_powerporttemplate_unique_module_type_name UNIQUE (module_type_id, name);
+
+
+--
+-- Name: dcim_rack dcim_rack_asset_tag_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_rack
+ ADD CONSTRAINT dcim_rack_asset_tag_key UNIQUE (asset_tag);
+
+
+--
+-- Name: dcim_rack dcim_rack_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_rack
+ ADD CONSTRAINT dcim_rack_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: dcim_rack dcim_rack_unique_location_facility_id; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_rack
+ ADD CONSTRAINT dcim_rack_unique_location_facility_id UNIQUE (location_id, facility_id);
+
+
+--
+-- Name: dcim_rack dcim_rack_unique_location_name; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_rack
+ ADD CONSTRAINT dcim_rack_unique_location_name UNIQUE (location_id, name);
+
+
+--
+-- Name: dcim_rackreservation dcim_rackreservation_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_rackreservation
+ ADD CONSTRAINT dcim_rackreservation_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: dcim_rackrole dcim_rackrole_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_rackrole
+ ADD CONSTRAINT dcim_rackrole_name_key UNIQUE (name);
+
+
+--
+-- Name: dcim_rackrole dcim_rackrole_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_rackrole
+ ADD CONSTRAINT dcim_rackrole_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: dcim_rackrole dcim_rackrole_slug_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_rackrole
+ ADD CONSTRAINT dcim_rackrole_slug_key UNIQUE (slug);
+
+
+--
+-- Name: dcim_rearport dcim_rearport_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_rearport
+ ADD CONSTRAINT dcim_rearport_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: dcim_rearport dcim_rearport_unique_device_name; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_rearport
+ ADD CONSTRAINT dcim_rearport_unique_device_name UNIQUE (device_id, name);
+
+
+--
+-- Name: dcim_rearporttemplate dcim_rearporttemplate_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_rearporttemplate
+ ADD CONSTRAINT dcim_rearporttemplate_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: dcim_rearporttemplate dcim_rearporttemplate_unique_device_type_name; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_rearporttemplate
+ ADD CONSTRAINT dcim_rearporttemplate_unique_device_type_name UNIQUE (device_type_id, name);
+
+
+--
+-- Name: dcim_rearporttemplate dcim_rearporttemplate_unique_module_type_name; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_rearporttemplate
+ ADD CONSTRAINT dcim_rearporttemplate_unique_module_type_name UNIQUE (module_type_id, name);
+
+
+--
+-- Name: dcim_region dcim_region_parent_name; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_region
+ ADD CONSTRAINT dcim_region_parent_name UNIQUE (parent_id, name);
+
+
+--
+-- Name: dcim_region dcim_region_parent_slug; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_region
+ ADD CONSTRAINT dcim_region_parent_slug UNIQUE (parent_id, slug);
+
+
+--
+-- Name: dcim_region dcim_region_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_region
+ ADD CONSTRAINT dcim_region_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: dcim_site_asns dcim_site_asns_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_site_asns
+ ADD CONSTRAINT dcim_site_asns_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: dcim_site_asns dcim_site_asns_site_id_asn_id_1a5a6f23_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_site_asns
+ ADD CONSTRAINT dcim_site_asns_site_id_asn_id_1a5a6f23_uniq UNIQUE (site_id, asn_id);
+
+
+--
+-- Name: dcim_site dcim_site_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_site
+ ADD CONSTRAINT dcim_site_name_key UNIQUE (name);
+
+
+--
+-- Name: dcim_site dcim_site_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_site
+ ADD CONSTRAINT dcim_site_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: dcim_site dcim_site_slug_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_site
+ ADD CONSTRAINT dcim_site_slug_key UNIQUE (slug);
+
+
+--
+-- Name: dcim_sitegroup dcim_sitegroup_parent_name; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_sitegroup
+ ADD CONSTRAINT dcim_sitegroup_parent_name UNIQUE (parent_id, name);
+
+
+--
+-- Name: dcim_sitegroup dcim_sitegroup_parent_slug; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_sitegroup
+ ADD CONSTRAINT dcim_sitegroup_parent_slug UNIQUE (parent_id, slug);
+
+
+--
+-- Name: dcim_sitegroup dcim_sitegroup_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_sitegroup
+ ADD CONSTRAINT dcim_sitegroup_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: dcim_virtualchassis dcim_virtualchassis_master_id_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_virtualchassis
+ ADD CONSTRAINT dcim_virtualchassis_master_id_key UNIQUE (master_id);
+
+
+--
+-- Name: dcim_virtualchassis dcim_virtualchassis_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_virtualchassis
+ ADD CONSTRAINT dcim_virtualchassis_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: dcim_virtualdevicecontext dcim_virtualdevicecontext_device_identifier; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_virtualdevicecontext
+ ADD CONSTRAINT dcim_virtualdevicecontext_device_identifier UNIQUE (device_id, identifier);
+
+
+--
+-- Name: dcim_virtualdevicecontext dcim_virtualdevicecontext_device_name; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_virtualdevicecontext
+ ADD CONSTRAINT dcim_virtualdevicecontext_device_name UNIQUE (device_id, name);
+
+
+--
+-- Name: dcim_virtualdevicecontext dcim_virtualdevicecontext_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_virtualdevicecontext
+ ADD CONSTRAINT dcim_virtualdevicecontext_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: dcim_virtualdevicecontext dcim_virtualdevicecontext_primary_ip4_id_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_virtualdevicecontext
+ ADD CONSTRAINT dcim_virtualdevicecontext_primary_ip4_id_key UNIQUE (primary_ip4_id);
+
+
+--
+-- Name: dcim_virtualdevicecontext dcim_virtualdevicecontext_primary_ip6_id_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_virtualdevicecontext
+ ADD CONSTRAINT dcim_virtualdevicecontext_primary_ip6_id_key UNIQUE (primary_ip6_id);
+
+
+--
+-- Name: django_admin_log django_admin_log_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.django_admin_log
+ ADD CONSTRAINT django_admin_log_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: django_content_type django_content_type_app_label_model_76bd3d3b_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.django_content_type
+ ADD CONSTRAINT django_content_type_app_label_model_76bd3d3b_uniq UNIQUE (app_label, model);
+
+
+--
+-- Name: django_content_type django_content_type_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.django_content_type
+ ADD CONSTRAINT django_content_type_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: django_migrations django_migrations_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.django_migrations
+ ADD CONSTRAINT django_migrations_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: django_session django_session_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.django_session
+ ADD CONSTRAINT django_session_pkey PRIMARY KEY (session_key);
+
+
+--
+-- Name: extras_bookmark extras_bookmark_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_bookmark
+ ADD CONSTRAINT extras_bookmark_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: extras_bookmark extras_bookmark_unique_per_object_and_user; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_bookmark
+ ADD CONSTRAINT extras_bookmark_unique_per_object_and_user UNIQUE (object_type_id, object_id, user_id);
+
+
+--
+-- Name: extras_branch extras_branch_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_branch
+ ADD CONSTRAINT extras_branch_name_key UNIQUE (name);
+
+
+--
+-- Name: extras_branch extras_branch_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_branch
+ ADD CONSTRAINT extras_branch_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: extras_cachedvalue extras_cachedvalue_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_cachedvalue
+ ADD CONSTRAINT extras_cachedvalue_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: extras_configcontext_clusters extras_configcontext_clu_configcontext_id_cluster_0c7e5d20_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_configcontext_clusters
+ ADD CONSTRAINT extras_configcontext_clu_configcontext_id_cluster_0c7e5d20_uniq UNIQUE (configcontext_id, cluster_id);
+
+
+--
+-- Name: extras_configcontext_cluster_types extras_configcontext_clu_configcontext_id_cluster_4a2d5e56_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_configcontext_cluster_types
+ ADD CONSTRAINT extras_configcontext_clu_configcontext_id_cluster_4a2d5e56_uniq UNIQUE (configcontext_id, clustertype_id);
+
+
+--
+-- Name: extras_configcontext_cluster_groups extras_configcontext_clu_configcontext_id_cluster_bc530192_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_configcontext_cluster_groups
+ ADD CONSTRAINT extras_configcontext_clu_configcontext_id_cluster_bc530192_uniq UNIQUE (configcontext_id, clustergroup_id);
+
+
+--
+-- Name: extras_configcontext_cluster_groups extras_configcontext_cluster_groups_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_configcontext_cluster_groups
+ ADD CONSTRAINT extras_configcontext_cluster_groups_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: extras_configcontext_cluster_types extras_configcontext_cluster_types_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_configcontext_cluster_types
+ ADD CONSTRAINT extras_configcontext_cluster_types_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: extras_configcontext_clusters extras_configcontext_clusters_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_configcontext_clusters
+ ADD CONSTRAINT extras_configcontext_clusters_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: extras_configcontext_device_types extras_configcontext_dev_configcontext_id_devicet_a0aaba6f_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_configcontext_device_types
+ ADD CONSTRAINT extras_configcontext_dev_configcontext_id_devicet_a0aaba6f_uniq UNIQUE (configcontext_id, devicetype_id);
+
+
+--
+-- Name: extras_configcontext_device_types extras_configcontext_device_types_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_configcontext_device_types
+ ADD CONSTRAINT extras_configcontext_device_types_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: extras_configcontext_locations extras_configcontext_loc_configcontext_id_locatio_15d9b342_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_configcontext_locations
+ ADD CONSTRAINT extras_configcontext_loc_configcontext_id_locatio_15d9b342_uniq UNIQUE (configcontext_id, location_id);
+
+
+--
+-- Name: extras_configcontext_locations extras_configcontext_locations_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_configcontext_locations
+ ADD CONSTRAINT extras_configcontext_locations_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: extras_configcontext extras_configcontext_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_configcontext
+ ADD CONSTRAINT extras_configcontext_name_key UNIQUE (name);
+
+
+--
+-- Name: extras_configcontext extras_configcontext_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_configcontext
+ ADD CONSTRAINT extras_configcontext_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: extras_configcontext_platforms extras_configcontext_pla_configcontext_id_platfor_3c67c104_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_configcontext_platforms
+ ADD CONSTRAINT extras_configcontext_pla_configcontext_id_platfor_3c67c104_uniq UNIQUE (configcontext_id, platform_id);
+
+
+--
+-- Name: extras_configcontext_platforms extras_configcontext_platforms_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_configcontext_platforms
+ ADD CONSTRAINT extras_configcontext_platforms_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: extras_configcontext_regions extras_configcontext_reg_configcontext_id_region__d4a1d77f_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_configcontext_regions
+ ADD CONSTRAINT extras_configcontext_reg_configcontext_id_region__d4a1d77f_uniq UNIQUE (configcontext_id, region_id);
+
+
+--
+-- Name: extras_configcontext_regions extras_configcontext_regions_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_configcontext_regions
+ ADD CONSTRAINT extras_configcontext_regions_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: extras_configcontext_roles extras_configcontext_rol_configcontext_id_devicer_4d8dbb50_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_configcontext_roles
+ ADD CONSTRAINT extras_configcontext_rol_configcontext_id_devicer_4d8dbb50_uniq UNIQUE (configcontext_id, devicerole_id);
+
+
+--
+-- Name: extras_configcontext_roles extras_configcontext_roles_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_configcontext_roles
+ ADD CONSTRAINT extras_configcontext_roles_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: extras_configcontext_sites extras_configcontext_sit_configcontext_id_site_id_a4fe5f4f_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_configcontext_sites
+ ADD CONSTRAINT extras_configcontext_sit_configcontext_id_site_id_a4fe5f4f_uniq UNIQUE (configcontext_id, site_id);
+
+
+--
+-- Name: extras_configcontext_site_groups extras_configcontext_sit_configcontext_id_sitegro_4caa52ec_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_configcontext_site_groups
+ ADD CONSTRAINT extras_configcontext_sit_configcontext_id_sitegro_4caa52ec_uniq UNIQUE (configcontext_id, sitegroup_id);
+
+
+--
+-- Name: extras_configcontext_site_groups extras_configcontext_site_groups_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_configcontext_site_groups
+ ADD CONSTRAINT extras_configcontext_site_groups_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: extras_configcontext_sites extras_configcontext_sites_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_configcontext_sites
+ ADD CONSTRAINT extras_configcontext_sites_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: extras_configcontext_tags extras_configcontext_tags_configcontext_id_tag_id_f6c53016_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_configcontext_tags
+ ADD CONSTRAINT extras_configcontext_tags_configcontext_id_tag_id_f6c53016_uniq UNIQUE (configcontext_id, tag_id);
+
+
+--
+-- Name: extras_configcontext_tags extras_configcontext_tags_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_configcontext_tags
+ ADD CONSTRAINT extras_configcontext_tags_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: extras_configcontext_tenants extras_configcontext_ten_configcontext_id_tenant__aefb257d_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_configcontext_tenants
+ ADD CONSTRAINT extras_configcontext_ten_configcontext_id_tenant__aefb257d_uniq UNIQUE (configcontext_id, tenant_id);
+
+
+--
+-- Name: extras_configcontext_tenant_groups extras_configcontext_ten_configcontext_id_tenantg_d6afc6f5_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_configcontext_tenant_groups
+ ADD CONSTRAINT extras_configcontext_ten_configcontext_id_tenantg_d6afc6f5_uniq UNIQUE (configcontext_id, tenantgroup_id);
+
+
+--
+-- Name: extras_configcontext_tenant_groups extras_configcontext_tenant_groups_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_configcontext_tenant_groups
+ ADD CONSTRAINT extras_configcontext_tenant_groups_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: extras_configcontext_tenants extras_configcontext_tenants_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_configcontext_tenants
+ ADD CONSTRAINT extras_configcontext_tenants_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: core_configrevision extras_configrevision_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.core_configrevision
+ ADD CONSTRAINT extras_configrevision_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: extras_configtemplate extras_configtemplate_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_configtemplate
+ ADD CONSTRAINT extras_configtemplate_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: extras_customfield_content_types extras_customfield_conte_customfield_id_contentty_51136c2b_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_customfield_content_types
+ ADD CONSTRAINT extras_customfield_conte_customfield_id_contentty_51136c2b_uniq UNIQUE (customfield_id, contenttype_id);
+
+
+--
+-- Name: extras_customfield_content_types extras_customfield_content_types_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_customfield_content_types
+ ADD CONSTRAINT extras_customfield_content_types_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: extras_customfield extras_customfield_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_customfield
+ ADD CONSTRAINT extras_customfield_name_key UNIQUE (name);
+
+
+--
+-- Name: extras_customfield extras_customfield_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_customfield
+ ADD CONSTRAINT extras_customfield_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: extras_customfieldchoiceset extras_customfieldchoiceset_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_customfieldchoiceset
+ ADD CONSTRAINT extras_customfieldchoiceset_name_key UNIQUE (name);
+
+
+--
+-- Name: extras_customfieldchoiceset extras_customfieldchoiceset_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_customfieldchoiceset
+ ADD CONSTRAINT extras_customfieldchoiceset_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: extras_customlink_content_types extras_customlink_conten_customlink_id_contenttyp_518ef1b8_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_customlink_content_types
+ ADD CONSTRAINT extras_customlink_conten_customlink_id_contenttyp_518ef1b8_uniq UNIQUE (customlink_id, contenttype_id);
+
+
+--
+-- Name: extras_customlink_content_types extras_customlink_content_types_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_customlink_content_types
+ ADD CONSTRAINT extras_customlink_content_types_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: extras_customlink extras_customlink_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_customlink
+ ADD CONSTRAINT extras_customlink_name_key UNIQUE (name);
+
+
+--
+-- Name: extras_customlink extras_customlink_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_customlink
+ ADD CONSTRAINT extras_customlink_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: extras_dashboard extras_dashboard_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_dashboard
+ ADD CONSTRAINT extras_dashboard_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: extras_dashboard extras_dashboard_user_id_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_dashboard
+ ADD CONSTRAINT extras_dashboard_user_id_key UNIQUE (user_id);
+
+
+--
+-- Name: extras_eventrule_content_types extras_eventrule_content_eventrule_id_contenttype_4da93239_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_eventrule_content_types
+ ADD CONSTRAINT extras_eventrule_content_eventrule_id_contenttype_4da93239_uniq UNIQUE (eventrule_id, contenttype_id);
+
+
+--
+-- Name: extras_eventrule_content_types extras_eventrule_content_types_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_eventrule_content_types
+ ADD CONSTRAINT extras_eventrule_content_types_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: extras_eventrule extras_eventrule_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_eventrule
+ ADD CONSTRAINT extras_eventrule_name_key UNIQUE (name);
+
+
+--
+-- Name: extras_eventrule extras_eventrule_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_eventrule
+ ADD CONSTRAINT extras_eventrule_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: extras_exporttemplate_content_types extras_exporttemplate_co_exporttemplate_id_conten_b4645653_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_exporttemplate_content_types
+ ADD CONSTRAINT extras_exporttemplate_co_exporttemplate_id_conten_b4645653_uniq UNIQUE (exporttemplate_id, contenttype_id);
+
+
+--
+-- Name: extras_exporttemplate_content_types extras_exporttemplate_content_types_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_exporttemplate_content_types
+ ADD CONSTRAINT extras_exporttemplate_content_types_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: extras_exporttemplate extras_exporttemplate_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_exporttemplate
+ ADD CONSTRAINT extras_exporttemplate_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: extras_imageattachment extras_imageattachment_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_imageattachment
+ ADD CONSTRAINT extras_imageattachment_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: extras_journalentry extras_journalentry_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_journalentry
+ ADD CONSTRAINT extras_journalentry_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: extras_objectchange extras_objectchange_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_objectchange
+ ADD CONSTRAINT extras_objectchange_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: extras_savedfilter_content_types extras_savedfilter_conte_savedfilter_id_contentty_133ba781_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_savedfilter_content_types
+ ADD CONSTRAINT extras_savedfilter_conte_savedfilter_id_contentty_133ba781_uniq UNIQUE (savedfilter_id, contenttype_id);
+
+
+--
+-- Name: extras_savedfilter_content_types extras_savedfilter_content_types_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_savedfilter_content_types
+ ADD CONSTRAINT extras_savedfilter_content_types_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: extras_savedfilter extras_savedfilter_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_savedfilter
+ ADD CONSTRAINT extras_savedfilter_name_key UNIQUE (name);
+
+
+--
+-- Name: extras_savedfilter extras_savedfilter_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_savedfilter
+ ADD CONSTRAINT extras_savedfilter_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: extras_savedfilter extras_savedfilter_slug_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_savedfilter
+ ADD CONSTRAINT extras_savedfilter_slug_key UNIQUE (slug);
+
+
+--
+-- Name: extras_stagedchange extras_stagedchange_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_stagedchange
+ ADD CONSTRAINT extras_stagedchange_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: extras_tag extras_tag_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_tag
+ ADD CONSTRAINT extras_tag_name_key UNIQUE (name);
+
+
+--
+-- Name: extras_tag_object_types extras_tag_object_types_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_tag_object_types
+ ADD CONSTRAINT extras_tag_object_types_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: extras_tag_object_types extras_tag_object_types_tag_id_contenttype_id_2ff9910c_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_tag_object_types
+ ADD CONSTRAINT extras_tag_object_types_tag_id_contenttype_id_2ff9910c_uniq UNIQUE (tag_id, contenttype_id);
+
+
+--
+-- Name: extras_tag extras_tag_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_tag
+ ADD CONSTRAINT extras_tag_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: extras_tag extras_tag_slug_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_tag
+ ADD CONSTRAINT extras_tag_slug_key UNIQUE (slug);
+
+
+--
+-- Name: extras_taggeditem extras_taggeditem_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_taggeditem
+ ADD CONSTRAINT extras_taggeditem_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: extras_webhook extras_webhook_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_webhook
+ ADD CONSTRAINT extras_webhook_name_key UNIQUE (name);
+
+
+--
+-- Name: extras_webhook extras_webhook_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_webhook
+ ADD CONSTRAINT extras_webhook_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: ipam_aggregate ipam_aggregate_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_aggregate
+ ADD CONSTRAINT ipam_aggregate_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: ipam_asn ipam_asn_asn_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_asn
+ ADD CONSTRAINT ipam_asn_asn_key UNIQUE (asn);
+
+
+--
+-- Name: ipam_asn ipam_asn_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_asn
+ ADD CONSTRAINT ipam_asn_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: ipam_asnrange ipam_asnrange_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_asnrange
+ ADD CONSTRAINT ipam_asnrange_name_key UNIQUE (name);
+
+
+--
+-- Name: ipam_asnrange ipam_asnrange_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_asnrange
+ ADD CONSTRAINT ipam_asnrange_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: ipam_asnrange ipam_asnrange_slug_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_asnrange
+ ADD CONSTRAINT ipam_asnrange_slug_key UNIQUE (slug);
+
+
+--
+-- Name: ipam_fhrpgroup ipam_fhrpgroup_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_fhrpgroup
+ ADD CONSTRAINT ipam_fhrpgroup_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: ipam_fhrpgroupassignment ipam_fhrpgroupassignment_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_fhrpgroupassignment
+ ADD CONSTRAINT ipam_fhrpgroupassignment_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: ipam_fhrpgroupassignment ipam_fhrpgroupassignment_unique_interface_group; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_fhrpgroupassignment
+ ADD CONSTRAINT ipam_fhrpgroupassignment_unique_interface_group UNIQUE (interface_type_id, interface_id, group_id);
+
+
+--
+-- Name: ipam_ipaddress ipam_ipaddress_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_ipaddress
+ ADD CONSTRAINT ipam_ipaddress_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: ipam_iprange ipam_iprange_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_iprange
+ ADD CONSTRAINT ipam_iprange_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: vpn_l2vpn_export_targets ipam_l2vpn_export_targets_l2vpn_id_routetarget_id_eea90661_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.vpn_l2vpn_export_targets
+ ADD CONSTRAINT ipam_l2vpn_export_targets_l2vpn_id_routetarget_id_eea90661_uniq UNIQUE (l2vpn_id, routetarget_id);
+
+
+--
+-- Name: vpn_l2vpn_export_targets ipam_l2vpn_export_targets_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.vpn_l2vpn_export_targets
+ ADD CONSTRAINT ipam_l2vpn_export_targets_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: vpn_l2vpn_import_targets ipam_l2vpn_import_targets_l2vpn_id_routetarget_id_96af344c_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.vpn_l2vpn_import_targets
+ ADD CONSTRAINT ipam_l2vpn_import_targets_l2vpn_id_routetarget_id_96af344c_uniq UNIQUE (l2vpn_id, routetarget_id);
+
+
+--
+-- Name: vpn_l2vpn_import_targets ipam_l2vpn_import_targets_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.vpn_l2vpn_import_targets
+ ADD CONSTRAINT ipam_l2vpn_import_targets_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: vpn_l2vpn ipam_l2vpn_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.vpn_l2vpn
+ ADD CONSTRAINT ipam_l2vpn_name_key UNIQUE (name);
+
+
+--
+-- Name: vpn_l2vpn ipam_l2vpn_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.vpn_l2vpn
+ ADD CONSTRAINT ipam_l2vpn_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: vpn_l2vpn ipam_l2vpn_slug_24008406_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.vpn_l2vpn
+ ADD CONSTRAINT ipam_l2vpn_slug_24008406_uniq UNIQUE (slug);
+
+
+--
+-- Name: vpn_l2vpntermination ipam_l2vpntermination_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.vpn_l2vpntermination
+ ADD CONSTRAINT ipam_l2vpntermination_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: ipam_prefix ipam_prefix_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_prefix
+ ADD CONSTRAINT ipam_prefix_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: ipam_rir ipam_rir_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_rir
+ ADD CONSTRAINT ipam_rir_name_key UNIQUE (name);
+
+
+--
+-- Name: ipam_rir ipam_rir_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_rir
+ ADD CONSTRAINT ipam_rir_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: ipam_rir ipam_rir_slug_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_rir
+ ADD CONSTRAINT ipam_rir_slug_key UNIQUE (slug);
+
+
+--
+-- Name: ipam_role ipam_role_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_role
+ ADD CONSTRAINT ipam_role_name_key UNIQUE (name);
+
+
+--
+-- Name: ipam_role ipam_role_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_role
+ ADD CONSTRAINT ipam_role_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: ipam_role ipam_role_slug_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_role
+ ADD CONSTRAINT ipam_role_slug_key UNIQUE (slug);
+
+
+--
+-- Name: ipam_routetarget ipam_routetarget_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_routetarget
+ ADD CONSTRAINT ipam_routetarget_name_key UNIQUE (name);
+
+
+--
+-- Name: ipam_routetarget ipam_routetarget_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_routetarget
+ ADD CONSTRAINT ipam_routetarget_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: ipam_service_ipaddresses ipam_service_ipaddresses_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_service_ipaddresses
+ ADD CONSTRAINT ipam_service_ipaddresses_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: ipam_service_ipaddresses ipam_service_ipaddresses_service_id_ipaddress_id_d019a805_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_service_ipaddresses
+ ADD CONSTRAINT ipam_service_ipaddresses_service_id_ipaddress_id_d019a805_uniq UNIQUE (service_id, ipaddress_id);
+
+
+--
+-- Name: ipam_service ipam_service_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_service
+ ADD CONSTRAINT ipam_service_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: ipam_servicetemplate ipam_servicetemplate_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_servicetemplate
+ ADD CONSTRAINT ipam_servicetemplate_name_key UNIQUE (name);
+
+
+--
+-- Name: ipam_servicetemplate ipam_servicetemplate_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_servicetemplate
+ ADD CONSTRAINT ipam_servicetemplate_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: ipam_vlan ipam_vlan_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_vlan
+ ADD CONSTRAINT ipam_vlan_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: ipam_vlan ipam_vlan_unique_group_name; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_vlan
+ ADD CONSTRAINT ipam_vlan_unique_group_name UNIQUE (group_id, name);
+
+
+--
+-- Name: ipam_vlan ipam_vlan_unique_group_vid; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_vlan
+ ADD CONSTRAINT ipam_vlan_unique_group_vid UNIQUE (group_id, vid);
+
+
+--
+-- Name: ipam_vlangroup ipam_vlangroup_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_vlangroup
+ ADD CONSTRAINT ipam_vlangroup_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: ipam_vlangroup ipam_vlangroup_unique_scope_name; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_vlangroup
+ ADD CONSTRAINT ipam_vlangroup_unique_scope_name UNIQUE (scope_type_id, scope_id, name);
+
+
+--
+-- Name: ipam_vlangroup ipam_vlangroup_unique_scope_slug; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_vlangroup
+ ADD CONSTRAINT ipam_vlangroup_unique_scope_slug UNIQUE (scope_type_id, scope_id, slug);
+
+
+--
+-- Name: ipam_vrf_export_targets ipam_vrf_export_targets_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_vrf_export_targets
+ ADD CONSTRAINT ipam_vrf_export_targets_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: ipam_vrf_export_targets ipam_vrf_export_targets_vrf_id_routetarget_id_63ba8c62_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_vrf_export_targets
+ ADD CONSTRAINT ipam_vrf_export_targets_vrf_id_routetarget_id_63ba8c62_uniq UNIQUE (vrf_id, routetarget_id);
+
+
+--
+-- Name: ipam_vrf_import_targets ipam_vrf_import_targets_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_vrf_import_targets
+ ADD CONSTRAINT ipam_vrf_import_targets_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: ipam_vrf_import_targets ipam_vrf_import_targets_vrf_id_routetarget_id_399b155f_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_vrf_import_targets
+ ADD CONSTRAINT ipam_vrf_import_targets_vrf_id_routetarget_id_399b155f_uniq UNIQUE (vrf_id, routetarget_id);
+
+
+--
+-- Name: ipam_vrf ipam_vrf_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_vrf
+ ADD CONSTRAINT ipam_vrf_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: ipam_vrf ipam_vrf_rd_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_vrf
+ ADD CONSTRAINT ipam_vrf_rd_key UNIQUE (rd);
+
+
+--
+-- Name: netbox_attachments_netboxattachment netbox_attachments_netboxattachment_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.netbox_attachments_netboxattachment
+ ADD CONSTRAINT netbox_attachments_netboxattachment_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: netbox_contract_contract_circuit netbox_contract_contract_circuit_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.netbox_contract_contract_circuit
+ ADD CONSTRAINT netbox_contract_contract_circuit_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: netbox_contract_contract_circuit netbox_contract_contract_contract_id_circuit_id_9dedac9b_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.netbox_contract_contract_circuit
+ ADD CONSTRAINT netbox_contract_contract_contract_id_circuit_id_9dedac9b_uniq UNIQUE (contract_id, circuit_id);
+
+
+--
+-- Name: netbox_contract_contract netbox_contract_contract_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.netbox_contract_contract
+ ADD CONSTRAINT netbox_contract_contract_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: netbox_contract_contractassignement netbox_contract_contractassignement_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.netbox_contract_contractassignement
+ ADD CONSTRAINT netbox_contract_contractassignement_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: netbox_contract_invoice_contracts netbox_contract_invoice__invoice_id_contract_id_b4d0c7b6_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.netbox_contract_invoice_contracts
+ ADD CONSTRAINT netbox_contract_invoice__invoice_id_contract_id_b4d0c7b6_uniq UNIQUE (invoice_id, contract_id);
+
+
+--
+-- Name: netbox_contract_invoice_contracts netbox_contract_invoice_contracts_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.netbox_contract_invoice_contracts
+ ADD CONSTRAINT netbox_contract_invoice_contracts_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: netbox_contract_invoice netbox_contract_invoice_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.netbox_contract_invoice
+ ADD CONSTRAINT netbox_contract_invoice_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: netbox_contract_serviceprovider netbox_contract_serviceprovider_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.netbox_contract_serviceprovider
+ ADD CONSTRAINT netbox_contract_serviceprovider_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: netbox_contract_serviceprovider netbox_contract_serviceprovider_slug_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.netbox_contract_serviceprovider
+ ADD CONSTRAINT netbox_contract_serviceprovider_slug_key UNIQUE (slug);
+
+
+--
+-- Name: social_auth_association social_auth_association_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.social_auth_association
+ ADD CONSTRAINT social_auth_association_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: social_auth_association social_auth_association_server_url_handle_078befa2_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.social_auth_association
+ ADD CONSTRAINT social_auth_association_server_url_handle_078befa2_uniq UNIQUE (server_url, handle);
+
+
+--
+-- Name: social_auth_code social_auth_code_email_code_801b2d02_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.social_auth_code
+ ADD CONSTRAINT social_auth_code_email_code_801b2d02_uniq UNIQUE (email, code);
+
+
+--
+-- Name: social_auth_code social_auth_code_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.social_auth_code
+ ADD CONSTRAINT social_auth_code_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: social_auth_nonce social_auth_nonce_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.social_auth_nonce
+ ADD CONSTRAINT social_auth_nonce_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: social_auth_nonce social_auth_nonce_server_url_timestamp_salt_f6284463_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.social_auth_nonce
+ ADD CONSTRAINT social_auth_nonce_server_url_timestamp_salt_f6284463_uniq UNIQUE (server_url, "timestamp", salt);
+
+
+--
+-- Name: social_auth_partial social_auth_partial_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.social_auth_partial
+ ADD CONSTRAINT social_auth_partial_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: social_auth_usersocialauth social_auth_usersocialauth_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.social_auth_usersocialauth
+ ADD CONSTRAINT social_auth_usersocialauth_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: social_auth_usersocialauth social_auth_usersocialauth_provider_uid_e6b5e668_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.social_auth_usersocialauth
+ ADD CONSTRAINT social_auth_usersocialauth_provider_uid_e6b5e668_uniq UNIQUE (provider, uid);
+
+
+--
+-- Name: taggit_tag taggit_tag_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.taggit_tag
+ ADD CONSTRAINT taggit_tag_name_key UNIQUE (name);
+
+
+--
+-- Name: taggit_tag taggit_tag_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.taggit_tag
+ ADD CONSTRAINT taggit_tag_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: taggit_tag taggit_tag_slug_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.taggit_tag
+ ADD CONSTRAINT taggit_tag_slug_key UNIQUE (slug);
+
+
+--
+-- Name: taggit_taggeditem taggit_taggeditem_content_type_id_object_i_4bb97a8e_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.taggit_taggeditem
+ ADD CONSTRAINT taggit_taggeditem_content_type_id_object_i_4bb97a8e_uniq UNIQUE (content_type_id, object_id, tag_id);
+
+
+--
+-- Name: taggit_taggeditem taggit_taggeditem_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.taggit_taggeditem
+ ADD CONSTRAINT taggit_taggeditem_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: tenancy_contact tenancy_contact_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.tenancy_contact
+ ADD CONSTRAINT tenancy_contact_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: tenancy_contact tenancy_contact_unique_group_name; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.tenancy_contact
+ ADD CONSTRAINT tenancy_contact_unique_group_name UNIQUE (group_id, name);
+
+
+--
+-- Name: tenancy_contactassignment tenancy_contactassignment_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.tenancy_contactassignment
+ ADD CONSTRAINT tenancy_contactassignment_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: tenancy_contactassignment tenancy_contactassignment_unique_object_contact_role; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.tenancy_contactassignment
+ ADD CONSTRAINT tenancy_contactassignment_unique_object_contact_role UNIQUE (content_type_id, object_id, contact_id, role_id);
+
+
+--
+-- Name: tenancy_contactgroup tenancy_contactgroup_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.tenancy_contactgroup
+ ADD CONSTRAINT tenancy_contactgroup_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: tenancy_contactgroup tenancy_contactgroup_unique_parent_name; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.tenancy_contactgroup
+ ADD CONSTRAINT tenancy_contactgroup_unique_parent_name UNIQUE (parent_id, name);
+
+
+--
+-- Name: tenancy_contactrole tenancy_contactrole_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.tenancy_contactrole
+ ADD CONSTRAINT tenancy_contactrole_name_key UNIQUE (name);
+
+
+--
+-- Name: tenancy_contactrole tenancy_contactrole_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.tenancy_contactrole
+ ADD CONSTRAINT tenancy_contactrole_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: tenancy_contactrole tenancy_contactrole_slug_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.tenancy_contactrole
+ ADD CONSTRAINT tenancy_contactrole_slug_key UNIQUE (slug);
+
+
+--
+-- Name: tenancy_tenant tenancy_tenant_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.tenancy_tenant
+ ADD CONSTRAINT tenancy_tenant_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: tenancy_tenant tenancy_tenant_unique_group_name; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.tenancy_tenant
+ ADD CONSTRAINT tenancy_tenant_unique_group_name UNIQUE (group_id, name);
+
+
+--
+-- Name: tenancy_tenant tenancy_tenant_unique_group_slug; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.tenancy_tenant
+ ADD CONSTRAINT tenancy_tenant_unique_group_slug UNIQUE (group_id, slug);
+
+
+--
+-- Name: tenancy_tenantgroup tenancy_tenantgroup_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.tenancy_tenantgroup
+ ADD CONSTRAINT tenancy_tenantgroup_name_key UNIQUE (name);
+
+
+--
+-- Name: tenancy_tenantgroup tenancy_tenantgroup_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.tenancy_tenantgroup
+ ADD CONSTRAINT tenancy_tenantgroup_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: tenancy_tenantgroup tenancy_tenantgroup_slug_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.tenancy_tenantgroup
+ ADD CONSTRAINT tenancy_tenantgroup_slug_key UNIQUE (slug);
+
+
+--
+-- Name: users_objectpermission_groups users_objectpermission_g_objectpermission_id_grou_3b62a39c_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.users_objectpermission_groups
+ ADD CONSTRAINT users_objectpermission_g_objectpermission_id_grou_3b62a39c_uniq UNIQUE (objectpermission_id, group_id);
+
+
+--
+-- Name: users_objectpermission_groups users_objectpermission_groups_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.users_objectpermission_groups
+ ADD CONSTRAINT users_objectpermission_groups_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: users_objectpermission_object_types users_objectpermission_o_objectpermission_id_cont_7c40d31a_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.users_objectpermission_object_types
+ ADD CONSTRAINT users_objectpermission_o_objectpermission_id_cont_7c40d31a_uniq UNIQUE (objectpermission_id, contenttype_id);
+
+
+--
+-- Name: users_objectpermission_object_types users_objectpermission_object_types_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.users_objectpermission_object_types
+ ADD CONSTRAINT users_objectpermission_object_types_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: users_objectpermission users_objectpermission_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.users_objectpermission
+ ADD CONSTRAINT users_objectpermission_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: users_objectpermission_users users_objectpermission_u_objectpermission_id_user_3a7db108_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.users_objectpermission_users
+ ADD CONSTRAINT users_objectpermission_u_objectpermission_id_user_3a7db108_uniq UNIQUE (objectpermission_id, user_id);
+
+
+--
+-- Name: users_objectpermission_users users_objectpermission_users_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.users_objectpermission_users
+ ADD CONSTRAINT users_objectpermission_users_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: users_token users_token_key_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.users_token
+ ADD CONSTRAINT users_token_key_key UNIQUE (key);
+
+
+--
+-- Name: users_token users_token_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.users_token
+ ADD CONSTRAINT users_token_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: users_userconfig users_userconfig_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.users_userconfig
+ ADD CONSTRAINT users_userconfig_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: users_userconfig users_userconfig_user_id_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.users_userconfig
+ ADD CONSTRAINT users_userconfig_user_id_key UNIQUE (user_id);
+
+
+--
+-- Name: virtualization_cluster virtualization_cluster_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.virtualization_cluster
+ ADD CONSTRAINT virtualization_cluster_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: virtualization_cluster virtualization_cluster_unique_group_name; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.virtualization_cluster
+ ADD CONSTRAINT virtualization_cluster_unique_group_name UNIQUE (group_id, name);
+
+
+--
+-- Name: virtualization_cluster virtualization_cluster_unique_site_name; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.virtualization_cluster
+ ADD CONSTRAINT virtualization_cluster_unique_site_name UNIQUE (site_id, name);
+
+
+--
+-- Name: virtualization_clustergroup virtualization_clustergroup_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.virtualization_clustergroup
+ ADD CONSTRAINT virtualization_clustergroup_name_key UNIQUE (name);
+
+
+--
+-- Name: virtualization_clustergroup virtualization_clustergroup_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.virtualization_clustergroup
+ ADD CONSTRAINT virtualization_clustergroup_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: virtualization_clustergroup virtualization_clustergroup_slug_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.virtualization_clustergroup
+ ADD CONSTRAINT virtualization_clustergroup_slug_key UNIQUE (slug);
+
+
+--
+-- Name: virtualization_clustertype virtualization_clustertype_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.virtualization_clustertype
+ ADD CONSTRAINT virtualization_clustertype_name_key UNIQUE (name);
+
+
+--
+-- Name: virtualization_clustertype virtualization_clustertype_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.virtualization_clustertype
+ ADD CONSTRAINT virtualization_clustertype_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: virtualization_clustertype virtualization_clustertype_slug_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.virtualization_clustertype
+ ADD CONSTRAINT virtualization_clustertype_slug_key UNIQUE (slug);
+
+
+--
+-- Name: virtualization_virtualdisk virtualization_virtualdisk_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.virtualization_virtualdisk
+ ADD CONSTRAINT virtualization_virtualdisk_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: virtualization_virtualdisk virtualization_virtualdisk_unique_virtual_machine_name; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.virtualization_virtualdisk
+ ADD CONSTRAINT virtualization_virtualdisk_unique_virtual_machine_name UNIQUE (virtual_machine_id, name);
+
+
+--
+-- Name: virtualization_virtualmachine virtualization_virtualmachine_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.virtualization_virtualmachine
+ ADD CONSTRAINT virtualization_virtualmachine_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: virtualization_virtualmachine virtualization_virtualmachine_primary_ip4_id_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.virtualization_virtualmachine
+ ADD CONSTRAINT virtualization_virtualmachine_primary_ip4_id_key UNIQUE (primary_ip4_id);
+
+
+--
+-- Name: virtualization_virtualmachine virtualization_virtualmachine_primary_ip6_id_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.virtualization_virtualmachine
+ ADD CONSTRAINT virtualization_virtualmachine_primary_ip6_id_key UNIQUE (primary_ip6_id);
+
+
+--
+-- Name: virtualization_vminterface_tagged_vlans virtualization_vminterfa_vminterface_id_vlan_id_27e907db_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.virtualization_vminterface_tagged_vlans
+ ADD CONSTRAINT virtualization_vminterfa_vminterface_id_vlan_id_27e907db_uniq UNIQUE (vminterface_id, vlan_id);
+
+
+--
+-- Name: virtualization_vminterface virtualization_vminterface_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.virtualization_vminterface
+ ADD CONSTRAINT virtualization_vminterface_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: virtualization_vminterface_tagged_vlans virtualization_vminterface_tagged_vlans_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.virtualization_vminterface_tagged_vlans
+ ADD CONSTRAINT virtualization_vminterface_tagged_vlans_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: virtualization_vminterface virtualization_vminterface_unique_virtual_machine_name; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.virtualization_vminterface
+ ADD CONSTRAINT virtualization_vminterface_unique_virtual_machine_name UNIQUE (virtual_machine_id, name);
+
+
+--
+-- Name: vpn_ikepolicy vpn_ikepolicy_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.vpn_ikepolicy
+ ADD CONSTRAINT vpn_ikepolicy_name_key UNIQUE (name);
+
+
+--
+-- Name: vpn_ikepolicy vpn_ikepolicy_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.vpn_ikepolicy
+ ADD CONSTRAINT vpn_ikepolicy_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: vpn_ikepolicy_proposals vpn_ikepolicy_proposals_ikepolicy_id_ikeproposal_0c3baa9c_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.vpn_ikepolicy_proposals
+ ADD CONSTRAINT vpn_ikepolicy_proposals_ikepolicy_id_ikeproposal_0c3baa9c_uniq UNIQUE (ikepolicy_id, ikeproposal_id);
+
+
+--
+-- Name: vpn_ikepolicy_proposals vpn_ikepolicy_proposals_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.vpn_ikepolicy_proposals
+ ADD CONSTRAINT vpn_ikepolicy_proposals_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: vpn_ikeproposal vpn_ikeproposal_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.vpn_ikeproposal
+ ADD CONSTRAINT vpn_ikeproposal_name_key UNIQUE (name);
+
+
+--
+-- Name: vpn_ikeproposal vpn_ikeproposal_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.vpn_ikeproposal
+ ADD CONSTRAINT vpn_ikeproposal_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: vpn_ipsecpolicy vpn_ipsecpolicy_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.vpn_ipsecpolicy
+ ADD CONSTRAINT vpn_ipsecpolicy_name_key UNIQUE (name);
+
+
+--
+-- Name: vpn_ipsecpolicy vpn_ipsecpolicy_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.vpn_ipsecpolicy
+ ADD CONSTRAINT vpn_ipsecpolicy_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: vpn_ipsecpolicy_proposals vpn_ipsecpolicy_proposal_ipsecpolicy_id_ipsecprop_72096768_uniq; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.vpn_ipsecpolicy_proposals
+ ADD CONSTRAINT vpn_ipsecpolicy_proposal_ipsecpolicy_id_ipsecprop_72096768_uniq UNIQUE (ipsecpolicy_id, ipsecproposal_id);
+
+
+--
+-- Name: vpn_ipsecpolicy_proposals vpn_ipsecpolicy_proposals_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.vpn_ipsecpolicy_proposals
+ ADD CONSTRAINT vpn_ipsecpolicy_proposals_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: vpn_ipsecprofile vpn_ipsecprofile_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.vpn_ipsecprofile
+ ADD CONSTRAINT vpn_ipsecprofile_name_key UNIQUE (name);
+
+
+--
+-- Name: vpn_ipsecprofile vpn_ipsecprofile_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.vpn_ipsecprofile
+ ADD CONSTRAINT vpn_ipsecprofile_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: vpn_ipsecproposal vpn_ipsecproposal_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.vpn_ipsecproposal
+ ADD CONSTRAINT vpn_ipsecproposal_name_key UNIQUE (name);
+
+
+--
+-- Name: vpn_ipsecproposal vpn_ipsecproposal_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.vpn_ipsecproposal
+ ADD CONSTRAINT vpn_ipsecproposal_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: vpn_l2vpntermination vpn_l2vpntermination_assigned_object; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.vpn_l2vpntermination
+ ADD CONSTRAINT vpn_l2vpntermination_assigned_object UNIQUE (assigned_object_type_id, assigned_object_id);
+
+
+--
+-- Name: vpn_tunnel vpn_tunnel_group_name; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.vpn_tunnel
+ ADD CONSTRAINT vpn_tunnel_group_name UNIQUE (group_id, name);
+
+
+--
+-- Name: vpn_tunnel vpn_tunnel_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.vpn_tunnel
+ ADD CONSTRAINT vpn_tunnel_name_key UNIQUE (name);
+
+
+--
+-- Name: vpn_tunnel vpn_tunnel_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.vpn_tunnel
+ ADD CONSTRAINT vpn_tunnel_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: vpn_tunnelgroup vpn_tunnelgroup_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.vpn_tunnelgroup
+ ADD CONSTRAINT vpn_tunnelgroup_name_key UNIQUE (name);
+
+
+--
+-- Name: vpn_tunnelgroup vpn_tunnelgroup_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.vpn_tunnelgroup
+ ADD CONSTRAINT vpn_tunnelgroup_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: vpn_tunnelgroup vpn_tunnelgroup_slug_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.vpn_tunnelgroup
+ ADD CONSTRAINT vpn_tunnelgroup_slug_key UNIQUE (slug);
+
+
+--
+-- Name: vpn_tunneltermination vpn_tunneltermination_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.vpn_tunneltermination
+ ADD CONSTRAINT vpn_tunneltermination_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: vpn_tunneltermination vpn_tunneltermination_termination; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.vpn_tunneltermination
+ ADD CONSTRAINT vpn_tunneltermination_termination UNIQUE (termination_type_id, termination_id);
+
+
+--
+-- Name: wireless_wirelesslan wireless_wirelesslan_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.wireless_wirelesslan
+ ADD CONSTRAINT wireless_wirelesslan_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: wireless_wirelesslangroup wireless_wirelesslangroup_name_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.wireless_wirelesslangroup
+ ADD CONSTRAINT wireless_wirelesslangroup_name_key UNIQUE (name);
+
+
+--
+-- Name: wireless_wirelesslangroup wireless_wirelesslangroup_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.wireless_wirelesslangroup
+ ADD CONSTRAINT wireless_wirelesslangroup_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: wireless_wirelesslangroup wireless_wirelesslangroup_slug_key; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.wireless_wirelesslangroup
+ ADD CONSTRAINT wireless_wirelesslangroup_slug_key UNIQUE (slug);
+
+
+--
+-- Name: wireless_wirelesslangroup wireless_wirelesslangroup_unique_parent_name; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.wireless_wirelesslangroup
+ ADD CONSTRAINT wireless_wirelesslangroup_unique_parent_name UNIQUE (parent_id, name);
+
+
+--
+-- Name: wireless_wirelesslink wireless_wirelesslink_pkey; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.wireless_wirelesslink
+ ADD CONSTRAINT wireless_wirelesslink_pkey PRIMARY KEY (id);
+
+
+--
+-- Name: wireless_wirelesslink wireless_wirelesslink_unique_interfaces; Type: CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.wireless_wirelesslink
+ ADD CONSTRAINT wireless_wirelesslink_unique_interfaces UNIQUE (interface_a_id, interface_b_id);
+
+
+--
+-- Name: auth_group_name_a6ea08ec_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX auth_group_name_a6ea08ec_like ON public.auth_group USING btree (name varchar_pattern_ops);
+
+
+--
+-- Name: auth_group_permissions_group_id_b120cbf9; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX auth_group_permissions_group_id_b120cbf9 ON public.auth_group_permissions USING btree (group_id);
+
+
+--
+-- Name: auth_group_permissions_permission_id_84c5c92e; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX auth_group_permissions_permission_id_84c5c92e ON public.auth_group_permissions USING btree (permission_id);
+
+
+--
+-- Name: auth_permission_content_type_id_2f476e4b; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX auth_permission_content_type_id_2f476e4b ON public.auth_permission USING btree (content_type_id);
+
+
+--
+-- Name: auth_user_groups_group_id_97559544; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX auth_user_groups_group_id_97559544 ON public.auth_user_groups USING btree (group_id);
+
+
+--
+-- Name: auth_user_groups_user_id_6a12ed8b; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX auth_user_groups_user_id_6a12ed8b ON public.auth_user_groups USING btree (user_id);
+
+
+--
+-- Name: auth_user_user_permissions_permission_id_1fbb5f2c; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX auth_user_user_permissions_permission_id_1fbb5f2c ON public.auth_user_user_permissions USING btree (permission_id);
+
+
+--
+-- Name: auth_user_user_permissions_user_id_a95ead1b; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX auth_user_user_permissions_user_id_a95ead1b ON public.auth_user_user_permissions USING btree (user_id);
+
+
+--
+-- Name: auth_user_username_6821ab7c_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX auth_user_username_6821ab7c_like ON public.auth_user USING btree (username varchar_pattern_ops);
+
+
+--
+-- Name: circuits_circuit_provider_account_id_a7c8f61b; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX circuits_circuit_provider_account_id_a7c8f61b ON public.circuits_circuit USING btree (provider_account_id);
+
+
+--
+-- Name: circuits_circuit_provider_id_d9195418; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX circuits_circuit_provider_id_d9195418 ON public.circuits_circuit USING btree (provider_id);
+
+
+--
+-- Name: circuits_circuit_tenant_id_812508a5; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX circuits_circuit_tenant_id_812508a5 ON public.circuits_circuit USING btree (tenant_id);
+
+
+--
+-- Name: circuits_circuit_termination_a_id_f891adac; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX circuits_circuit_termination_a_id_f891adac ON public.circuits_circuit USING btree (termination_a_id);
+
+
+--
+-- Name: circuits_circuit_termination_z_id_377b8551; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX circuits_circuit_termination_z_id_377b8551 ON public.circuits_circuit USING btree (termination_z_id);
+
+
+--
+-- Name: circuits_circuit_type_id_1b9f485a; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX circuits_circuit_type_id_1b9f485a ON public.circuits_circuit USING btree (type_id);
+
+
+--
+-- Name: circuits_circuittermination_cable_id_35e9f703; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX circuits_circuittermination_cable_id_35e9f703 ON public.circuits_circuittermination USING btree (cable_id);
+
+
+--
+-- Name: circuits_circuittermination_circuit_id_257e87e7; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX circuits_circuittermination_circuit_id_257e87e7 ON public.circuits_circuittermination USING btree (circuit_id);
+
+
+--
+-- Name: circuits_circuittermination_provider_network_id_b0c660f1; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX circuits_circuittermination_provider_network_id_b0c660f1 ON public.circuits_circuittermination USING btree (provider_network_id);
+
+
+--
+-- Name: circuits_circuittermination_site_id_e6fe5652; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX circuits_circuittermination_site_id_e6fe5652 ON public.circuits_circuittermination USING btree (site_id);
+
+
+--
+-- Name: circuits_circuittype_name_8256ea9a_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX circuits_circuittype_name_8256ea9a_like ON public.circuits_circuittype USING btree (name varchar_pattern_ops);
+
+
+--
+-- Name: circuits_circuittype_slug_9b4b3cf9_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX circuits_circuittype_slug_9b4b3cf9_like ON public.circuits_circuittype USING btree (slug varchar_pattern_ops);
+
+
+--
+-- Name: circuits_provider_asns_asn_id_0a6c53b3; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX circuits_provider_asns_asn_id_0a6c53b3 ON public.circuits_provider_asns USING btree (asn_id);
+
+
+--
+-- Name: circuits_provider_asns_provider_id_becc3f7e; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX circuits_provider_asns_provider_id_becc3f7e ON public.circuits_provider_asns USING btree (provider_id);
+
+
+--
+-- Name: circuits_provider_name_8f2514f5_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX circuits_provider_name_8f2514f5_like ON public.circuits_provider USING btree (name varchar_pattern_ops);
+
+
+--
+-- Name: circuits_provider_slug_c3c0aa10_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX circuits_provider_slug_c3c0aa10_like ON public.circuits_provider USING btree (slug varchar_pattern_ops);
+
+
+--
+-- Name: circuits_provideraccount_provider_id_4bcd7e50; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX circuits_provideraccount_provider_id_4bcd7e50 ON public.circuits_provideraccount USING btree (provider_id);
+
+
+--
+-- Name: circuits_provideraccount_unique_provider_name; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE UNIQUE INDEX circuits_provideraccount_unique_provider_name ON public.circuits_provideraccount USING btree (provider_id, name) WHERE (NOT ((name)::text = ''::text));
+
+
+--
+-- Name: circuits_providernetwork_provider_id_7992236c; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX circuits_providernetwork_provider_id_7992236c ON public.circuits_providernetwork USING btree (provider_id);
+
+
+--
+-- Name: core_autosy_object__c17bac_idx; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX core_autosy_object__c17bac_idx ON public.core_autosyncrecord USING btree (object_type_id, object_id);
+
+
+--
+-- Name: core_autosyncrecord_datafile_id_f2aad29e; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX core_autosyncrecord_datafile_id_f2aad29e ON public.core_autosyncrecord USING btree (datafile_id);
+
+
+--
+-- Name: core_autosyncrecord_object_type_id_62506cf6; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX core_autosyncrecord_object_type_id_62506cf6 ON public.core_autosyncrecord USING btree (object_type_id);
+
+
+--
+-- Name: core_datafile_source_id_8d675be2; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX core_datafile_source_id_8d675be2 ON public.core_datafile USING btree (source_id);
+
+
+--
+-- Name: core_datafile_source_path; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX core_datafile_source_path ON public.core_datafile USING btree (source_id, path);
+
+
+--
+-- Name: core_datasource_name_17788499_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX core_datasource_name_17788499_like ON public.core_datasource USING btree (name varchar_pattern_ops);
+
+
+--
+-- Name: core_job_object__c664ac_idx; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX core_job_object__c664ac_idx ON public.core_job USING btree (object_type_id, object_id);
+
+
+--
+-- Name: core_job_object_type_id_ea17469a; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX core_job_object_type_id_ea17469a ON public.core_job USING btree (object_type_id);
+
+
+--
+-- Name: core_job_user_id_b69eefda; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX core_job_user_id_b69eefda ON public.core_job USING btree (user_id);
+
+
+--
+-- Name: core_managedfile_data_file_id_2b6fc95e; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX core_managedfile_data_file_id_2b6fc95e ON public.core_managedfile USING btree (data_file_id);
+
+
+--
+-- Name: core_managedfile_data_source_id_647d5dbe; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX core_managedfile_data_source_id_647d5dbe ON public.core_managedfile USING btree (data_source_id);
+
+
+--
+-- Name: core_managedfile_root_path; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX core_managedfile_root_path ON public.core_managedfile USING btree (file_root, file_path);
+
+
+--
+-- Name: dcim_cable_tenant_id_3a7fdbb8; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_cable_tenant_id_3a7fdbb8 ON public.dcim_cable USING btree (tenant_id);
+
+
+--
+-- Name: dcim_cablet_termina_884752_idx; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_cablet_termina_884752_idx ON public.dcim_cabletermination USING btree (termination_type_id, termination_id);
+
+
+--
+-- Name: dcim_cabletermination__device_id_f5884934; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_cabletermination__device_id_f5884934 ON public.dcim_cabletermination USING btree (_device_id);
+
+
+--
+-- Name: dcim_cabletermination__location_id_ff4be503; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_cabletermination__location_id_ff4be503 ON public.dcim_cabletermination USING btree (_location_id);
+
+
+--
+-- Name: dcim_cabletermination__rack_id_83a548e1; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_cabletermination__rack_id_83a548e1 ON public.dcim_cabletermination USING btree (_rack_id);
+
+
+--
+-- Name: dcim_cabletermination__site_id_616962fa; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_cabletermination__site_id_616962fa ON public.dcim_cabletermination USING btree (_site_id);
+
+
+--
+-- Name: dcim_cabletermination_cable_id_b50010d1; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_cabletermination_cable_id_b50010d1 ON public.dcim_cabletermination USING btree (cable_id);
+
+
+--
+-- Name: dcim_cabletermination_termination_type_id_20da439e; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_cabletermination_termination_type_id_20da439e ON public.dcim_cabletermination USING btree (termination_type_id);
+
+
+--
+-- Name: dcim_consoleport__path_id_e40a4436; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_consoleport__path_id_e40a4436 ON public.dcim_consoleport USING btree (_path_id);
+
+
+--
+-- Name: dcim_consoleport_cable_id_a9ae5465; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_consoleport_cable_id_a9ae5465 ON public.dcim_consoleport USING btree (cable_id);
+
+
+--
+-- Name: dcim_consoleport_device_id_f2d90d3c; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_consoleport_device_id_f2d90d3c ON public.dcim_consoleport USING btree (device_id);
+
+
+--
+-- Name: dcim_consoleport_module_id_d17b2519; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_consoleport_module_id_d17b2519 ON public.dcim_consoleport USING btree (module_id);
+
+
+--
+-- Name: dcim_consoleporttemplate_device_type_id_075d4015; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_consoleporttemplate_device_type_id_075d4015 ON public.dcim_consoleporttemplate USING btree (device_type_id);
+
+
+--
+-- Name: dcim_consoleporttemplate_module_type_id_c0f35d97; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_consoleporttemplate_module_type_id_c0f35d97 ON public.dcim_consoleporttemplate USING btree (module_type_id);
+
+
+--
+-- Name: dcim_consoleserverport__path_id_dc5abe09; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_consoleserverport__path_id_dc5abe09 ON public.dcim_consoleserverport USING btree (_path_id);
+
+
+--
+-- Name: dcim_consoleserverport_cable_id_f2940dfd; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_consoleserverport_cable_id_f2940dfd ON public.dcim_consoleserverport USING btree (cable_id);
+
+
+--
+-- Name: dcim_consoleserverport_device_id_d9866581; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_consoleserverport_device_id_d9866581 ON public.dcim_consoleserverport USING btree (device_id);
+
+
+--
+-- Name: dcim_consoleserverport_module_id_d060cfc8; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_consoleserverport_module_id_d060cfc8 ON public.dcim_consoleserverport USING btree (module_id);
+
+
+--
+-- Name: dcim_consoleserverporttemplate_device_type_id_579bdc86; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_consoleserverporttemplate_device_type_id_579bdc86 ON public.dcim_consoleserverporttemplate USING btree (device_type_id);
+
+
+--
+-- Name: dcim_consoleserverporttemplate_module_type_id_4abf751a; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_consoleserverporttemplate_module_type_id_4abf751a ON public.dcim_consoleserverporttemplate USING btree (module_type_id);
+
+
+--
+-- Name: dcim_device_asset_tag_8dac1079_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_device_asset_tag_8dac1079_like ON public.dcim_device USING btree (asset_tag varchar_pattern_ops);
+
+
+--
+-- Name: dcim_device_cluster_id_cf852f78; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_device_cluster_id_cf852f78 ON public.dcim_device USING btree (cluster_id);
+
+
+--
+-- Name: dcim_device_config_template_id_316328c4; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_device_config_template_id_316328c4 ON public.dcim_device USING btree (config_template_id);
+
+
+--
+-- Name: dcim_device_device_role_id_682e8188; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_device_device_role_id_682e8188 ON public.dcim_device USING btree (role_id);
+
+
+--
+-- Name: dcim_device_device_type_id_d61b4086; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_device_device_type_id_d61b4086 ON public.dcim_device USING btree (device_type_id);
+
+
+--
+-- Name: dcim_device_location_id_11a7bedb; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_device_location_id_11a7bedb ON public.dcim_device USING btree (location_id);
+
+
+--
+-- Name: dcim_device_platform_id_468138f1; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_device_platform_id_468138f1 ON public.dcim_device USING btree (platform_id);
+
+
+--
+-- Name: dcim_device_rack_id_23bde71f; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_device_rack_id_23bde71f ON public.dcim_device USING btree (rack_id);
+
+
+--
+-- Name: dcim_device_site_id_ff897cf6; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_device_site_id_ff897cf6 ON public.dcim_device USING btree (site_id);
+
+
+--
+-- Name: dcim_device_tenant_id_dcea7969; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_device_tenant_id_dcea7969 ON public.dcim_device USING btree (tenant_id);
+
+
+--
+-- Name: dcim_device_unique_name_site; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE UNIQUE INDEX dcim_device_unique_name_site ON public.dcim_device USING btree (lower((name)::text), site_id) WHERE (tenant_id IS NULL);
+
+
+--
+-- Name: dcim_device_unique_name_site_tenant; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE UNIQUE INDEX dcim_device_unique_name_site_tenant ON public.dcim_device USING btree (lower((name)::text), site_id, tenant_id);
+
+
+--
+-- Name: dcim_device_virtual_chassis_id_aed51693; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_device_virtual_chassis_id_aed51693 ON public.dcim_device USING btree (virtual_chassis_id);
+
+
+--
+-- Name: dcim_devicebay_device_id_0c8a1218; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_devicebay_device_id_0c8a1218 ON public.dcim_devicebay USING btree (device_id);
+
+
+--
+-- Name: dcim_devicebaytemplate_device_type_id_f4b24a29; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_devicebaytemplate_device_type_id_f4b24a29 ON public.dcim_devicebaytemplate USING btree (device_type_id);
+
+
+--
+-- Name: dcim_devicerole_config_template_id_5874002c; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_devicerole_config_template_id_5874002c ON public.dcim_devicerole USING btree (config_template_id);
+
+
+--
+-- Name: dcim_devicerole_name_1c813306_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_devicerole_name_1c813306_like ON public.dcim_devicerole USING btree (name varchar_pattern_ops);
+
+
+--
+-- Name: dcim_devicerole_slug_7952643b_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_devicerole_slug_7952643b_like ON public.dcim_devicerole USING btree (slug varchar_pattern_ops);
+
+
+--
+-- Name: dcim_devicetype_default_platform_id_1f6ff6ac; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_devicetype_default_platform_id_1f6ff6ac ON public.dcim_devicetype USING btree (default_platform_id);
+
+
+--
+-- Name: dcim_devicetype_manufacturer_id_a3e8029e; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_devicetype_manufacturer_id_a3e8029e ON public.dcim_devicetype USING btree (manufacturer_id);
+
+
+--
+-- Name: dcim_devicetype_slug_448745bd; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_devicetype_slug_448745bd ON public.dcim_devicetype USING btree (slug);
+
+
+--
+-- Name: dcim_devicetype_slug_448745bd_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_devicetype_slug_448745bd_like ON public.dcim_devicetype USING btree (slug varchar_pattern_ops);
+
+
+--
+-- Name: dcim_frontport_cable_id_04ff8aab; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_frontport_cable_id_04ff8aab ON public.dcim_frontport USING btree (cable_id);
+
+
+--
+-- Name: dcim_frontport_device_id_950557b5; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_frontport_device_id_950557b5 ON public.dcim_frontport USING btree (device_id);
+
+
+--
+-- Name: dcim_frontport_module_id_952c3f9a; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_frontport_module_id_952c3f9a ON public.dcim_frontport USING btree (module_id);
+
+
+--
+-- Name: dcim_frontport_rear_port_id_78df2532; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_frontport_rear_port_id_78df2532 ON public.dcim_frontport USING btree (rear_port_id);
+
+
+--
+-- Name: dcim_frontporttemplate_device_type_id_f088b952; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_frontporttemplate_device_type_id_f088b952 ON public.dcim_frontporttemplate USING btree (device_type_id);
+
+
+--
+-- Name: dcim_frontporttemplate_module_type_id_66851ff9; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_frontporttemplate_module_type_id_66851ff9 ON public.dcim_frontporttemplate USING btree (module_type_id);
+
+
+--
+-- Name: dcim_frontporttemplate_rear_port_id_9775411b; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_frontporttemplate_rear_port_id_9775411b ON public.dcim_frontporttemplate USING btree (rear_port_id);
+
+
+--
+-- Name: dcim_interface__path_id_f8f4f7f0; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_interface__path_id_f8f4f7f0 ON public.dcim_interface USING btree (_path_id);
+
+
+--
+-- Name: dcim_interface_bridge_id_f2a8df85; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_interface_bridge_id_f2a8df85 ON public.dcim_interface USING btree (bridge_id);
+
+
+--
+-- Name: dcim_interface_cable_id_1b264edb; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_interface_cable_id_1b264edb ON public.dcim_interface USING btree (cable_id);
+
+
+--
+-- Name: dcim_interface_device_id_359c6115; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_interface_device_id_359c6115 ON public.dcim_interface USING btree (device_id);
+
+
+--
+-- Name: dcim_interface_lag_id_ea1a1d12; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_interface_lag_id_ea1a1d12 ON public.dcim_interface USING btree (lag_id);
+
+
+--
+-- Name: dcim_interface_module_id_05ca2da5; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_interface_module_id_05ca2da5 ON public.dcim_interface USING btree (module_id);
+
+
+--
+-- Name: dcim_interface_parent_id_3e2b159b; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_interface_parent_id_3e2b159b ON public.dcim_interface USING btree (parent_id);
+
+
+--
+-- Name: dcim_interface_tagged_vlans_interface_id_5870c9e9; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_interface_tagged_vlans_interface_id_5870c9e9 ON public.dcim_interface_tagged_vlans USING btree (interface_id);
+
+
+--
+-- Name: dcim_interface_tagged_vlans_vlan_id_e027005c; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_interface_tagged_vlans_vlan_id_e027005c ON public.dcim_interface_tagged_vlans USING btree (vlan_id);
+
+
+--
+-- Name: dcim_interface_untagged_vlan_id_838dc7be; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_interface_untagged_vlan_id_838dc7be ON public.dcim_interface USING btree (untagged_vlan_id);
+
+
+--
+-- Name: dcim_interface_vdcs_interface_id_6d58dbaf; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_interface_vdcs_interface_id_6d58dbaf ON public.dcim_interface_vdcs USING btree (interface_id);
+
+
+--
+-- Name: dcim_interface_vdcs_virtualdevicecontext_id_af0bfd4b; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_interface_vdcs_virtualdevicecontext_id_af0bfd4b ON public.dcim_interface_vdcs USING btree (virtualdevicecontext_id);
+
+
+--
+-- Name: dcim_interface_vrf_id_a92e59b2; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_interface_vrf_id_a92e59b2 ON public.dcim_interface USING btree (vrf_id);
+
+
+--
+-- Name: dcim_interface_wireless_lans_interface_id_80df3785; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_interface_wireless_lans_interface_id_80df3785 ON public.dcim_interface_wireless_lans USING btree (interface_id);
+
+
+--
+-- Name: dcim_interface_wireless_lans_wirelesslan_id_f081e278; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_interface_wireless_lans_wirelesslan_id_f081e278 ON public.dcim_interface_wireless_lans USING btree (wirelesslan_id);
+
+
+--
+-- Name: dcim_interface_wireless_link_id_bc91108f; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_interface_wireless_link_id_bc91108f ON public.dcim_interface USING btree (wireless_link_id);
+
+
+--
+-- Name: dcim_interfacetemplate_bridge_id_4e44355b; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_interfacetemplate_bridge_id_4e44355b ON public.dcim_interfacetemplate USING btree (bridge_id);
+
+
+--
+-- Name: dcim_interfacetemplate_device_type_id_4bfcbfab; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_interfacetemplate_device_type_id_4bfcbfab ON public.dcim_interfacetemplate USING btree (device_type_id);
+
+
+--
+-- Name: dcim_interfacetemplate_module_type_id_f941f180; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_interfacetemplate_module_type_id_f941f180 ON public.dcim_interfacetemplate USING btree (module_type_id);
+
+
+--
+-- Name: dcim_invent_compone_0560bb_idx; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_invent_compone_0560bb_idx ON public.dcim_inventoryitem USING btree (component_type_id, component_id);
+
+
+--
+-- Name: dcim_invent_compone_77b5f8_idx; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_invent_compone_77b5f8_idx ON public.dcim_inventoryitemtemplate USING btree (component_type_id, component_id);
+
+
+--
+-- Name: dcim_inventoryitem_asset_tag_d3289273_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_inventoryitem_asset_tag_d3289273_like ON public.dcim_inventoryitem USING btree (asset_tag varchar_pattern_ops);
+
+
+--
+-- Name: dcim_inventoryitem_component_type_id_f0e4d83a; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_inventoryitem_component_type_id_f0e4d83a ON public.dcim_inventoryitem USING btree (component_type_id);
+
+
+--
+-- Name: dcim_inventoryitem_device_id_033d83f8; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_inventoryitem_device_id_033d83f8 ON public.dcim_inventoryitem USING btree (device_id);
+
+
+--
+-- Name: dcim_inventoryitem_manufacturer_id_dcd1b78a; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_inventoryitem_manufacturer_id_dcd1b78a ON public.dcim_inventoryitem USING btree (manufacturer_id);
+
+
+--
+-- Name: dcim_inventoryitem_parent_id_7ebcd457; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_inventoryitem_parent_id_7ebcd457 ON public.dcim_inventoryitem USING btree (parent_id);
+
+
+--
+-- Name: dcim_inventoryitem_role_id_2bcfcb04; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_inventoryitem_role_id_2bcfcb04 ON public.dcim_inventoryitem USING btree (role_id);
+
+
+--
+-- Name: dcim_inventoryitem_tree_id_4676ade2; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_inventoryitem_tree_id_4676ade2 ON public.dcim_inventoryitem USING btree (tree_id);
+
+
+--
+-- Name: dcim_inventoryitemrole_name_4c8cfe6d_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_inventoryitemrole_name_4c8cfe6d_like ON public.dcim_inventoryitemrole USING btree (name varchar_pattern_ops);
+
+
+--
+-- Name: dcim_inventoryitemrole_slug_3556c227_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_inventoryitemrole_slug_3556c227_like ON public.dcim_inventoryitemrole USING btree (slug varchar_pattern_ops);
+
+
+--
+-- Name: dcim_inventoryitemtemplate_component_type_id_161623a2; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_inventoryitemtemplate_component_type_id_161623a2 ON public.dcim_inventoryitemtemplate USING btree (component_type_id);
+
+
+--
+-- Name: dcim_inventoryitemtemplate_device_type_id_6a1be904; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_inventoryitemtemplate_device_type_id_6a1be904 ON public.dcim_inventoryitemtemplate USING btree (device_type_id);
+
+
+--
+-- Name: dcim_inventoryitemtemplate_manufacturer_id_b388c5d9; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_inventoryitemtemplate_manufacturer_id_b388c5d9 ON public.dcim_inventoryitemtemplate USING btree (manufacturer_id);
+
+
+--
+-- Name: dcim_inventoryitemtemplate_parent_id_0dac73bb; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_inventoryitemtemplate_parent_id_0dac73bb ON public.dcim_inventoryitemtemplate USING btree (parent_id);
+
+
+--
+-- Name: dcim_inventoryitemtemplate_role_id_292676e6; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_inventoryitemtemplate_role_id_292676e6 ON public.dcim_inventoryitemtemplate USING btree (role_id);
+
+
+--
+-- Name: dcim_inventoryitemtemplate_tree_id_75ebcb8e; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_inventoryitemtemplate_tree_id_75ebcb8e ON public.dcim_inventoryitemtemplate USING btree (tree_id);
+
+
+--
+-- Name: dcim_location_name; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE UNIQUE INDEX dcim_location_name ON public.dcim_location USING btree (site_id, name) WHERE (parent_id IS NULL);
+
+
+--
+-- Name: dcim_location_parent_id_d77f3318; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_location_parent_id_d77f3318 ON public.dcim_location USING btree (parent_id);
+
+
+--
+-- Name: dcim_location_site_id_b55e975f; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_location_site_id_b55e975f ON public.dcim_location USING btree (site_id);
+
+
+--
+-- Name: dcim_location_slug; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE UNIQUE INDEX dcim_location_slug ON public.dcim_location USING btree (site_id, slug) WHERE (parent_id IS NULL);
+
+
+--
+-- Name: dcim_location_slug_352c5472; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_location_slug_352c5472 ON public.dcim_location USING btree (slug);
+
+
+--
+-- Name: dcim_location_slug_352c5472_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_location_slug_352c5472_like ON public.dcim_location USING btree (slug varchar_pattern_ops);
+
+
+--
+-- Name: dcim_location_tenant_id_2c4df974; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_location_tenant_id_2c4df974 ON public.dcim_location USING btree (tenant_id);
+
+
+--
+-- Name: dcim_location_tree_id_5089ef14; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_location_tree_id_5089ef14 ON public.dcim_location USING btree (tree_id);
+
+
+--
+-- Name: dcim_manufacturer_name_841fcd92_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_manufacturer_name_841fcd92_like ON public.dcim_manufacturer USING btree (name varchar_pattern_ops);
+
+
+--
+-- Name: dcim_manufacturer_slug_00430749_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_manufacturer_slug_00430749_like ON public.dcim_manufacturer USING btree (slug varchar_pattern_ops);
+
+
+--
+-- Name: dcim_module_asset_tag_2fd91eed_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_module_asset_tag_2fd91eed_like ON public.dcim_module USING btree (asset_tag varchar_pattern_ops);
+
+
+--
+-- Name: dcim_module_device_id_53cfd5be; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_module_device_id_53cfd5be ON public.dcim_module USING btree (device_id);
+
+
+--
+-- Name: dcim_module_module_type_id_a50b39fc; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_module_module_type_id_a50b39fc ON public.dcim_module USING btree (module_type_id);
+
+
+--
+-- Name: dcim_modulebay_device_id_3526abc2; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_modulebay_device_id_3526abc2 ON public.dcim_modulebay USING btree (device_id);
+
+
+--
+-- Name: dcim_modulebaytemplate_device_type_id_9eaf9bd3; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_modulebaytemplate_device_type_id_9eaf9bd3 ON public.dcim_modulebaytemplate USING btree (device_type_id);
+
+
+--
+-- Name: dcim_moduletype_manufacturer_id_7347392e; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_moduletype_manufacturer_id_7347392e ON public.dcim_moduletype USING btree (manufacturer_id);
+
+
+--
+-- Name: dcim_platform_config_template_id_013a4d3c; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_platform_config_template_id_013a4d3c ON public.dcim_platform USING btree (config_template_id);
+
+
+--
+-- Name: dcim_platform_manufacturer_id_83f72d3d; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_platform_manufacturer_id_83f72d3d ON public.dcim_platform USING btree (manufacturer_id);
+
+
+--
+-- Name: dcim_platform_name_c2f04255_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_platform_name_c2f04255_like ON public.dcim_platform USING btree (name varchar_pattern_ops);
+
+
+--
+-- Name: dcim_platform_slug_b0908ae4_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_platform_slug_b0908ae4_like ON public.dcim_platform USING btree (slug varchar_pattern_ops);
+
+
+--
+-- Name: dcim_powerfeed__path_id_a1ea1f28; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_powerfeed__path_id_a1ea1f28 ON public.dcim_powerfeed USING btree (_path_id);
+
+
+--
+-- Name: dcim_powerfeed_cable_id_ec44c4f8; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_powerfeed_cable_id_ec44c4f8 ON public.dcim_powerfeed USING btree (cable_id);
+
+
+--
+-- Name: dcim_powerfeed_power_panel_id_32bde3be; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_powerfeed_power_panel_id_32bde3be ON public.dcim_powerfeed USING btree (power_panel_id);
+
+
+--
+-- Name: dcim_powerfeed_rack_id_7abba090; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_powerfeed_rack_id_7abba090 ON public.dcim_powerfeed USING btree (rack_id);
+
+
+--
+-- Name: dcim_powerfeed_tenant_id_947bee85; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_powerfeed_tenant_id_947bee85 ON public.dcim_powerfeed USING btree (tenant_id);
+
+
+--
+-- Name: dcim_poweroutlet__path_id_cbb47bb9; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_poweroutlet__path_id_cbb47bb9 ON public.dcim_poweroutlet USING btree (_path_id);
+
+
+--
+-- Name: dcim_poweroutlet_cable_id_8dbea1ec; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_poweroutlet_cable_id_8dbea1ec ON public.dcim_poweroutlet USING btree (cable_id);
+
+
+--
+-- Name: dcim_poweroutlet_device_id_286351d7; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_poweroutlet_device_id_286351d7 ON public.dcim_poweroutlet USING btree (device_id);
+
+
+--
+-- Name: dcim_poweroutlet_module_id_032f5af2; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_poweroutlet_module_id_032f5af2 ON public.dcim_poweroutlet USING btree (module_id);
+
+
+--
+-- Name: dcim_poweroutlet_power_port_id_9bdf4163; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_poweroutlet_power_port_id_9bdf4163 ON public.dcim_poweroutlet USING btree (power_port_id);
+
+
+--
+-- Name: dcim_poweroutlettemplate_device_type_id_26b2316c; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_poweroutlettemplate_device_type_id_26b2316c ON public.dcim_poweroutlettemplate USING btree (device_type_id);
+
+
+--
+-- Name: dcim_poweroutlettemplate_module_type_id_6142b416; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_poweroutlettemplate_module_type_id_6142b416 ON public.dcim_poweroutlettemplate USING btree (module_type_id);
+
+
+--
+-- Name: dcim_poweroutlettemplate_power_port_id_c0fb0c42; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_poweroutlettemplate_power_port_id_c0fb0c42 ON public.dcim_poweroutlettemplate USING btree (power_port_id);
+
+
+--
+-- Name: dcim_powerpanel_location_id_474b60f8; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_powerpanel_location_id_474b60f8 ON public.dcim_powerpanel USING btree (location_id);
+
+
+--
+-- Name: dcim_powerpanel_site_id_c430bc89; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_powerpanel_site_id_c430bc89 ON public.dcim_powerpanel USING btree (site_id);
+
+
+--
+-- Name: dcim_powerport__path_id_9fe4af8f; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_powerport__path_id_9fe4af8f ON public.dcim_powerport USING btree (_path_id);
+
+
+--
+-- Name: dcim_powerport_cable_id_c9682ba2; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_powerport_cable_id_c9682ba2 ON public.dcim_powerport USING btree (cable_id);
+
+
+--
+-- Name: dcim_powerport_device_id_ef7185ae; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_powerport_device_id_ef7185ae ON public.dcim_powerport USING btree (device_id);
+
+
+--
+-- Name: dcim_powerport_module_id_d0c27534; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_powerport_module_id_d0c27534 ON public.dcim_powerport USING btree (module_id);
+
+
+--
+-- Name: dcim_powerporttemplate_device_type_id_1ddfbfcc; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_powerporttemplate_device_type_id_1ddfbfcc ON public.dcim_powerporttemplate USING btree (device_type_id);
+
+
+--
+-- Name: dcim_powerporttemplate_module_type_id_93e26849; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_powerporttemplate_module_type_id_93e26849 ON public.dcim_powerporttemplate USING btree (module_type_id);
+
+
+--
+-- Name: dcim_rack_asset_tag_f88408e5_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_rack_asset_tag_f88408e5_like ON public.dcim_rack USING btree (asset_tag varchar_pattern_ops);
+
+
+--
+-- Name: dcim_rack_location_id_5f63ec31; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_rack_location_id_5f63ec31 ON public.dcim_rack USING btree (location_id);
+
+
+--
+-- Name: dcim_rack_role_id_62d6919e; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_rack_role_id_62d6919e ON public.dcim_rack USING btree (role_id);
+
+
+--
+-- Name: dcim_rack_site_id_403c7b3a; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_rack_site_id_403c7b3a ON public.dcim_rack USING btree (site_id);
+
+
+--
+-- Name: dcim_rack_tenant_id_7cdf3725; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_rack_tenant_id_7cdf3725 ON public.dcim_rack USING btree (tenant_id);
+
+
+--
+-- Name: dcim_rackreservation_rack_id_1ebbaa9b; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_rackreservation_rack_id_1ebbaa9b ON public.dcim_rackreservation USING btree (rack_id);
+
+
+--
+-- Name: dcim_rackreservation_tenant_id_eb5e045f; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_rackreservation_tenant_id_eb5e045f ON public.dcim_rackreservation USING btree (tenant_id);
+
+
+--
+-- Name: dcim_rackreservation_user_id_0785a527; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_rackreservation_user_id_0785a527 ON public.dcim_rackreservation USING btree (user_id);
+
+
+--
+-- Name: dcim_rackrole_name_9077cfcc_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_rackrole_name_9077cfcc_like ON public.dcim_rackrole USING btree (name varchar_pattern_ops);
+
+
+--
+-- Name: dcim_rackrole_slug_40bbcd3a_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_rackrole_slug_40bbcd3a_like ON public.dcim_rackrole USING btree (slug varchar_pattern_ops);
+
+
+--
+-- Name: dcim_rearport_cable_id_42c0e4e7; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_rearport_cable_id_42c0e4e7 ON public.dcim_rearport USING btree (cable_id);
+
+
+--
+-- Name: dcim_rearport_device_id_0bdfe9c0; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_rearport_device_id_0bdfe9c0 ON public.dcim_rearport USING btree (device_id);
+
+
+--
+-- Name: dcim_rearport_module_id_9a7b7e91; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_rearport_module_id_9a7b7e91 ON public.dcim_rearport USING btree (module_id);
+
+
+--
+-- Name: dcim_rearporttemplate_device_type_id_6a02fd01; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_rearporttemplate_device_type_id_6a02fd01 ON public.dcim_rearporttemplate USING btree (device_type_id);
+
+
+--
+-- Name: dcim_rearporttemplate_module_type_id_4d970e5b; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_rearporttemplate_module_type_id_4d970e5b ON public.dcim_rearporttemplate USING btree (module_type_id);
+
+
+--
+-- Name: dcim_region_name; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE UNIQUE INDEX dcim_region_name ON public.dcim_region USING btree (name) WHERE (parent_id IS NULL);
+
+
+--
+-- Name: dcim_region_parent_id_2486f5d4; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_region_parent_id_2486f5d4 ON public.dcim_region USING btree (parent_id);
+
+
+--
+-- Name: dcim_region_slug; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE UNIQUE INDEX dcim_region_slug ON public.dcim_region USING btree (slug) WHERE (parent_id IS NULL);
+
+
+--
+-- Name: dcim_region_slug_ff078a66; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_region_slug_ff078a66 ON public.dcim_region USING btree (slug);
+
+
+--
+-- Name: dcim_region_slug_ff078a66_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_region_slug_ff078a66_like ON public.dcim_region USING btree (slug varchar_pattern_ops);
+
+
+--
+-- Name: dcim_region_tree_id_a09ea9a7; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_region_tree_id_a09ea9a7 ON public.dcim_region USING btree (tree_id);
+
+
+--
+-- Name: dcim_site_asns_asn_id_3cfd0f00; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_site_asns_asn_id_3cfd0f00 ON public.dcim_site_asns USING btree (asn_id);
+
+
+--
+-- Name: dcim_site_asns_site_id_112ccacf; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_site_asns_site_id_112ccacf ON public.dcim_site_asns USING btree (site_id);
+
+
+--
+-- Name: dcim_site_group_id_3910c975; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_site_group_id_3910c975 ON public.dcim_site USING btree (group_id);
+
+
+--
+-- Name: dcim_site_name_8fe66c76_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_site_name_8fe66c76_like ON public.dcim_site USING btree (name varchar_pattern_ops);
+
+
+--
+-- Name: dcim_site_region_id_45210932; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_site_region_id_45210932 ON public.dcim_site USING btree (region_id);
+
+
+--
+-- Name: dcim_site_slug_4412c762_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_site_slug_4412c762_like ON public.dcim_site USING btree (slug varchar_pattern_ops);
+
+
+--
+-- Name: dcim_site_tenant_id_15e7df63; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_site_tenant_id_15e7df63 ON public.dcim_site USING btree (tenant_id);
+
+
+--
+-- Name: dcim_sitegroup_name; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE UNIQUE INDEX dcim_sitegroup_name ON public.dcim_sitegroup USING btree (name) WHERE (parent_id IS NULL);
+
+
+--
+-- Name: dcim_sitegroup_parent_id_533a5e44; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_sitegroup_parent_id_533a5e44 ON public.dcim_sitegroup USING btree (parent_id);
+
+
+--
+-- Name: dcim_sitegroup_slug; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE UNIQUE INDEX dcim_sitegroup_slug ON public.dcim_sitegroup USING btree (slug) WHERE (parent_id IS NULL);
+
+
+--
+-- Name: dcim_sitegroup_slug_a11d2b04; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_sitegroup_slug_a11d2b04 ON public.dcim_sitegroup USING btree (slug);
+
+
+--
+-- Name: dcim_sitegroup_slug_a11d2b04_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_sitegroup_slug_a11d2b04_like ON public.dcim_sitegroup USING btree (slug varchar_pattern_ops);
+
+
+--
+-- Name: dcim_sitegroup_tree_id_e76dc999; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_sitegroup_tree_id_e76dc999 ON public.dcim_sitegroup USING btree (tree_id);
+
+
+--
+-- Name: dcim_virtualdevicecontext_device_id_4f39274b; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_virtualdevicecontext_device_id_4f39274b ON public.dcim_virtualdevicecontext USING btree (device_id);
+
+
+--
+-- Name: dcim_virtualdevicecontext_tenant_id_b6a21753; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX dcim_virtualdevicecontext_tenant_id_b6a21753 ON public.dcim_virtualdevicecontext USING btree (tenant_id);
+
+
+--
+-- Name: django_admin_log_content_type_id_c4bce8eb; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX django_admin_log_content_type_id_c4bce8eb ON public.django_admin_log USING btree (content_type_id);
+
+
+--
+-- Name: django_admin_log_user_id_c564eba6; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX django_admin_log_user_id_c564eba6 ON public.django_admin_log USING btree (user_id);
+
+
+--
+-- Name: django_session_expire_date_a5c62663; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX django_session_expire_date_a5c62663 ON public.django_session USING btree (expire_date);
+
+
+--
+-- Name: django_session_session_key_c0390e0f_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX django_session_session_key_c0390e0f_like ON public.django_session USING btree (session_key varchar_pattern_ops);
+
+
+--
+-- Name: extras_book_object__2df6b4_idx; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_book_object__2df6b4_idx ON public.extras_bookmark USING btree (object_type_id, object_id);
+
+
+--
+-- Name: extras_bookmark_object_type_id_18c4bb44; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_bookmark_object_type_id_18c4bb44 ON public.extras_bookmark USING btree (object_type_id);
+
+
+--
+-- Name: extras_bookmark_user_id_cb6c6677; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_bookmark_user_id_cb6c6677 ON public.extras_bookmark USING btree (user_id);
+
+
+--
+-- Name: extras_branch_name_1d13739f_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_branch_name_1d13739f_like ON public.extras_branch USING btree (name varchar_pattern_ops);
+
+
+--
+-- Name: extras_branch_user_id_a6cfd338; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_branch_user_id_a6cfd338 ON public.extras_branch USING btree (user_id);
+
+
+--
+-- Name: extras_cachedvalue_object; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_cachedvalue_object ON public.extras_cachedvalue USING btree (object_type_id, object_id);
+
+
+--
+-- Name: extras_cachedvalue_object_type_id_6f47d444; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_cachedvalue_object_type_id_6f47d444 ON public.extras_cachedvalue USING btree (object_type_id);
+
+
+--
+-- Name: extras_configcontext_cluster_groups_clustergroup_id_f4322ce8; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_configcontext_cluster_groups_clustergroup_id_f4322ce8 ON public.extras_configcontext_cluster_groups USING btree (clustergroup_id);
+
+
+--
+-- Name: extras_configcontext_cluster_groups_configcontext_id_8f50b794; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_configcontext_cluster_groups_configcontext_id_8f50b794 ON public.extras_configcontext_cluster_groups USING btree (configcontext_id);
+
+
+--
+-- Name: extras_configcontext_cluster_types_clustertype_id_fa493b64; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_configcontext_cluster_types_clustertype_id_fa493b64 ON public.extras_configcontext_cluster_types USING btree (clustertype_id);
+
+
+--
+-- Name: extras_configcontext_cluster_types_configcontext_id_d549b6f2; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_configcontext_cluster_types_configcontext_id_d549b6f2 ON public.extras_configcontext_cluster_types USING btree (configcontext_id);
+
+
+--
+-- Name: extras_configcontext_clusters_cluster_id_6abd47a1; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_configcontext_clusters_cluster_id_6abd47a1 ON public.extras_configcontext_clusters USING btree (cluster_id);
+
+
+--
+-- Name: extras_configcontext_clusters_configcontext_id_ed579a40; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_configcontext_clusters_configcontext_id_ed579a40 ON public.extras_configcontext_clusters USING btree (configcontext_id);
+
+
+--
+-- Name: extras_configcontext_data_file_id_8fdd620b; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_configcontext_data_file_id_8fdd620b ON public.extras_configcontext USING btree (data_file_id);
+
+
+--
+-- Name: extras_configcontext_data_source_id_1b2eb8af; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_configcontext_data_source_id_1b2eb8af ON public.extras_configcontext USING btree (data_source_id);
+
+
+--
+-- Name: extras_configcontext_device_types_configcontext_id_55632923; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_configcontext_device_types_configcontext_id_55632923 ON public.extras_configcontext_device_types USING btree (configcontext_id);
+
+
+--
+-- Name: extras_configcontext_device_types_devicetype_id_b8788c2d; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_configcontext_device_types_devicetype_id_b8788c2d ON public.extras_configcontext_device_types USING btree (devicetype_id);
+
+
+--
+-- Name: extras_configcontext_locations_configcontext_id_cc629ec1; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_configcontext_locations_configcontext_id_cc629ec1 ON public.extras_configcontext_locations USING btree (configcontext_id);
+
+
+--
+-- Name: extras_configcontext_locations_location_id_9e19eac9; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_configcontext_locations_location_id_9e19eac9 ON public.extras_configcontext_locations USING btree (location_id);
+
+
+--
+-- Name: extras_configcontext_name_4bbfe25d_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_configcontext_name_4bbfe25d_like ON public.extras_configcontext USING btree (name varchar_pattern_ops);
+
+
+--
+-- Name: extras_configcontext_platforms_configcontext_id_2a516699; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_configcontext_platforms_configcontext_id_2a516699 ON public.extras_configcontext_platforms USING btree (configcontext_id);
+
+
+--
+-- Name: extras_configcontext_platforms_platform_id_3fdfedc0; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_configcontext_platforms_platform_id_3fdfedc0 ON public.extras_configcontext_platforms USING btree (platform_id);
+
+
+--
+-- Name: extras_configcontext_regions_configcontext_id_73003dbc; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_configcontext_regions_configcontext_id_73003dbc ON public.extras_configcontext_regions USING btree (configcontext_id);
+
+
+--
+-- Name: extras_configcontext_regions_region_id_35c6ba9d; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_configcontext_regions_region_id_35c6ba9d ON public.extras_configcontext_regions USING btree (region_id);
+
+
+--
+-- Name: extras_configcontext_roles_configcontext_id_59b67386; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_configcontext_roles_configcontext_id_59b67386 ON public.extras_configcontext_roles USING btree (configcontext_id);
+
+
+--
+-- Name: extras_configcontext_roles_devicerole_id_d3a84813; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_configcontext_roles_devicerole_id_d3a84813 ON public.extras_configcontext_roles USING btree (devicerole_id);
+
+
+--
+-- Name: extras_configcontext_site_groups_configcontext_id_2e0f43cb; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_configcontext_site_groups_configcontext_id_2e0f43cb ON public.extras_configcontext_site_groups USING btree (configcontext_id);
+
+
+--
+-- Name: extras_configcontext_site_groups_sitegroup_id_3287c9e7; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_configcontext_site_groups_sitegroup_id_3287c9e7 ON public.extras_configcontext_site_groups USING btree (sitegroup_id);
+
+
+--
+-- Name: extras_configcontext_sites_configcontext_id_8c54feb9; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_configcontext_sites_configcontext_id_8c54feb9 ON public.extras_configcontext_sites USING btree (configcontext_id);
+
+
+--
+-- Name: extras_configcontext_sites_site_id_cbb76c96; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_configcontext_sites_site_id_cbb76c96 ON public.extras_configcontext_sites USING btree (site_id);
+
+
+--
+-- Name: extras_configcontext_tags_configcontext_id_64a392b1; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_configcontext_tags_configcontext_id_64a392b1 ON public.extras_configcontext_tags USING btree (configcontext_id);
+
+
+--
+-- Name: extras_configcontext_tags_tag_id_129a5d87; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_configcontext_tags_tag_id_129a5d87 ON public.extras_configcontext_tags USING btree (tag_id);
+
+
+--
+-- Name: extras_configcontext_tenant_groups_configcontext_id_92f68345; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_configcontext_tenant_groups_configcontext_id_92f68345 ON public.extras_configcontext_tenant_groups USING btree (configcontext_id);
+
+
+--
+-- Name: extras_configcontext_tenant_groups_tenantgroup_id_0909688d; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_configcontext_tenant_groups_tenantgroup_id_0909688d ON public.extras_configcontext_tenant_groups USING btree (tenantgroup_id);
+
+
+--
+-- Name: extras_configcontext_tenants_configcontext_id_b53552a6; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_configcontext_tenants_configcontext_id_b53552a6 ON public.extras_configcontext_tenants USING btree (configcontext_id);
+
+
+--
+-- Name: extras_configcontext_tenants_tenant_id_8d0aa28e; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_configcontext_tenants_tenant_id_8d0aa28e ON public.extras_configcontext_tenants USING btree (tenant_id);
+
+
+--
+-- Name: extras_configtemplate_data_file_id_20c7cff4; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_configtemplate_data_file_id_20c7cff4 ON public.extras_configtemplate USING btree (data_file_id);
+
+
+--
+-- Name: extras_configtemplate_data_source_id_f9d26d5d; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_configtemplate_data_source_id_f9d26d5d ON public.extras_configtemplate USING btree (data_source_id);
+
+
+--
+-- Name: extras_customfield_choice_set_id_5590efc2; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_customfield_choice_set_id_5590efc2 ON public.extras_customfield USING btree (choice_set_id);
+
+
+--
+-- Name: extras_customfield_content_types_contenttype_id_2997ba90; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_customfield_content_types_contenttype_id_2997ba90 ON public.extras_customfield_content_types USING btree (contenttype_id);
+
+
+--
+-- Name: extras_customfield_content_types_customfield_id_3842aaf3; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_customfield_content_types_customfield_id_3842aaf3 ON public.extras_customfield_content_types USING btree (customfield_id);
+
+
+--
+-- Name: extras_customfield_name_2fe72707_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_customfield_name_2fe72707_like ON public.extras_customfield USING btree (name varchar_pattern_ops);
+
+
+--
+-- Name: extras_customfield_object_type_id_489f2239; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_customfield_object_type_id_489f2239 ON public.extras_customfield USING btree (object_type_id);
+
+
+--
+-- Name: extras_customfieldchoiceset_name_963e63ea_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_customfieldchoiceset_name_963e63ea_like ON public.extras_customfieldchoiceset USING btree (name varchar_pattern_ops);
+
+
+--
+-- Name: extras_customlink_content_types_contenttype_id_df5f34c2; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_customlink_content_types_contenttype_id_df5f34c2 ON public.extras_customlink_content_types USING btree (contenttype_id);
+
+
+--
+-- Name: extras_customlink_content_types_customlink_id_229ba2bc; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_customlink_content_types_customlink_id_229ba2bc ON public.extras_customlink_content_types USING btree (customlink_id);
+
+
+--
+-- Name: extras_customlink_name_daed2d18_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_customlink_name_daed2d18_like ON public.extras_customlink USING btree (name varchar_pattern_ops);
+
+
+--
+-- Name: extras_even_action__d9e2af_idx; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_even_action__d9e2af_idx ON public.extras_eventrule USING btree (action_object_type_id, action_object_id);
+
+
+--
+-- Name: extras_eventrule_action_object_type_id_1fe8a82e; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_eventrule_action_object_type_id_1fe8a82e ON public.extras_eventrule USING btree (action_object_type_id);
+
+
+--
+-- Name: extras_eventrule_content_types_contenttype_id_a704fd34; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_eventrule_content_types_contenttype_id_a704fd34 ON public.extras_eventrule_content_types USING btree (contenttype_id);
+
+
+--
+-- Name: extras_eventrule_content_types_eventrule_id_c177fa54; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_eventrule_content_types_eventrule_id_c177fa54 ON public.extras_eventrule_content_types USING btree (eventrule_id);
+
+
+--
+-- Name: extras_eventrule_name_899453c6_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_eventrule_name_899453c6_like ON public.extras_eventrule USING btree (name varchar_pattern_ops);
+
+
+--
+-- Name: extras_exporttemplate_content_types_contenttype_id_d80a5164; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_exporttemplate_content_types_contenttype_id_d80a5164 ON public.extras_exporttemplate_content_types USING btree (contenttype_id);
+
+
+--
+-- Name: extras_exporttemplate_content_types_exporttemplate_id_7645f081; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_exporttemplate_content_types_exporttemplate_id_7645f081 ON public.extras_exporttemplate_content_types USING btree (exporttemplate_id);
+
+
+--
+-- Name: extras_exporttemplate_data_file_id_40a91ef8; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_exporttemplate_data_file_id_40a91ef8 ON public.extras_exporttemplate USING btree (data_file_id);
+
+
+--
+-- Name: extras_exporttemplate_data_source_id_d61d0feb; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_exporttemplate_data_source_id_d61d0feb ON public.extras_exporttemplate USING btree (data_source_id);
+
+
+--
+-- Name: extras_imag_content_94728e_idx; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_imag_content_94728e_idx ON public.extras_imageattachment USING btree (content_type_id, object_id);
+
+
+--
+-- Name: extras_imageattachment_content_type_id_90e0643d; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_imageattachment_content_type_id_90e0643d ON public.extras_imageattachment USING btree (content_type_id);
+
+
+--
+-- Name: extras_jour_assigne_76510f_idx; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_jour_assigne_76510f_idx ON public.extras_journalentry USING btree (assigned_object_type_id, assigned_object_id);
+
+
+--
+-- Name: extras_journalentry_assigned_object_type_id_1bba9f68; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_journalentry_assigned_object_type_id_1bba9f68 ON public.extras_journalentry USING btree (assigned_object_type_id);
+
+
+--
+-- Name: extras_journalentry_created_by_id_8d4e4329; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_journalentry_created_by_id_8d4e4329 ON public.extras_journalentry USING btree (created_by_id);
+
+
+--
+-- Name: extras_obje_changed_927fe5_idx; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_obje_changed_927fe5_idx ON public.extras_objectchange USING btree (changed_object_type_id, changed_object_id);
+
+
+--
+-- Name: extras_obje_related_bfcdef_idx; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_obje_related_bfcdef_idx ON public.extras_objectchange USING btree (related_object_type_id, related_object_id);
+
+
+--
+-- Name: extras_objectchange_changed_object_type_id_b755bb60; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_objectchange_changed_object_type_id_b755bb60 ON public.extras_objectchange USING btree (changed_object_type_id);
+
+
+--
+-- Name: extras_objectchange_related_object_type_id_fe6e521f; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_objectchange_related_object_type_id_fe6e521f ON public.extras_objectchange USING btree (related_object_type_id);
+
+
+--
+-- Name: extras_objectchange_request_id_4ae21e90; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_objectchange_request_id_4ae21e90 ON public.extras_objectchange USING btree (request_id);
+
+
+--
+-- Name: extras_objectchange_time_224380ea; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_objectchange_time_224380ea ON public.extras_objectchange USING btree ("time");
+
+
+--
+-- Name: extras_objectchange_user_id_7fdf8186; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_objectchange_user_id_7fdf8186 ON public.extras_objectchange USING btree (user_id);
+
+
+--
+-- Name: extras_savedfilter_content_types_contenttype_id_929cea22; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_savedfilter_content_types_contenttype_id_929cea22 ON public.extras_savedfilter_content_types USING btree (contenttype_id);
+
+
+--
+-- Name: extras_savedfilter_content_types_savedfilter_id_1631b88b; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_savedfilter_content_types_savedfilter_id_1631b88b ON public.extras_savedfilter_content_types USING btree (savedfilter_id);
+
+
+--
+-- Name: extras_savedfilter_name_8a4bbd09_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_savedfilter_name_8a4bbd09_like ON public.extras_savedfilter USING btree (name varchar_pattern_ops);
+
+
+--
+-- Name: extras_savedfilter_slug_4f93a959_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_savedfilter_slug_4f93a959_like ON public.extras_savedfilter USING btree (slug varchar_pattern_ops);
+
+
+--
+-- Name: extras_savedfilter_user_id_10502e81; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_savedfilter_user_id_10502e81 ON public.extras_savedfilter USING btree (user_id);
+
+
+--
+-- Name: extras_stag_object__4734d5_idx; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_stag_object__4734d5_idx ON public.extras_stagedchange USING btree (object_type_id, object_id);
+
+
+--
+-- Name: extras_stagedchange_branch_id_44893052; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_stagedchange_branch_id_44893052 ON public.extras_stagedchange USING btree (branch_id);
+
+
+--
+-- Name: extras_stagedchange_object_type_id_de76b05b; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_stagedchange_object_type_id_de76b05b ON public.extras_stagedchange USING btree (object_type_id);
+
+
+--
+-- Name: extras_tag_name_9550b3d9_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_tag_name_9550b3d9_like ON public.extras_tag USING btree (name varchar_pattern_ops);
+
+
+--
+-- Name: extras_tag_object_types_contenttype_id_c1b220c3; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_tag_object_types_contenttype_id_c1b220c3 ON public.extras_tag_object_types USING btree (contenttype_id);
+
+
+--
+-- Name: extras_tag_object_types_tag_id_2e1aab29; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_tag_object_types_tag_id_2e1aab29 ON public.extras_tag_object_types USING btree (tag_id);
+
+
+--
+-- Name: extras_tag_slug_aaa5b7e9_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_tag_slug_aaa5b7e9_like ON public.extras_tag USING btree (slug varchar_pattern_ops);
+
+
+--
+-- Name: extras_tagg_content_717743_idx; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_tagg_content_717743_idx ON public.extras_taggeditem USING btree (content_type_id, object_id);
+
+
+--
+-- Name: extras_taggeditem_content_type_id_ba5562ed; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_taggeditem_content_type_id_ba5562ed ON public.extras_taggeditem USING btree (content_type_id);
+
+
+--
+-- Name: extras_taggeditem_object_id_31b2aa77; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_taggeditem_object_id_31b2aa77 ON public.extras_taggeditem USING btree (object_id);
+
+
+--
+-- Name: extras_taggeditem_tag_id_d48af7c7; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_taggeditem_tag_id_d48af7c7 ON public.extras_taggeditem USING btree (tag_id);
+
+
+--
+-- Name: extras_webhook_name_82cf60b5_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX extras_webhook_name_82cf60b5_like ON public.extras_webhook USING btree (name varchar_pattern_ops);
+
+
+--
+-- Name: ipam_aggregate_rir_id_ef7a27bd; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX ipam_aggregate_rir_id_ef7a27bd ON public.ipam_aggregate USING btree (rir_id);
+
+
+--
+-- Name: ipam_aggregate_tenant_id_637dd1a1; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX ipam_aggregate_tenant_id_637dd1a1 ON public.ipam_aggregate USING btree (tenant_id);
+
+
+--
+-- Name: ipam_asn_rir_id_f5ad3cff; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX ipam_asn_rir_id_f5ad3cff ON public.ipam_asn USING btree (rir_id);
+
+
+--
+-- Name: ipam_asn_tenant_id_07e8188e; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX ipam_asn_tenant_id_07e8188e ON public.ipam_asn USING btree (tenant_id);
+
+
+--
+-- Name: ipam_asnrange_name_c7585e73_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX ipam_asnrange_name_c7585e73_like ON public.ipam_asnrange USING btree (name varchar_pattern_ops);
+
+
+--
+-- Name: ipam_asnrange_rir_id_c9c31183; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX ipam_asnrange_rir_id_c9c31183 ON public.ipam_asnrange USING btree (rir_id);
+
+
+--
+-- Name: ipam_asnrange_slug_c8a7d8a1_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX ipam_asnrange_slug_c8a7d8a1_like ON public.ipam_asnrange USING btree (slug varchar_pattern_ops);
+
+
+--
+-- Name: ipam_asnrange_tenant_id_ed8f80b7; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX ipam_asnrange_tenant_id_ed8f80b7 ON public.ipam_asnrange USING btree (tenant_id);
+
+
+--
+-- Name: ipam_fhrpgr_interfa_2acc3f_idx; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX ipam_fhrpgr_interfa_2acc3f_idx ON public.ipam_fhrpgroupassignment USING btree (interface_type_id, interface_id);
+
+
+--
+-- Name: ipam_fhrpgroupassignment_group_id_19f15ca4; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX ipam_fhrpgroupassignment_group_id_19f15ca4 ON public.ipam_fhrpgroupassignment USING btree (group_id);
+
+
+--
+-- Name: ipam_fhrpgroupassignment_interface_type_id_f3bcb487; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX ipam_fhrpgroupassignment_interface_type_id_f3bcb487 ON public.ipam_fhrpgroupassignment USING btree (interface_type_id);
+
+
+--
+-- Name: ipam_ipaddr_assigne_890ab8_idx; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX ipam_ipaddr_assigne_890ab8_idx ON public.ipam_ipaddress USING btree (assigned_object_type_id, assigned_object_id);
+
+
+--
+-- Name: ipam_ipaddress_assigned_object_type_id_02354370; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX ipam_ipaddress_assigned_object_type_id_02354370 ON public.ipam_ipaddress USING btree (assigned_object_type_id);
+
+
+--
+-- Name: ipam_ipaddress_host; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX ipam_ipaddress_host ON public.ipam_ipaddress USING btree (((host(address))::inet));
+
+
+--
+-- Name: ipam_ipaddress_nat_inside_id_a45fb7c5; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX ipam_ipaddress_nat_inside_id_a45fb7c5 ON public.ipam_ipaddress USING btree (nat_inside_id);
+
+
+--
+-- Name: ipam_ipaddress_tenant_id_ac55acfd; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX ipam_ipaddress_tenant_id_ac55acfd ON public.ipam_ipaddress USING btree (tenant_id);
+
+
+--
+-- Name: ipam_ipaddress_vrf_id_51fcc59b; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX ipam_ipaddress_vrf_id_51fcc59b ON public.ipam_ipaddress USING btree (vrf_id);
+
+
+--
+-- Name: ipam_iprange_role_id_2782e864; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX ipam_iprange_role_id_2782e864 ON public.ipam_iprange USING btree (role_id);
+
+
+--
+-- Name: ipam_iprange_tenant_id_856027ea; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX ipam_iprange_tenant_id_856027ea ON public.ipam_iprange USING btree (tenant_id);
+
+
+--
+-- Name: ipam_iprange_vrf_id_613e9dd2; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX ipam_iprange_vrf_id_613e9dd2 ON public.ipam_iprange USING btree (vrf_id);
+
+
+--
+-- Name: ipam_l2vpn_export_targets_l2vpn_id_8749bbe8; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX ipam_l2vpn_export_targets_l2vpn_id_8749bbe8 ON public.vpn_l2vpn_export_targets USING btree (l2vpn_id);
+
+
+--
+-- Name: ipam_l2vpn_export_targets_routetarget_id_5ccb758b; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX ipam_l2vpn_export_targets_routetarget_id_5ccb758b ON public.vpn_l2vpn_export_targets USING btree (routetarget_id);
+
+
+--
+-- Name: ipam_l2vpn_import_targets_l2vpn_id_731f5bb4; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX ipam_l2vpn_import_targets_l2vpn_id_731f5bb4 ON public.vpn_l2vpn_import_targets USING btree (l2vpn_id);
+
+
+--
+-- Name: ipam_l2vpn_import_targets_routetarget_id_58a188b2; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX ipam_l2vpn_import_targets_routetarget_id_58a188b2 ON public.vpn_l2vpn_import_targets USING btree (routetarget_id);
+
+
+--
+-- Name: ipam_l2vpn_name_5e1c080f_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX ipam_l2vpn_name_5e1c080f_like ON public.vpn_l2vpn USING btree (name varchar_pattern_ops);
+
+
+--
+-- Name: ipam_l2vpn_slug_24008406_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX ipam_l2vpn_slug_24008406_like ON public.vpn_l2vpn USING btree (slug varchar_pattern_ops);
+
+
+--
+-- Name: ipam_l2vpn_tenant_id_bb2564a6; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX ipam_l2vpn_tenant_id_bb2564a6 ON public.vpn_l2vpn USING btree (tenant_id);
+
+
+--
+-- Name: ipam_l2vpntermination_assigned_object_type_id_3923c124; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX ipam_l2vpntermination_assigned_object_type_id_3923c124 ON public.vpn_l2vpntermination USING btree (assigned_object_type_id);
+
+
+--
+-- Name: ipam_l2vpntermination_l2vpn_id_9e570aa1; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX ipam_l2vpntermination_l2vpn_id_9e570aa1 ON public.vpn_l2vpntermination USING btree (l2vpn_id);
+
+
+--
+-- Name: ipam_prefix_role_id_0a98d415; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX ipam_prefix_role_id_0a98d415 ON public.ipam_prefix USING btree (role_id);
+
+
+--
+-- Name: ipam_prefix_site_id_0b20df05; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX ipam_prefix_site_id_0b20df05 ON public.ipam_prefix USING btree (site_id);
+
+
+--
+-- Name: ipam_prefix_tenant_id_7ba1fcc4; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX ipam_prefix_tenant_id_7ba1fcc4 ON public.ipam_prefix USING btree (tenant_id);
+
+
+--
+-- Name: ipam_prefix_vlan_id_1db91bff; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX ipam_prefix_vlan_id_1db91bff ON public.ipam_prefix USING btree (vlan_id);
+
+
+--
+-- Name: ipam_prefix_vrf_id_34f78ed0; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX ipam_prefix_vrf_id_34f78ed0 ON public.ipam_prefix USING btree (vrf_id);
+
+
+--
+-- Name: ipam_rir_name_64a71982_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX ipam_rir_name_64a71982_like ON public.ipam_rir USING btree (name varchar_pattern_ops);
+
+
+--
+-- Name: ipam_rir_slug_ff1a369a_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX ipam_rir_slug_ff1a369a_like ON public.ipam_rir USING btree (slug varchar_pattern_ops);
+
+
+--
+-- Name: ipam_role_name_13784849_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX ipam_role_name_13784849_like ON public.ipam_role USING btree (name varchar_pattern_ops);
+
+
+--
+-- Name: ipam_role_slug_309ca14c_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX ipam_role_slug_309ca14c_like ON public.ipam_role USING btree (slug varchar_pattern_ops);
+
+
+--
+-- Name: ipam_routetarget_name_212be79f_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX ipam_routetarget_name_212be79f_like ON public.ipam_routetarget USING btree (name varchar_pattern_ops);
+
+
+--
+-- Name: ipam_routetarget_tenant_id_5a0b35e8; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX ipam_routetarget_tenant_id_5a0b35e8 ON public.ipam_routetarget USING btree (tenant_id);
+
+
+--
+-- Name: ipam_service_device_id_b4d2bb9c; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX ipam_service_device_id_b4d2bb9c ON public.ipam_service USING btree (device_id);
+
+
+--
+-- Name: ipam_service_ipaddresses_ipaddress_id_b4138c6d; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX ipam_service_ipaddresses_ipaddress_id_b4138c6d ON public.ipam_service_ipaddresses USING btree (ipaddress_id);
+
+
+--
+-- Name: ipam_service_ipaddresses_service_id_ae26b9ab; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX ipam_service_ipaddresses_service_id_ae26b9ab ON public.ipam_service_ipaddresses USING btree (service_id);
+
+
+--
+-- Name: ipam_service_virtual_machine_id_e8b53562; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX ipam_service_virtual_machine_id_e8b53562 ON public.ipam_service USING btree (virtual_machine_id);
+
+
+--
+-- Name: ipam_servicetemplate_name_1a2f3410_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX ipam_servicetemplate_name_1a2f3410_like ON public.ipam_servicetemplate USING btree (name varchar_pattern_ops);
+
+
+--
+-- Name: ipam_vlan_group_id_88cbfa62; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX ipam_vlan_group_id_88cbfa62 ON public.ipam_vlan USING btree (group_id);
+
+
+--
+-- Name: ipam_vlan_role_id_f5015962; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX ipam_vlan_role_id_f5015962 ON public.ipam_vlan USING btree (role_id);
+
+
+--
+-- Name: ipam_vlan_site_id_a59334e3; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX ipam_vlan_site_id_a59334e3 ON public.ipam_vlan USING btree (site_id);
+
+
+--
+-- Name: ipam_vlan_tenant_id_71a8290d; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX ipam_vlan_tenant_id_71a8290d ON public.ipam_vlan USING btree (tenant_id);
+
+
+--
+-- Name: ipam_vlangr_scope_t_9da557_idx; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX ipam_vlangr_scope_t_9da557_idx ON public.ipam_vlangroup USING btree (scope_type_id, scope_id);
+
+
+--
+-- Name: ipam_vlangroup_scope_type_id_6606a755; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX ipam_vlangroup_scope_type_id_6606a755 ON public.ipam_vlangroup USING btree (scope_type_id);
+
+
+--
+-- Name: ipam_vlangroup_slug_40abcf6b; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX ipam_vlangroup_slug_40abcf6b ON public.ipam_vlangroup USING btree (slug);
+
+
+--
+-- Name: ipam_vlangroup_slug_40abcf6b_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX ipam_vlangroup_slug_40abcf6b_like ON public.ipam_vlangroup USING btree (slug varchar_pattern_ops);
+
+
+--
+-- Name: ipam_vrf_export_targets_routetarget_id_8d9319f7; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX ipam_vrf_export_targets_routetarget_id_8d9319f7 ON public.ipam_vrf_export_targets USING btree (routetarget_id);
+
+
+--
+-- Name: ipam_vrf_export_targets_vrf_id_6f4875c4; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX ipam_vrf_export_targets_vrf_id_6f4875c4 ON public.ipam_vrf_export_targets USING btree (vrf_id);
+
+
+--
+-- Name: ipam_vrf_import_targets_routetarget_id_0e05b144; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX ipam_vrf_import_targets_routetarget_id_0e05b144 ON public.ipam_vrf_import_targets USING btree (routetarget_id);
+
+
+--
+-- Name: ipam_vrf_import_targets_vrf_id_ed491b19; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX ipam_vrf_import_targets_vrf_id_ed491b19 ON public.ipam_vrf_import_targets USING btree (vrf_id);
+
+
+--
+-- Name: ipam_vrf_rd_0ac1bde1_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX ipam_vrf_rd_0ac1bde1_like ON public.ipam_vrf USING btree (rd varchar_pattern_ops);
+
+
+--
+-- Name: ipam_vrf_tenant_id_498b0051; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX ipam_vrf_tenant_id_498b0051 ON public.ipam_vrf USING btree (tenant_id);
+
+
+--
+-- Name: netbox_attachments_netboxattachment_content_type_id_695d45c6; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX netbox_attachments_netboxattachment_content_type_id_695d45c6 ON public.netbox_attachments_netboxattachment USING btree (content_type_id);
+
+
+--
+-- Name: netbox_cont_content_ff787b_idx; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX netbox_cont_content_ff787b_idx ON public.netbox_contract_contractassignement USING btree (content_type_id, object_id);
+
+
+--
+-- Name: netbox_cont_externa_6343fb_idx; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX netbox_cont_externa_6343fb_idx ON public.netbox_contract_contract USING btree (external_partie_object_type_id, external_partie_object_id);
+
+
+--
+-- Name: netbox_contract_contract_circuit_circuit_id_fa114caf; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX netbox_contract_contract_circuit_circuit_id_fa114caf ON public.netbox_contract_contract_circuit USING btree (circuit_id);
+
+
+--
+-- Name: netbox_contract_contract_circuit_contract_id_39ab606a; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX netbox_contract_contract_circuit_contract_id_39ab606a ON public.netbox_contract_contract_circuit USING btree (contract_id);
+
+
+--
+-- Name: netbox_contract_contract_external_partie_id_351addad; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX netbox_contract_contract_external_partie_id_351addad ON public.netbox_contract_contract USING btree (external_partie_id);
+
+
+--
+-- Name: netbox_contract_contract_external_partie_object_typ_3e9090ef; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX netbox_contract_contract_external_partie_object_typ_3e9090ef ON public.netbox_contract_contract USING btree (external_partie_object_type_id);
+
+
+--
+-- Name: netbox_contract_contract_parent_id_6d60ae82; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX netbox_contract_contract_parent_id_6d60ae82 ON public.netbox_contract_contract USING btree (parent_id);
+
+
+--
+-- Name: netbox_contract_contract_tenant_id_d4df6b14; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX netbox_contract_contract_tenant_id_d4df6b14 ON public.netbox_contract_contract USING btree (tenant_id);
+
+
+--
+-- Name: netbox_contract_contractassignement_content_type_id_1a70eed9; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX netbox_contract_contractassignement_content_type_id_1a70eed9 ON public.netbox_contract_contractassignement USING btree (content_type_id);
+
+
+--
+-- Name: netbox_contract_contractassignement_contract_id_c0ac9df5; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX netbox_contract_contractassignement_contract_id_c0ac9df5 ON public.netbox_contract_contractassignement USING btree (contract_id);
+
+
+--
+-- Name: netbox_contract_invoice_contracts_contract_id_e8848f45; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX netbox_contract_invoice_contracts_contract_id_e8848f45 ON public.netbox_contract_invoice_contracts USING btree (contract_id);
+
+
+--
+-- Name: netbox_contract_invoice_contracts_invoice_id_e082819f; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX netbox_contract_invoice_contracts_invoice_id_e082819f ON public.netbox_contract_invoice_contracts USING btree (invoice_id);
+
+
+--
+-- Name: netbox_contract_serviceprovider_slug_22b79ba2_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX netbox_contract_serviceprovider_slug_22b79ba2_like ON public.netbox_contract_serviceprovider USING btree (slug varchar_pattern_ops);
+
+
+--
+-- Name: social_auth_code_code_a2393167; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX social_auth_code_code_a2393167 ON public.social_auth_code USING btree (code);
+
+
+--
+-- Name: social_auth_code_code_a2393167_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX social_auth_code_code_a2393167_like ON public.social_auth_code USING btree (code varchar_pattern_ops);
+
+
+--
+-- Name: social_auth_code_timestamp_176b341f; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX social_auth_code_timestamp_176b341f ON public.social_auth_code USING btree ("timestamp");
+
+
+--
+-- Name: social_auth_partial_timestamp_50f2119f; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX social_auth_partial_timestamp_50f2119f ON public.social_auth_partial USING btree ("timestamp");
+
+
+--
+-- Name: social_auth_partial_token_3017fea3; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX social_auth_partial_token_3017fea3 ON public.social_auth_partial USING btree (token);
+
+
+--
+-- Name: social_auth_partial_token_3017fea3_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX social_auth_partial_token_3017fea3_like ON public.social_auth_partial USING btree (token varchar_pattern_ops);
+
+
+--
+-- Name: social_auth_usersocialauth_uid_796e51dc; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX social_auth_usersocialauth_uid_796e51dc ON public.social_auth_usersocialauth USING btree (uid);
+
+
+--
+-- Name: social_auth_usersocialauth_uid_796e51dc_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX social_auth_usersocialauth_uid_796e51dc_like ON public.social_auth_usersocialauth USING btree (uid varchar_pattern_ops);
+
+
+--
+-- Name: social_auth_usersocialauth_user_id_17d28448; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX social_auth_usersocialauth_user_id_17d28448 ON public.social_auth_usersocialauth USING btree (user_id);
+
+
+--
+-- Name: taggit_tag_name_58eb2ed9_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX taggit_tag_name_58eb2ed9_like ON public.taggit_tag USING btree (name varchar_pattern_ops);
+
+
+--
+-- Name: taggit_tag_slug_6be58b2c_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX taggit_tag_slug_6be58b2c_like ON public.taggit_tag USING btree (slug varchar_pattern_ops);
+
+
+--
+-- Name: taggit_tagg_content_8fc721_idx; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX taggit_tagg_content_8fc721_idx ON public.taggit_taggeditem USING btree (content_type_id, object_id);
+
+
+--
+-- Name: taggit_taggeditem_content_type_id_9957a03c; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX taggit_taggeditem_content_type_id_9957a03c ON public.taggit_taggeditem USING btree (content_type_id);
+
+
+--
+-- Name: taggit_taggeditem_object_id_e2d7d1df; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX taggit_taggeditem_object_id_e2d7d1df ON public.taggit_taggeditem USING btree (object_id);
+
+
+--
+-- Name: taggit_taggeditem_tag_id_f4f5b767; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX taggit_taggeditem_tag_id_f4f5b767 ON public.taggit_taggeditem USING btree (tag_id);
+
+
+--
+-- Name: tenancy_con_content_693ff4_idx; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX tenancy_con_content_693ff4_idx ON public.tenancy_contactassignment USING btree (content_type_id, object_id);
+
+
+--
+-- Name: tenancy_contact_group_id_76e0267c; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX tenancy_contact_group_id_76e0267c ON public.tenancy_contact USING btree (group_id);
+
+
+--
+-- Name: tenancy_contactassignment_contact_id_5302baf0; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX tenancy_contactassignment_contact_id_5302baf0 ON public.tenancy_contactassignment USING btree (contact_id);
+
+
+--
+-- Name: tenancy_contactassignment_content_type_id_0c3f0c67; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX tenancy_contactassignment_content_type_id_0c3f0c67 ON public.tenancy_contactassignment USING btree (content_type_id);
+
+
+--
+-- Name: tenancy_contactassignment_role_id_fc08bfb5; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX tenancy_contactassignment_role_id_fc08bfb5 ON public.tenancy_contactassignment USING btree (role_id);
+
+
+--
+-- Name: tenancy_contactgroup_parent_id_c087d69f; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX tenancy_contactgroup_parent_id_c087d69f ON public.tenancy_contactgroup USING btree (parent_id);
+
+
+--
+-- Name: tenancy_contactgroup_slug_5b0f3e75; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX tenancy_contactgroup_slug_5b0f3e75 ON public.tenancy_contactgroup USING btree (slug);
+
+
+--
+-- Name: tenancy_contactgroup_slug_5b0f3e75_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX tenancy_contactgroup_slug_5b0f3e75_like ON public.tenancy_contactgroup USING btree (slug varchar_pattern_ops);
+
+
+--
+-- Name: tenancy_contactgroup_tree_id_57456c98; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX tenancy_contactgroup_tree_id_57456c98 ON public.tenancy_contactgroup USING btree (tree_id);
+
+
+--
+-- Name: tenancy_contactrole_name_44b01a1f_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX tenancy_contactrole_name_44b01a1f_like ON public.tenancy_contactrole USING btree (name varchar_pattern_ops);
+
+
+--
+-- Name: tenancy_contactrole_slug_c5837d7d_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX tenancy_contactrole_slug_c5837d7d_like ON public.tenancy_contactrole USING btree (slug varchar_pattern_ops);
+
+
+--
+-- Name: tenancy_tenant_group_id_7daef6f4; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX tenancy_tenant_group_id_7daef6f4 ON public.tenancy_tenant USING btree (group_id);
+
+
+--
+-- Name: tenancy_tenant_slug_0716575e; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX tenancy_tenant_slug_0716575e ON public.tenancy_tenant USING btree (slug);
+
+
+--
+-- Name: tenancy_tenant_slug_0716575e_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX tenancy_tenant_slug_0716575e_like ON public.tenancy_tenant USING btree (slug varchar_pattern_ops);
+
+
+--
+-- Name: tenancy_tenant_unique_name; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE UNIQUE INDEX tenancy_tenant_unique_name ON public.tenancy_tenant USING btree (name) WHERE (group_id IS NULL);
+
+
+--
+-- Name: tenancy_tenant_unique_slug; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE UNIQUE INDEX tenancy_tenant_unique_slug ON public.tenancy_tenant USING btree (slug) WHERE (group_id IS NULL);
+
+
+--
+-- Name: tenancy_tenantgroup_name_53363199_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX tenancy_tenantgroup_name_53363199_like ON public.tenancy_tenantgroup USING btree (name varchar_pattern_ops);
+
+
+--
+-- Name: tenancy_tenantgroup_parent_id_2542fc18; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX tenancy_tenantgroup_parent_id_2542fc18 ON public.tenancy_tenantgroup USING btree (parent_id);
+
+
+--
+-- Name: tenancy_tenantgroup_slug_e2af1cb6_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX tenancy_tenantgroup_slug_e2af1cb6_like ON public.tenancy_tenantgroup USING btree (slug varchar_pattern_ops);
+
+
+--
+-- Name: tenancy_tenantgroup_tree_id_769a98bf; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX tenancy_tenantgroup_tree_id_769a98bf ON public.tenancy_tenantgroup USING btree (tree_id);
+
+
+--
+-- Name: users_objectpermission_groups_group_id_fb7ba6e0; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX users_objectpermission_groups_group_id_fb7ba6e0 ON public.users_objectpermission_groups USING btree (group_id);
+
+
+--
+-- Name: users_objectpermission_groups_objectpermission_id_2f7cc117; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX users_objectpermission_groups_objectpermission_id_2f7cc117 ON public.users_objectpermission_groups USING btree (objectpermission_id);
+
+
+--
+-- Name: users_objectpermission_obj_objectpermission_id_38c7d8f5; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX users_objectpermission_obj_objectpermission_id_38c7d8f5 ON public.users_objectpermission_object_types USING btree (objectpermission_id);
+
+
+--
+-- Name: users_objectpermission_object_types_contenttype_id_594b1cc7; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX users_objectpermission_object_types_contenttype_id_594b1cc7 ON public.users_objectpermission_object_types USING btree (contenttype_id);
+
+
+--
+-- Name: users_objectpermission_users_objectpermission_id_78a9c2e6; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX users_objectpermission_users_objectpermission_id_78a9c2e6 ON public.users_objectpermission_users USING btree (objectpermission_id);
+
+
+--
+-- Name: users_objectpermission_users_user_id_16c0905d; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX users_objectpermission_users_user_id_16c0905d ON public.users_objectpermission_users USING btree (user_id);
+
+
+--
+-- Name: users_token_key_820deccd_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX users_token_key_820deccd_like ON public.users_token USING btree (key varchar_pattern_ops);
+
+
+--
+-- Name: users_token_user_id_af964690; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX users_token_user_id_af964690 ON public.users_token USING btree (user_id);
+
+
+--
+-- Name: virtualization_cluster_group_id_de379828; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX virtualization_cluster_group_id_de379828 ON public.virtualization_cluster USING btree (group_id);
+
+
+--
+-- Name: virtualization_cluster_site_id_4d5af282; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX virtualization_cluster_site_id_4d5af282 ON public.virtualization_cluster USING btree (site_id);
+
+
+--
+-- Name: virtualization_cluster_tenant_id_bc2868d0; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX virtualization_cluster_tenant_id_bc2868d0 ON public.virtualization_cluster USING btree (tenant_id);
+
+
+--
+-- Name: virtualization_cluster_type_id_4efafb0a; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX virtualization_cluster_type_id_4efafb0a ON public.virtualization_cluster USING btree (type_id);
+
+
+--
+-- Name: virtualization_clustergroup_name_4fcd26b4_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX virtualization_clustergroup_name_4fcd26b4_like ON public.virtualization_clustergroup USING btree (name varchar_pattern_ops);
+
+
+--
+-- Name: virtualization_clustergroup_slug_57ca1d23_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX virtualization_clustergroup_slug_57ca1d23_like ON public.virtualization_clustergroup USING btree (slug varchar_pattern_ops);
+
+
+--
+-- Name: virtualization_clustertype_name_ea854d3d_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX virtualization_clustertype_name_ea854d3d_like ON public.virtualization_clustertype USING btree (name varchar_pattern_ops);
+
+
+--
+-- Name: virtualization_clustertype_slug_8ee4d0e0_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX virtualization_clustertype_slug_8ee4d0e0_like ON public.virtualization_clustertype USING btree (slug varchar_pattern_ops);
+
+
+--
+-- Name: virtualization_virtualdisk_virtual_machine_id_7bc8b6c2; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX virtualization_virtualdisk_virtual_machine_id_7bc8b6c2 ON public.virtualization_virtualdisk USING btree (virtual_machine_id);
+
+
+--
+-- Name: virtualization_virtualmachine_cluster_id_6c9f9047; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX virtualization_virtualmachine_cluster_id_6c9f9047 ON public.virtualization_virtualmachine USING btree (cluster_id);
+
+
+--
+-- Name: virtualization_virtualmachine_config_template_id_d7fc7874; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX virtualization_virtualmachine_config_template_id_d7fc7874 ON public.virtualization_virtualmachine USING btree (config_template_id);
+
+
+--
+-- Name: virtualization_virtualmachine_device_id_5a49ed18; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX virtualization_virtualmachine_device_id_5a49ed18 ON public.virtualization_virtualmachine USING btree (device_id);
+
+
+--
+-- Name: virtualization_virtualmachine_platform_id_a6c5ccb2; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX virtualization_virtualmachine_platform_id_a6c5ccb2 ON public.virtualization_virtualmachine USING btree (platform_id);
+
+
+--
+-- Name: virtualization_virtualmachine_role_id_0cc898f9; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX virtualization_virtualmachine_role_id_0cc898f9 ON public.virtualization_virtualmachine USING btree (role_id);
+
+
+--
+-- Name: virtualization_virtualmachine_site_id_54475a27; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX virtualization_virtualmachine_site_id_54475a27 ON public.virtualization_virtualmachine USING btree (site_id);
+
+
+--
+-- Name: virtualization_virtualmachine_tenant_id_d00d1d77; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX virtualization_virtualmachine_tenant_id_d00d1d77 ON public.virtualization_virtualmachine USING btree (tenant_id);
+
+
+--
+-- Name: virtualization_virtualmachine_unique_name_cluster; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE UNIQUE INDEX virtualization_virtualmachine_unique_name_cluster ON public.virtualization_virtualmachine USING btree (lower((name)::text), cluster_id) WHERE (tenant_id IS NULL);
+
+
+--
+-- Name: virtualization_virtualmachine_unique_name_cluster_tenant; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE UNIQUE INDEX virtualization_virtualmachine_unique_name_cluster_tenant ON public.virtualization_virtualmachine USING btree (lower((name)::text), cluster_id, tenant_id);
+
+
+--
+-- Name: virtualization_vminterface_bridge_id_7462b91e; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX virtualization_vminterface_bridge_id_7462b91e ON public.virtualization_vminterface USING btree (bridge_id);
+
+
+--
+-- Name: virtualization_vminterface_parent_id_f86958e1; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX virtualization_vminterface_parent_id_f86958e1 ON public.virtualization_vminterface USING btree (parent_id);
+
+
+--
+-- Name: virtualization_vminterface_tagged_vlans_vlan_id_4e77411e; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX virtualization_vminterface_tagged_vlans_vlan_id_4e77411e ON public.virtualization_vminterface_tagged_vlans USING btree (vlan_id);
+
+
+--
+-- Name: virtualization_vminterface_tagged_vlans_vminterface_id_904b12de; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX virtualization_vminterface_tagged_vlans_vminterface_id_904b12de ON public.virtualization_vminterface_tagged_vlans USING btree (vminterface_id);
+
+
+--
+-- Name: virtualization_vminterface_untagged_vlan_id_aea4fc69; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX virtualization_vminterface_untagged_vlan_id_aea4fc69 ON public.virtualization_vminterface USING btree (untagged_vlan_id);
+
+
+--
+-- Name: virtualization_vminterface_virtual_machine_id_e9f89829; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX virtualization_vminterface_virtual_machine_id_e9f89829 ON public.virtualization_vminterface USING btree (virtual_machine_id);
+
+
+--
+-- Name: virtualization_vminterface_vrf_id_4b570a8c; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX virtualization_vminterface_vrf_id_4b570a8c ON public.virtualization_vminterface USING btree (vrf_id);
+
+
+--
+-- Name: vpn_ikepolicy_name_5124aa3b_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX vpn_ikepolicy_name_5124aa3b_like ON public.vpn_ikepolicy USING btree (name varchar_pattern_ops);
+
+
+--
+-- Name: vpn_ikepolicy_proposals_ikepolicy_id_1e1deaab; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX vpn_ikepolicy_proposals_ikepolicy_id_1e1deaab ON public.vpn_ikepolicy_proposals USING btree (ikepolicy_id);
+
+
+--
+-- Name: vpn_ikepolicy_proposals_ikeproposal_id_a9ead252; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX vpn_ikepolicy_proposals_ikeproposal_id_a9ead252 ON public.vpn_ikepolicy_proposals USING btree (ikeproposal_id);
+
+
+--
+-- Name: vpn_ikeproposal_name_254623b7_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX vpn_ikeproposal_name_254623b7_like ON public.vpn_ikeproposal USING btree (name varchar_pattern_ops);
+
+
+--
+-- Name: vpn_ipsecpolicy_name_cf28a1aa_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX vpn_ipsecpolicy_name_cf28a1aa_like ON public.vpn_ipsecpolicy USING btree (name varchar_pattern_ops);
+
+
+--
+-- Name: vpn_ipsecpolicy_proposals_ipsecpolicy_id_0e7771a1; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX vpn_ipsecpolicy_proposals_ipsecpolicy_id_0e7771a1 ON public.vpn_ipsecpolicy_proposals USING btree (ipsecpolicy_id);
+
+
+--
+-- Name: vpn_ipsecpolicy_proposals_ipsecproposal_id_685fe509; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX vpn_ipsecpolicy_proposals_ipsecproposal_id_685fe509 ON public.vpn_ipsecpolicy_proposals USING btree (ipsecproposal_id);
+
+
+--
+-- Name: vpn_ipsecprofile_ike_policy_id_4eff5fb9; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX vpn_ipsecprofile_ike_policy_id_4eff5fb9 ON public.vpn_ipsecprofile USING btree (ike_policy_id);
+
+
+--
+-- Name: vpn_ipsecprofile_ipsec_policy_id_e06f2323; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX vpn_ipsecprofile_ipsec_policy_id_e06f2323 ON public.vpn_ipsecprofile USING btree (ipsec_policy_id);
+
+
+--
+-- Name: vpn_ipsecprofile_name_3ac63c72_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX vpn_ipsecprofile_name_3ac63c72_like ON public.vpn_ipsecprofile USING btree (name varchar_pattern_ops);
+
+
+--
+-- Name: vpn_ipsecproposal_name_2fb98e2b_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX vpn_ipsecproposal_name_2fb98e2b_like ON public.vpn_ipsecproposal USING btree (name varchar_pattern_ops);
+
+
+--
+-- Name: vpn_l2vpnte_assigne_9c55f8_idx; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX vpn_l2vpnte_assigne_9c55f8_idx ON public.vpn_l2vpntermination USING btree (assigned_object_type_id, assigned_object_id);
+
+
+--
+-- Name: vpn_tunnel_group_id_56b1e7f7; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX vpn_tunnel_group_id_56b1e7f7 ON public.vpn_tunnel USING btree (group_id);
+
+
+--
+-- Name: vpn_tunnel_ipsec_profile_id_fd0361c5; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX vpn_tunnel_ipsec_profile_id_fd0361c5 ON public.vpn_tunnel USING btree (ipsec_profile_id);
+
+
+--
+-- Name: vpn_tunnel_name; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE UNIQUE INDEX vpn_tunnel_name ON public.vpn_tunnel USING btree (name) WHERE (group_id IS NULL);
+
+
+--
+-- Name: vpn_tunnel_name_f060beab_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX vpn_tunnel_name_f060beab_like ON public.vpn_tunnel USING btree (name varchar_pattern_ops);
+
+
+--
+-- Name: vpn_tunnel_tenant_id_f3df2ab3; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX vpn_tunnel_tenant_id_f3df2ab3 ON public.vpn_tunnel USING btree (tenant_id);
+
+
+--
+-- Name: vpn_tunnelgroup_name_9f6ebf92_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX vpn_tunnelgroup_name_9f6ebf92_like ON public.vpn_tunnelgroup USING btree (name varchar_pattern_ops);
+
+
+--
+-- Name: vpn_tunnelgroup_slug_9e614d62_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX vpn_tunnelgroup_slug_9e614d62_like ON public.vpn_tunnelgroup USING btree (slug varchar_pattern_ops);
+
+
+--
+-- Name: vpn_tunnelt_termina_c1f04b_idx; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX vpn_tunnelt_termina_c1f04b_idx ON public.vpn_tunneltermination USING btree (termination_type_id, termination_id);
+
+
+--
+-- Name: vpn_tunneltermination_outside_ip_id_2c6f3a7c; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX vpn_tunneltermination_outside_ip_id_2c6f3a7c ON public.vpn_tunneltermination USING btree (outside_ip_id);
+
+
+--
+-- Name: vpn_tunneltermination_termination_type_id_e546f7a1; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX vpn_tunneltermination_termination_type_id_e546f7a1 ON public.vpn_tunneltermination USING btree (termination_type_id);
+
+
+--
+-- Name: vpn_tunneltermination_tunnel_id_962efa25; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX vpn_tunneltermination_tunnel_id_962efa25 ON public.vpn_tunneltermination USING btree (tunnel_id);
+
+
+--
+-- Name: wireless_wirelesslan_group_id_d9e3d67f; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX wireless_wirelesslan_group_id_d9e3d67f ON public.wireless_wirelesslan USING btree (group_id);
+
+
+--
+-- Name: wireless_wirelesslan_tenant_id_5dfee941; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX wireless_wirelesslan_tenant_id_5dfee941 ON public.wireless_wirelesslan USING btree (tenant_id);
+
+
+--
+-- Name: wireless_wirelesslan_vlan_id_d7fa6ccc; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX wireless_wirelesslan_vlan_id_d7fa6ccc ON public.wireless_wirelesslan USING btree (vlan_id);
+
+
+--
+-- Name: wireless_wirelesslangroup_name_2ffd60c8_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX wireless_wirelesslangroup_name_2ffd60c8_like ON public.wireless_wirelesslangroup USING btree (name varchar_pattern_ops);
+
+
+--
+-- Name: wireless_wirelesslangroup_parent_id_37ca8b87; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX wireless_wirelesslangroup_parent_id_37ca8b87 ON public.wireless_wirelesslangroup USING btree (parent_id);
+
+
+--
+-- Name: wireless_wirelesslangroup_slug_f5d59831_like; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX wireless_wirelesslangroup_slug_f5d59831_like ON public.wireless_wirelesslangroup USING btree (slug varchar_pattern_ops);
+
+
+--
+-- Name: wireless_wirelesslangroup_tree_id_eb99115d; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX wireless_wirelesslangroup_tree_id_eb99115d ON public.wireless_wirelesslangroup USING btree (tree_id);
+
+
+--
+-- Name: wireless_wirelesslink__interface_a_device_id_6c8e042e; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX wireless_wirelesslink__interface_a_device_id_6c8e042e ON public.wireless_wirelesslink USING btree (_interface_a_device_id);
+
+
+--
+-- Name: wireless_wirelesslink__interface_b_device_id_43d5101a; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX wireless_wirelesslink__interface_b_device_id_43d5101a ON public.wireless_wirelesslink USING btree (_interface_b_device_id);
+
+
+--
+-- Name: wireless_wirelesslink_interface_a_id_bc9e37fd; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX wireless_wirelesslink_interface_a_id_bc9e37fd ON public.wireless_wirelesslink USING btree (interface_a_id);
+
+
+--
+-- Name: wireless_wirelesslink_interface_b_id_a82fb2ee; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX wireless_wirelesslink_interface_b_id_a82fb2ee ON public.wireless_wirelesslink USING btree (interface_b_id);
+
+
+--
+-- Name: wireless_wirelesslink_tenant_id_4c0638ee; Type: INDEX; Schema: public; Owner: netbox
+--
+
+CREATE INDEX wireless_wirelesslink_tenant_id_4c0638ee ON public.wireless_wirelesslink USING btree (tenant_id);
+
+
+--
+-- Name: auth_group_permissions auth_group_permissio_permission_id_84c5c92e_fk_auth_perm; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.auth_group_permissions
+ ADD CONSTRAINT auth_group_permissio_permission_id_84c5c92e_fk_auth_perm FOREIGN KEY (permission_id) REFERENCES public.auth_permission(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: auth_group_permissions auth_group_permissions_group_id_b120cbf9_fk_auth_group_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.auth_group_permissions
+ ADD CONSTRAINT auth_group_permissions_group_id_b120cbf9_fk_auth_group_id FOREIGN KEY (group_id) REFERENCES public.auth_group(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: auth_permission auth_permission_content_type_id_2f476e4b_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.auth_permission
+ ADD CONSTRAINT auth_permission_content_type_id_2f476e4b_fk_django_co FOREIGN KEY (content_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: auth_user_groups auth_user_groups_group_id_97559544_fk_auth_group_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.auth_user_groups
+ ADD CONSTRAINT auth_user_groups_group_id_97559544_fk_auth_group_id FOREIGN KEY (group_id) REFERENCES public.auth_group(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: auth_user_groups auth_user_groups_user_id_6a12ed8b_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.auth_user_groups
+ ADD CONSTRAINT auth_user_groups_user_id_6a12ed8b_fk_auth_user_id FOREIGN KEY (user_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: auth_user_user_permissions auth_user_user_permi_permission_id_1fbb5f2c_fk_auth_perm; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.auth_user_user_permissions
+ ADD CONSTRAINT auth_user_user_permi_permission_id_1fbb5f2c_fk_auth_perm FOREIGN KEY (permission_id) REFERENCES public.auth_permission(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: auth_user_user_permissions auth_user_user_permissions_user_id_a95ead1b_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.auth_user_user_permissions
+ ADD CONSTRAINT auth_user_user_permissions_user_id_a95ead1b_fk_auth_user_id FOREIGN KEY (user_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: circuits_circuit circuits_circuit_provider_account_id_a7c8f61b_fk_circuits_; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.circuits_circuit
+ ADD CONSTRAINT circuits_circuit_provider_account_id_a7c8f61b_fk_circuits_ FOREIGN KEY (provider_account_id) REFERENCES public.circuits_provideraccount(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: circuits_circuit circuits_circuit_provider_id_d9195418_fk_circuits_provider_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.circuits_circuit
+ ADD CONSTRAINT circuits_circuit_provider_id_d9195418_fk_circuits_provider_id FOREIGN KEY (provider_id) REFERENCES public.circuits_provider(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: circuits_circuit circuits_circuit_tenant_id_812508a5_fk_tenancy_tenant_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.circuits_circuit
+ ADD CONSTRAINT circuits_circuit_tenant_id_812508a5_fk_tenancy_tenant_id FOREIGN KEY (tenant_id) REFERENCES public.tenancy_tenant(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: circuits_circuit circuits_circuit_termination_a_id_f891adac_fk_circuits_; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.circuits_circuit
+ ADD CONSTRAINT circuits_circuit_termination_a_id_f891adac_fk_circuits_ FOREIGN KEY (termination_a_id) REFERENCES public.circuits_circuittermination(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: circuits_circuit circuits_circuit_termination_z_id_377b8551_fk_circuits_; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.circuits_circuit
+ ADD CONSTRAINT circuits_circuit_termination_z_id_377b8551_fk_circuits_ FOREIGN KEY (termination_z_id) REFERENCES public.circuits_circuittermination(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: circuits_circuit circuits_circuit_type_id_1b9f485a_fk_circuits_circuittype_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.circuits_circuit
+ ADD CONSTRAINT circuits_circuit_type_id_1b9f485a_fk_circuits_circuittype_id FOREIGN KEY (type_id) REFERENCES public.circuits_circuittype(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: circuits_circuittermination circuits_circuitterm_circuit_id_257e87e7_fk_circuits_; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.circuits_circuittermination
+ ADD CONSTRAINT circuits_circuitterm_circuit_id_257e87e7_fk_circuits_ FOREIGN KEY (circuit_id) REFERENCES public.circuits_circuit(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: circuits_circuittermination circuits_circuitterm_provider_network_id_b0c660f1_fk_circuits_; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.circuits_circuittermination
+ ADD CONSTRAINT circuits_circuitterm_provider_network_id_b0c660f1_fk_circuits_ FOREIGN KEY (provider_network_id) REFERENCES public.circuits_providernetwork(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: circuits_circuittermination circuits_circuittermination_cable_id_35e9f703_fk_dcim_cable_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.circuits_circuittermination
+ ADD CONSTRAINT circuits_circuittermination_cable_id_35e9f703_fk_dcim_cable_id FOREIGN KEY (cable_id) REFERENCES public.dcim_cable(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: circuits_circuittermination circuits_circuittermination_site_id_e6fe5652_fk_dcim_site_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.circuits_circuittermination
+ ADD CONSTRAINT circuits_circuittermination_site_id_e6fe5652_fk_dcim_site_id FOREIGN KEY (site_id) REFERENCES public.dcim_site(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: circuits_provider_asns circuits_provider_as_provider_id_becc3f7e_fk_circuits_; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.circuits_provider_asns
+ ADD CONSTRAINT circuits_provider_as_provider_id_becc3f7e_fk_circuits_ FOREIGN KEY (provider_id) REFERENCES public.circuits_provider(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: circuits_provider_asns circuits_provider_asns_asn_id_0a6c53b3_fk_ipam_asn_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.circuits_provider_asns
+ ADD CONSTRAINT circuits_provider_asns_asn_id_0a6c53b3_fk_ipam_asn_id FOREIGN KEY (asn_id) REFERENCES public.ipam_asn(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: circuits_provideraccount circuits_provideracc_provider_id_4bcd7e50_fk_circuits_; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.circuits_provideraccount
+ ADD CONSTRAINT circuits_provideracc_provider_id_4bcd7e50_fk_circuits_ FOREIGN KEY (provider_id) REFERENCES public.circuits_provider(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: circuits_providernetwork circuits_providernet_provider_id_7992236c_fk_circuits_; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.circuits_providernetwork
+ ADD CONSTRAINT circuits_providernet_provider_id_7992236c_fk_circuits_ FOREIGN KEY (provider_id) REFERENCES public.circuits_provider(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: core_autosyncrecord core_autosyncrecord_datafile_id_f2aad29e_fk_core_datafile_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.core_autosyncrecord
+ ADD CONSTRAINT core_autosyncrecord_datafile_id_f2aad29e_fk_core_datafile_id FOREIGN KEY (datafile_id) REFERENCES public.core_datafile(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: core_autosyncrecord core_autosyncrecord_object_type_id_62506cf6_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.core_autosyncrecord
+ ADD CONSTRAINT core_autosyncrecord_object_type_id_62506cf6_fk_django_co FOREIGN KEY (object_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: core_datafile core_datafile_source_id_8d675be2_fk_core_datasource_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.core_datafile
+ ADD CONSTRAINT core_datafile_source_id_8d675be2_fk_core_datasource_id FOREIGN KEY (source_id) REFERENCES public.core_datasource(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: core_job core_job_object_type_id_ea17469a_fk_django_content_type_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.core_job
+ ADD CONSTRAINT core_job_object_type_id_ea17469a_fk_django_content_type_id FOREIGN KEY (object_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: core_job core_job_user_id_b69eefda_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.core_job
+ ADD CONSTRAINT core_job_user_id_b69eefda_fk_auth_user_id FOREIGN KEY (user_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: core_managedfile core_managedfile_data_file_id_2b6fc95e_fk_core_datafile_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.core_managedfile
+ ADD CONSTRAINT core_managedfile_data_file_id_2b6fc95e_fk_core_datafile_id FOREIGN KEY (data_file_id) REFERENCES public.core_datafile(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: core_managedfile core_managedfile_data_source_id_647d5dbe_fk_core_datasource_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.core_managedfile
+ ADD CONSTRAINT core_managedfile_data_source_id_647d5dbe_fk_core_datasource_id FOREIGN KEY (data_source_id) REFERENCES public.core_datasource(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_cable dcim_cable_tenant_id_3a7fdbb8_fk_tenancy_tenant_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_cable
+ ADD CONSTRAINT dcim_cable_tenant_id_3a7fdbb8_fk_tenancy_tenant_id FOREIGN KEY (tenant_id) REFERENCES public.tenancy_tenant(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_cabletermination dcim_cableterminatio_termination_type_id_20da439e_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_cabletermination
+ ADD CONSTRAINT dcim_cableterminatio_termination_type_id_20da439e_fk_django_co FOREIGN KEY (termination_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_cabletermination dcim_cabletermination__device_id_f5884934_fk_dcim_device_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_cabletermination
+ ADD CONSTRAINT dcim_cabletermination__device_id_f5884934_fk_dcim_device_id FOREIGN KEY (_device_id) REFERENCES public.dcim_device(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_cabletermination dcim_cabletermination__location_id_ff4be503_fk_dcim_location_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_cabletermination
+ ADD CONSTRAINT dcim_cabletermination__location_id_ff4be503_fk_dcim_location_id FOREIGN KEY (_location_id) REFERENCES public.dcim_location(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_cabletermination dcim_cabletermination__rack_id_83a548e1_fk_dcim_rack_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_cabletermination
+ ADD CONSTRAINT dcim_cabletermination__rack_id_83a548e1_fk_dcim_rack_id FOREIGN KEY (_rack_id) REFERENCES public.dcim_rack(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_cabletermination dcim_cabletermination__site_id_616962fa_fk_dcim_site_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_cabletermination
+ ADD CONSTRAINT dcim_cabletermination__site_id_616962fa_fk_dcim_site_id FOREIGN KEY (_site_id) REFERENCES public.dcim_site(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_cabletermination dcim_cabletermination_cable_id_b50010d1_fk_dcim_cable_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_cabletermination
+ ADD CONSTRAINT dcim_cabletermination_cable_id_b50010d1_fk_dcim_cable_id FOREIGN KEY (cable_id) REFERENCES public.dcim_cable(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_consoleport dcim_consoleport__path_id_e40a4436_fk_dcim_cablepath_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_consoleport
+ ADD CONSTRAINT dcim_consoleport__path_id_e40a4436_fk_dcim_cablepath_id FOREIGN KEY (_path_id) REFERENCES public.dcim_cablepath(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_consoleport dcim_consoleport_cable_id_a9ae5465_fk_dcim_cable_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_consoleport
+ ADD CONSTRAINT dcim_consoleport_cable_id_a9ae5465_fk_dcim_cable_id FOREIGN KEY (cable_id) REFERENCES public.dcim_cable(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_consoleport dcim_consoleport_device_id_f2d90d3c_fk_dcim_device_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_consoleport
+ ADD CONSTRAINT dcim_consoleport_device_id_f2d90d3c_fk_dcim_device_id FOREIGN KEY (device_id) REFERENCES public.dcim_device(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_consoleport dcim_consoleport_module_id_d17b2519_fk_dcim_module_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_consoleport
+ ADD CONSTRAINT dcim_consoleport_module_id_d17b2519_fk_dcim_module_id FOREIGN KEY (module_id) REFERENCES public.dcim_module(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_consoleporttemplate dcim_consoleporttemp_device_type_id_075d4015_fk_dcim_devi; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_consoleporttemplate
+ ADD CONSTRAINT dcim_consoleporttemp_device_type_id_075d4015_fk_dcim_devi FOREIGN KEY (device_type_id) REFERENCES public.dcim_devicetype(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_consoleporttemplate dcim_consoleporttemp_module_type_id_c0f35d97_fk_dcim_modu; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_consoleporttemplate
+ ADD CONSTRAINT dcim_consoleporttemp_module_type_id_c0f35d97_fk_dcim_modu FOREIGN KEY (module_type_id) REFERENCES public.dcim_moduletype(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_consoleserverporttemplate dcim_consoleserverpo_device_type_id_579bdc86_fk_dcim_devi; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_consoleserverporttemplate
+ ADD CONSTRAINT dcim_consoleserverpo_device_type_id_579bdc86_fk_dcim_devi FOREIGN KEY (device_type_id) REFERENCES public.dcim_devicetype(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_consoleserverporttemplate dcim_consoleserverpo_module_type_id_4abf751a_fk_dcim_modu; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_consoleserverporttemplate
+ ADD CONSTRAINT dcim_consoleserverpo_module_type_id_4abf751a_fk_dcim_modu FOREIGN KEY (module_type_id) REFERENCES public.dcim_moduletype(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_consoleserverport dcim_consoleserverport__path_id_dc5abe09_fk_dcim_cablepath_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_consoleserverport
+ ADD CONSTRAINT dcim_consoleserverport__path_id_dc5abe09_fk_dcim_cablepath_id FOREIGN KEY (_path_id) REFERENCES public.dcim_cablepath(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_consoleserverport dcim_consoleserverport_cable_id_f2940dfd_fk_dcim_cable_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_consoleserverport
+ ADD CONSTRAINT dcim_consoleserverport_cable_id_f2940dfd_fk_dcim_cable_id FOREIGN KEY (cable_id) REFERENCES public.dcim_cable(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_consoleserverport dcim_consoleserverport_device_id_d9866581_fk_dcim_device_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_consoleserverport
+ ADD CONSTRAINT dcim_consoleserverport_device_id_d9866581_fk_dcim_device_id FOREIGN KEY (device_id) REFERENCES public.dcim_device(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_consoleserverport dcim_consoleserverport_module_id_d060cfc8_fk_dcim_module_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_consoleserverport
+ ADD CONSTRAINT dcim_consoleserverport_module_id_d060cfc8_fk_dcim_module_id FOREIGN KEY (module_id) REFERENCES public.dcim_module(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_device dcim_device_cluster_id_cf852f78_fk_virtualization_cluster_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_device
+ ADD CONSTRAINT dcim_device_cluster_id_cf852f78_fk_virtualization_cluster_id FOREIGN KEY (cluster_id) REFERENCES public.virtualization_cluster(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_device dcim_device_config_template_id_316328c4_fk_extras_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_device
+ ADD CONSTRAINT dcim_device_config_template_id_316328c4_fk_extras_co FOREIGN KEY (config_template_id) REFERENCES public.extras_configtemplate(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_device dcim_device_device_type_id_d61b4086_fk_dcim_devicetype_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_device
+ ADD CONSTRAINT dcim_device_device_type_id_d61b4086_fk_dcim_devicetype_id FOREIGN KEY (device_type_id) REFERENCES public.dcim_devicetype(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_device dcim_device_location_id_11a7bedb_fk_dcim_location_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_device
+ ADD CONSTRAINT dcim_device_location_id_11a7bedb_fk_dcim_location_id FOREIGN KEY (location_id) REFERENCES public.dcim_location(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_device dcim_device_oob_ip_id_5e7219c1_fk_ipam_ipaddress_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_device
+ ADD CONSTRAINT dcim_device_oob_ip_id_5e7219c1_fk_ipam_ipaddress_id FOREIGN KEY (oob_ip_id) REFERENCES public.ipam_ipaddress(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_device dcim_device_platform_id_468138f1_fk_dcim_platform_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_device
+ ADD CONSTRAINT dcim_device_platform_id_468138f1_fk_dcim_platform_id FOREIGN KEY (platform_id) REFERENCES public.dcim_platform(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_device dcim_device_primary_ip4_id_2ccd943a_fk_ipam_ipaddress_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_device
+ ADD CONSTRAINT dcim_device_primary_ip4_id_2ccd943a_fk_ipam_ipaddress_id FOREIGN KEY (primary_ip4_id) REFERENCES public.ipam_ipaddress(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_device dcim_device_primary_ip6_id_d180fe91_fk_ipam_ipaddress_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_device
+ ADD CONSTRAINT dcim_device_primary_ip6_id_d180fe91_fk_ipam_ipaddress_id FOREIGN KEY (primary_ip6_id) REFERENCES public.ipam_ipaddress(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_device dcim_device_rack_id_23bde71f_fk_dcim_rack_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_device
+ ADD CONSTRAINT dcim_device_rack_id_23bde71f_fk_dcim_rack_id FOREIGN KEY (rack_id) REFERENCES public.dcim_rack(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_device dcim_device_role_id_61edcc33_fk_dcim_devicerole_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_device
+ ADD CONSTRAINT dcim_device_role_id_61edcc33_fk_dcim_devicerole_id FOREIGN KEY (role_id) REFERENCES public.dcim_devicerole(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_device dcim_device_site_id_ff897cf6_fk_dcim_site_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_device
+ ADD CONSTRAINT dcim_device_site_id_ff897cf6_fk_dcim_site_id FOREIGN KEY (site_id) REFERENCES public.dcim_site(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_device dcim_device_tenant_id_dcea7969_fk_tenancy_tenant_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_device
+ ADD CONSTRAINT dcim_device_tenant_id_dcea7969_fk_tenancy_tenant_id FOREIGN KEY (tenant_id) REFERENCES public.tenancy_tenant(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_device dcim_device_virtual_chassis_id_aed51693_fk_dcim_virt; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_device
+ ADD CONSTRAINT dcim_device_virtual_chassis_id_aed51693_fk_dcim_virt FOREIGN KEY (virtual_chassis_id) REFERENCES public.dcim_virtualchassis(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_devicebay dcim_devicebay_device_id_0c8a1218_fk_dcim_device_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_devicebay
+ ADD CONSTRAINT dcim_devicebay_device_id_0c8a1218_fk_dcim_device_id FOREIGN KEY (device_id) REFERENCES public.dcim_device(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_devicebay dcim_devicebay_installed_device_id_04618112_fk_dcim_device_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_devicebay
+ ADD CONSTRAINT dcim_devicebay_installed_device_id_04618112_fk_dcim_device_id FOREIGN KEY (installed_device_id) REFERENCES public.dcim_device(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_devicebaytemplate dcim_devicebaytempla_device_type_id_f4b24a29_fk_dcim_devi; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_devicebaytemplate
+ ADD CONSTRAINT dcim_devicebaytempla_device_type_id_f4b24a29_fk_dcim_devi FOREIGN KEY (device_type_id) REFERENCES public.dcim_devicetype(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_devicerole dcim_devicerole_config_template_id_5874002c_fk_extras_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_devicerole
+ ADD CONSTRAINT dcim_devicerole_config_template_id_5874002c_fk_extras_co FOREIGN KEY (config_template_id) REFERENCES public.extras_configtemplate(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_devicetype dcim_devicetype_default_platform_id_1f6ff6ac_fk_dcim_plat; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_devicetype
+ ADD CONSTRAINT dcim_devicetype_default_platform_id_1f6ff6ac_fk_dcim_plat FOREIGN KEY (default_platform_id) REFERENCES public.dcim_platform(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_devicetype dcim_devicetype_manufacturer_id_a3e8029e_fk_dcim_manu; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_devicetype
+ ADD CONSTRAINT dcim_devicetype_manufacturer_id_a3e8029e_fk_dcim_manu FOREIGN KEY (manufacturer_id) REFERENCES public.dcim_manufacturer(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_frontport dcim_frontport_cable_id_04ff8aab_fk_dcim_cable_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_frontport
+ ADD CONSTRAINT dcim_frontport_cable_id_04ff8aab_fk_dcim_cable_id FOREIGN KEY (cable_id) REFERENCES public.dcim_cable(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_frontport dcim_frontport_device_id_950557b5_fk_dcim_device_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_frontport
+ ADD CONSTRAINT dcim_frontport_device_id_950557b5_fk_dcim_device_id FOREIGN KEY (device_id) REFERENCES public.dcim_device(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_frontport dcim_frontport_module_id_952c3f9a_fk_dcim_module_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_frontport
+ ADD CONSTRAINT dcim_frontport_module_id_952c3f9a_fk_dcim_module_id FOREIGN KEY (module_id) REFERENCES public.dcim_module(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_frontport dcim_frontport_rear_port_id_78df2532_fk_dcim_rearport_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_frontport
+ ADD CONSTRAINT dcim_frontport_rear_port_id_78df2532_fk_dcim_rearport_id FOREIGN KEY (rear_port_id) REFERENCES public.dcim_rearport(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_frontporttemplate dcim_frontporttempla_device_type_id_f088b952_fk_dcim_devi; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_frontporttemplate
+ ADD CONSTRAINT dcim_frontporttempla_device_type_id_f088b952_fk_dcim_devi FOREIGN KEY (device_type_id) REFERENCES public.dcim_devicetype(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_frontporttemplate dcim_frontporttempla_module_type_id_66851ff9_fk_dcim_modu; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_frontporttemplate
+ ADD CONSTRAINT dcim_frontporttempla_module_type_id_66851ff9_fk_dcim_modu FOREIGN KEY (module_type_id) REFERENCES public.dcim_moduletype(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_frontporttemplate dcim_frontporttempla_rear_port_id_9775411b_fk_dcim_rear; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_frontporttemplate
+ ADD CONSTRAINT dcim_frontporttempla_rear_port_id_9775411b_fk_dcim_rear FOREIGN KEY (rear_port_id) REFERENCES public.dcim_rearporttemplate(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_interface dcim_interface__path_id_f8f4f7f0_fk_dcim_cablepath_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_interface
+ ADD CONSTRAINT dcim_interface__path_id_f8f4f7f0_fk_dcim_cablepath_id FOREIGN KEY (_path_id) REFERENCES public.dcim_cablepath(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_interface dcim_interface_bridge_id_f2a8df85_fk_dcim_interface_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_interface
+ ADD CONSTRAINT dcim_interface_bridge_id_f2a8df85_fk_dcim_interface_id FOREIGN KEY (bridge_id) REFERENCES public.dcim_interface(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_interface dcim_interface_cable_id_1b264edb_fk_dcim_cable_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_interface
+ ADD CONSTRAINT dcim_interface_cable_id_1b264edb_fk_dcim_cable_id FOREIGN KEY (cable_id) REFERENCES public.dcim_cable(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_interface dcim_interface_device_id_359c6115_fk_dcim_device_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_interface
+ ADD CONSTRAINT dcim_interface_device_id_359c6115_fk_dcim_device_id FOREIGN KEY (device_id) REFERENCES public.dcim_device(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_interface dcim_interface_lag_id_ea1a1d12_fk_dcim_interface_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_interface
+ ADD CONSTRAINT dcim_interface_lag_id_ea1a1d12_fk_dcim_interface_id FOREIGN KEY (lag_id) REFERENCES public.dcim_interface(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_interface dcim_interface_module_id_05ca2da5_fk_dcim_module_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_interface
+ ADD CONSTRAINT dcim_interface_module_id_05ca2da5_fk_dcim_module_id FOREIGN KEY (module_id) REFERENCES public.dcim_module(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_interface dcim_interface_parent_id_3e2b159b_fk_dcim_interface_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_interface
+ ADD CONSTRAINT dcim_interface_parent_id_3e2b159b_fk_dcim_interface_id FOREIGN KEY (parent_id) REFERENCES public.dcim_interface(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_interface_tagged_vlans dcim_interface_tagge_interface_id_5870c9e9_fk_dcim_inte; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_interface_tagged_vlans
+ ADD CONSTRAINT dcim_interface_tagge_interface_id_5870c9e9_fk_dcim_inte FOREIGN KEY (interface_id) REFERENCES public.dcim_interface(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_interface_tagged_vlans dcim_interface_tagged_vlans_vlan_id_e027005c_fk_ipam_vlan_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_interface_tagged_vlans
+ ADD CONSTRAINT dcim_interface_tagged_vlans_vlan_id_e027005c_fk_ipam_vlan_id FOREIGN KEY (vlan_id) REFERENCES public.ipam_vlan(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_interface dcim_interface_untagged_vlan_id_838dc7be_fk_ipam_vlan_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_interface
+ ADD CONSTRAINT dcim_interface_untagged_vlan_id_838dc7be_fk_ipam_vlan_id FOREIGN KEY (untagged_vlan_id) REFERENCES public.ipam_vlan(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_interface_vdcs dcim_interface_vdcs_interface_id_6d58dbaf_fk_dcim_interface_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_interface_vdcs
+ ADD CONSTRAINT dcim_interface_vdcs_interface_id_6d58dbaf_fk_dcim_interface_id FOREIGN KEY (interface_id) REFERENCES public.dcim_interface(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_interface_vdcs dcim_interface_vdcs_virtualdevicecontext_af0bfd4b_fk_dcim_virt; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_interface_vdcs
+ ADD CONSTRAINT dcim_interface_vdcs_virtualdevicecontext_af0bfd4b_fk_dcim_virt FOREIGN KEY (virtualdevicecontext_id) REFERENCES public.dcim_virtualdevicecontext(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_interface dcim_interface_vrf_id_a92e59b2_fk_ipam_vrf_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_interface
+ ADD CONSTRAINT dcim_interface_vrf_id_a92e59b2_fk_ipam_vrf_id FOREIGN KEY (vrf_id) REFERENCES public.ipam_vrf(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_interface_wireless_lans dcim_interface_wirel_interface_id_80df3785_fk_dcim_inte; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_interface_wireless_lans
+ ADD CONSTRAINT dcim_interface_wirel_interface_id_80df3785_fk_dcim_inte FOREIGN KEY (interface_id) REFERENCES public.dcim_interface(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_interface_wireless_lans dcim_interface_wirel_wirelesslan_id_f081e278_fk_wireless_; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_interface_wireless_lans
+ ADD CONSTRAINT dcim_interface_wirel_wirelesslan_id_f081e278_fk_wireless_ FOREIGN KEY (wirelesslan_id) REFERENCES public.wireless_wirelesslan(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_interface dcim_interface_wireless_link_id_bc91108f_fk_wireless_; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_interface
+ ADD CONSTRAINT dcim_interface_wireless_link_id_bc91108f_fk_wireless_ FOREIGN KEY (wireless_link_id) REFERENCES public.wireless_wirelesslink(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_interfacetemplate dcim_interfacetempla_bridge_id_4e44355b_fk_dcim_inte; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_interfacetemplate
+ ADD CONSTRAINT dcim_interfacetempla_bridge_id_4e44355b_fk_dcim_inte FOREIGN KEY (bridge_id) REFERENCES public.dcim_interfacetemplate(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_interfacetemplate dcim_interfacetempla_device_type_id_4bfcbfab_fk_dcim_devi; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_interfacetemplate
+ ADD CONSTRAINT dcim_interfacetempla_device_type_id_4bfcbfab_fk_dcim_devi FOREIGN KEY (device_type_id) REFERENCES public.dcim_devicetype(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_interfacetemplate dcim_interfacetempla_module_type_id_f941f180_fk_dcim_modu; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_interfacetemplate
+ ADD CONSTRAINT dcim_interfacetempla_module_type_id_f941f180_fk_dcim_modu FOREIGN KEY (module_type_id) REFERENCES public.dcim_moduletype(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_inventoryitem dcim_inventoryitem_component_type_id_f0e4d83a_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_inventoryitem
+ ADD CONSTRAINT dcim_inventoryitem_component_type_id_f0e4d83a_fk_django_co FOREIGN KEY (component_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_inventoryitem dcim_inventoryitem_device_id_033d83f8_fk_dcim_device_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_inventoryitem
+ ADD CONSTRAINT dcim_inventoryitem_device_id_033d83f8_fk_dcim_device_id FOREIGN KEY (device_id) REFERENCES public.dcim_device(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_inventoryitem dcim_inventoryitem_manufacturer_id_dcd1b78a_fk_dcim_manu; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_inventoryitem
+ ADD CONSTRAINT dcim_inventoryitem_manufacturer_id_dcd1b78a_fk_dcim_manu FOREIGN KEY (manufacturer_id) REFERENCES public.dcim_manufacturer(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_inventoryitem dcim_inventoryitem_parent_id_7ebcd457_fk_dcim_inventoryitem_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_inventoryitem
+ ADD CONSTRAINT dcim_inventoryitem_parent_id_7ebcd457_fk_dcim_inventoryitem_id FOREIGN KEY (parent_id) REFERENCES public.dcim_inventoryitem(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_inventoryitem dcim_inventoryitem_role_id_2bcfcb04_fk_dcim_inve; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_inventoryitem
+ ADD CONSTRAINT dcim_inventoryitem_role_id_2bcfcb04_fk_dcim_inve FOREIGN KEY (role_id) REFERENCES public.dcim_inventoryitemrole(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_inventoryitemtemplate dcim_inventoryitemte_component_type_id_161623a2_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_inventoryitemtemplate
+ ADD CONSTRAINT dcim_inventoryitemte_component_type_id_161623a2_fk_django_co FOREIGN KEY (component_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_inventoryitemtemplate dcim_inventoryitemte_device_type_id_6a1be904_fk_dcim_devi; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_inventoryitemtemplate
+ ADD CONSTRAINT dcim_inventoryitemte_device_type_id_6a1be904_fk_dcim_devi FOREIGN KEY (device_type_id) REFERENCES public.dcim_devicetype(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_inventoryitemtemplate dcim_inventoryitemte_manufacturer_id_b388c5d9_fk_dcim_manu; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_inventoryitemtemplate
+ ADD CONSTRAINT dcim_inventoryitemte_manufacturer_id_b388c5d9_fk_dcim_manu FOREIGN KEY (manufacturer_id) REFERENCES public.dcim_manufacturer(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_inventoryitemtemplate dcim_inventoryitemte_parent_id_0dac73bb_fk_dcim_inve; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_inventoryitemtemplate
+ ADD CONSTRAINT dcim_inventoryitemte_parent_id_0dac73bb_fk_dcim_inve FOREIGN KEY (parent_id) REFERENCES public.dcim_inventoryitemtemplate(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_inventoryitemtemplate dcim_inventoryitemte_role_id_292676e6_fk_dcim_inve; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_inventoryitemtemplate
+ ADD CONSTRAINT dcim_inventoryitemte_role_id_292676e6_fk_dcim_inve FOREIGN KEY (role_id) REFERENCES public.dcim_inventoryitemrole(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_location dcim_location_parent_id_d77f3318_fk_dcim_location_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_location
+ ADD CONSTRAINT dcim_location_parent_id_d77f3318_fk_dcim_location_id FOREIGN KEY (parent_id) REFERENCES public.dcim_location(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_location dcim_location_site_id_b55e975f_fk_dcim_site_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_location
+ ADD CONSTRAINT dcim_location_site_id_b55e975f_fk_dcim_site_id FOREIGN KEY (site_id) REFERENCES public.dcim_site(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_location dcim_location_tenant_id_2c4df974_fk_tenancy_tenant_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_location
+ ADD CONSTRAINT dcim_location_tenant_id_2c4df974_fk_tenancy_tenant_id FOREIGN KEY (tenant_id) REFERENCES public.tenancy_tenant(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_module dcim_module_device_id_53cfd5be_fk_dcim_device_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_module
+ ADD CONSTRAINT dcim_module_device_id_53cfd5be_fk_dcim_device_id FOREIGN KEY (device_id) REFERENCES public.dcim_device(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_module dcim_module_module_bay_id_8a1bf3e2_fk_dcim_modulebay_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_module
+ ADD CONSTRAINT dcim_module_module_bay_id_8a1bf3e2_fk_dcim_modulebay_id FOREIGN KEY (module_bay_id) REFERENCES public.dcim_modulebay(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_module dcim_module_module_type_id_a50b39fc_fk_dcim_moduletype_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_module
+ ADD CONSTRAINT dcim_module_module_type_id_a50b39fc_fk_dcim_moduletype_id FOREIGN KEY (module_type_id) REFERENCES public.dcim_moduletype(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_modulebay dcim_modulebay_device_id_3526abc2_fk_dcim_device_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_modulebay
+ ADD CONSTRAINT dcim_modulebay_device_id_3526abc2_fk_dcim_device_id FOREIGN KEY (device_id) REFERENCES public.dcim_device(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_modulebaytemplate dcim_modulebaytempla_device_type_id_9eaf9bd3_fk_dcim_devi; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_modulebaytemplate
+ ADD CONSTRAINT dcim_modulebaytempla_device_type_id_9eaf9bd3_fk_dcim_devi FOREIGN KEY (device_type_id) REFERENCES public.dcim_devicetype(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_moduletype dcim_moduletype_manufacturer_id_7347392e_fk_dcim_manu; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_moduletype
+ ADD CONSTRAINT dcim_moduletype_manufacturer_id_7347392e_fk_dcim_manu FOREIGN KEY (manufacturer_id) REFERENCES public.dcim_manufacturer(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_platform dcim_platform_config_template_id_013a4d3c_fk_extras_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_platform
+ ADD CONSTRAINT dcim_platform_config_template_id_013a4d3c_fk_extras_co FOREIGN KEY (config_template_id) REFERENCES public.extras_configtemplate(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_platform dcim_platform_manufacturer_id_83f72d3d_fk_dcim_manufacturer_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_platform
+ ADD CONSTRAINT dcim_platform_manufacturer_id_83f72d3d_fk_dcim_manufacturer_id FOREIGN KEY (manufacturer_id) REFERENCES public.dcim_manufacturer(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_powerfeed dcim_powerfeed__path_id_a1ea1f28_fk_dcim_cablepath_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_powerfeed
+ ADD CONSTRAINT dcim_powerfeed__path_id_a1ea1f28_fk_dcim_cablepath_id FOREIGN KEY (_path_id) REFERENCES public.dcim_cablepath(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_powerfeed dcim_powerfeed_cable_id_ec44c4f8_fk_dcim_cable_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_powerfeed
+ ADD CONSTRAINT dcim_powerfeed_cable_id_ec44c4f8_fk_dcim_cable_id FOREIGN KEY (cable_id) REFERENCES public.dcim_cable(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_powerfeed dcim_powerfeed_power_panel_id_32bde3be_fk_dcim_powerpanel_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_powerfeed
+ ADD CONSTRAINT dcim_powerfeed_power_panel_id_32bde3be_fk_dcim_powerpanel_id FOREIGN KEY (power_panel_id) REFERENCES public.dcim_powerpanel(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_powerfeed dcim_powerfeed_rack_id_7abba090_fk_dcim_rack_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_powerfeed
+ ADD CONSTRAINT dcim_powerfeed_rack_id_7abba090_fk_dcim_rack_id FOREIGN KEY (rack_id) REFERENCES public.dcim_rack(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_powerfeed dcim_powerfeed_tenant_id_947bee85_fk_tenancy_tenant_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_powerfeed
+ ADD CONSTRAINT dcim_powerfeed_tenant_id_947bee85_fk_tenancy_tenant_id FOREIGN KEY (tenant_id) REFERENCES public.tenancy_tenant(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_poweroutlet dcim_poweroutlet__path_id_cbb47bb9_fk_dcim_cablepath_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_poweroutlet
+ ADD CONSTRAINT dcim_poweroutlet__path_id_cbb47bb9_fk_dcim_cablepath_id FOREIGN KEY (_path_id) REFERENCES public.dcim_cablepath(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_poweroutlet dcim_poweroutlet_cable_id_8dbea1ec_fk_dcim_cable_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_poweroutlet
+ ADD CONSTRAINT dcim_poweroutlet_cable_id_8dbea1ec_fk_dcim_cable_id FOREIGN KEY (cable_id) REFERENCES public.dcim_cable(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_poweroutlet dcim_poweroutlet_device_id_286351d7_fk_dcim_device_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_poweroutlet
+ ADD CONSTRAINT dcim_poweroutlet_device_id_286351d7_fk_dcim_device_id FOREIGN KEY (device_id) REFERENCES public.dcim_device(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_poweroutlet dcim_poweroutlet_module_id_032f5af2_fk_dcim_module_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_poweroutlet
+ ADD CONSTRAINT dcim_poweroutlet_module_id_032f5af2_fk_dcim_module_id FOREIGN KEY (module_id) REFERENCES public.dcim_module(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_poweroutlet dcim_poweroutlet_power_port_id_9bdf4163_fk_dcim_powerport_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_poweroutlet
+ ADD CONSTRAINT dcim_poweroutlet_power_port_id_9bdf4163_fk_dcim_powerport_id FOREIGN KEY (power_port_id) REFERENCES public.dcim_powerport(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_poweroutlettemplate dcim_poweroutlettemp_device_type_id_26b2316c_fk_dcim_devi; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_poweroutlettemplate
+ ADD CONSTRAINT dcim_poweroutlettemp_device_type_id_26b2316c_fk_dcim_devi FOREIGN KEY (device_type_id) REFERENCES public.dcim_devicetype(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_poweroutlettemplate dcim_poweroutlettemp_module_type_id_6142b416_fk_dcim_modu; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_poweroutlettemplate
+ ADD CONSTRAINT dcim_poweroutlettemp_module_type_id_6142b416_fk_dcim_modu FOREIGN KEY (module_type_id) REFERENCES public.dcim_moduletype(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_poweroutlettemplate dcim_poweroutlettemp_power_port_id_c0fb0c42_fk_dcim_powe; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_poweroutlettemplate
+ ADD CONSTRAINT dcim_poweroutlettemp_power_port_id_c0fb0c42_fk_dcim_powe FOREIGN KEY (power_port_id) REFERENCES public.dcim_powerporttemplate(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_powerpanel dcim_powerpanel_location_id_474b60f8_fk_dcim_location_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_powerpanel
+ ADD CONSTRAINT dcim_powerpanel_location_id_474b60f8_fk_dcim_location_id FOREIGN KEY (location_id) REFERENCES public.dcim_location(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_powerpanel dcim_powerpanel_site_id_c430bc89_fk_dcim_site_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_powerpanel
+ ADD CONSTRAINT dcim_powerpanel_site_id_c430bc89_fk_dcim_site_id FOREIGN KEY (site_id) REFERENCES public.dcim_site(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_powerport dcim_powerport__path_id_9fe4af8f_fk_dcim_cablepath_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_powerport
+ ADD CONSTRAINT dcim_powerport__path_id_9fe4af8f_fk_dcim_cablepath_id FOREIGN KEY (_path_id) REFERENCES public.dcim_cablepath(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_powerport dcim_powerport_cable_id_c9682ba2_fk_dcim_cable_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_powerport
+ ADD CONSTRAINT dcim_powerport_cable_id_c9682ba2_fk_dcim_cable_id FOREIGN KEY (cable_id) REFERENCES public.dcim_cable(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_powerport dcim_powerport_device_id_ef7185ae_fk_dcim_device_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_powerport
+ ADD CONSTRAINT dcim_powerport_device_id_ef7185ae_fk_dcim_device_id FOREIGN KEY (device_id) REFERENCES public.dcim_device(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_powerport dcim_powerport_module_id_d0c27534_fk_dcim_module_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_powerport
+ ADD CONSTRAINT dcim_powerport_module_id_d0c27534_fk_dcim_module_id FOREIGN KEY (module_id) REFERENCES public.dcim_module(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_powerporttemplate dcim_powerporttempla_device_type_id_1ddfbfcc_fk_dcim_devi; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_powerporttemplate
+ ADD CONSTRAINT dcim_powerporttempla_device_type_id_1ddfbfcc_fk_dcim_devi FOREIGN KEY (device_type_id) REFERENCES public.dcim_devicetype(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_powerporttemplate dcim_powerporttempla_module_type_id_93e26849_fk_dcim_modu; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_powerporttemplate
+ ADD CONSTRAINT dcim_powerporttempla_module_type_id_93e26849_fk_dcim_modu FOREIGN KEY (module_type_id) REFERENCES public.dcim_moduletype(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_rack dcim_rack_location_id_5f63ec31_fk_dcim_location_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_rack
+ ADD CONSTRAINT dcim_rack_location_id_5f63ec31_fk_dcim_location_id FOREIGN KEY (location_id) REFERENCES public.dcim_location(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_rack dcim_rack_role_id_62d6919e_fk_dcim_rackrole_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_rack
+ ADD CONSTRAINT dcim_rack_role_id_62d6919e_fk_dcim_rackrole_id FOREIGN KEY (role_id) REFERENCES public.dcim_rackrole(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_rack dcim_rack_site_id_403c7b3a_fk_dcim_site_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_rack
+ ADD CONSTRAINT dcim_rack_site_id_403c7b3a_fk_dcim_site_id FOREIGN KEY (site_id) REFERENCES public.dcim_site(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_rack dcim_rack_tenant_id_7cdf3725_fk_tenancy_tenant_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_rack
+ ADD CONSTRAINT dcim_rack_tenant_id_7cdf3725_fk_tenancy_tenant_id FOREIGN KEY (tenant_id) REFERENCES public.tenancy_tenant(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_rackreservation dcim_rackreservation_rack_id_1ebbaa9b_fk_dcim_rack_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_rackreservation
+ ADD CONSTRAINT dcim_rackreservation_rack_id_1ebbaa9b_fk_dcim_rack_id FOREIGN KEY (rack_id) REFERENCES public.dcim_rack(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_rackreservation dcim_rackreservation_tenant_id_eb5e045f_fk_tenancy_tenant_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_rackreservation
+ ADD CONSTRAINT dcim_rackreservation_tenant_id_eb5e045f_fk_tenancy_tenant_id FOREIGN KEY (tenant_id) REFERENCES public.tenancy_tenant(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_rackreservation dcim_rackreservation_user_id_0785a527_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_rackreservation
+ ADD CONSTRAINT dcim_rackreservation_user_id_0785a527_fk_auth_user_id FOREIGN KEY (user_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_rearport dcim_rearport_cable_id_42c0e4e7_fk_dcim_cable_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_rearport
+ ADD CONSTRAINT dcim_rearport_cable_id_42c0e4e7_fk_dcim_cable_id FOREIGN KEY (cable_id) REFERENCES public.dcim_cable(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_rearport dcim_rearport_device_id_0bdfe9c0_fk_dcim_device_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_rearport
+ ADD CONSTRAINT dcim_rearport_device_id_0bdfe9c0_fk_dcim_device_id FOREIGN KEY (device_id) REFERENCES public.dcim_device(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_rearport dcim_rearport_module_id_9a7b7e91_fk_dcim_module_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_rearport
+ ADD CONSTRAINT dcim_rearport_module_id_9a7b7e91_fk_dcim_module_id FOREIGN KEY (module_id) REFERENCES public.dcim_module(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_rearporttemplate dcim_rearporttemplat_device_type_id_6a02fd01_fk_dcim_devi; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_rearporttemplate
+ ADD CONSTRAINT dcim_rearporttemplat_device_type_id_6a02fd01_fk_dcim_devi FOREIGN KEY (device_type_id) REFERENCES public.dcim_devicetype(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_rearporttemplate dcim_rearporttemplat_module_type_id_4d970e5b_fk_dcim_modu; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_rearporttemplate
+ ADD CONSTRAINT dcim_rearporttemplat_module_type_id_4d970e5b_fk_dcim_modu FOREIGN KEY (module_type_id) REFERENCES public.dcim_moduletype(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_region dcim_region_parent_id_2486f5d4_fk_dcim_region_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_region
+ ADD CONSTRAINT dcim_region_parent_id_2486f5d4_fk_dcim_region_id FOREIGN KEY (parent_id) REFERENCES public.dcim_region(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_site_asns dcim_site_asns_asn_id_3cfd0f00_fk_ipam_asn_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_site_asns
+ ADD CONSTRAINT dcim_site_asns_asn_id_3cfd0f00_fk_ipam_asn_id FOREIGN KEY (asn_id) REFERENCES public.ipam_asn(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_site_asns dcim_site_asns_site_id_112ccacf_fk_dcim_site_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_site_asns
+ ADD CONSTRAINT dcim_site_asns_site_id_112ccacf_fk_dcim_site_id FOREIGN KEY (site_id) REFERENCES public.dcim_site(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_site dcim_site_group_id_3910c975_fk_dcim_sitegroup_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_site
+ ADD CONSTRAINT dcim_site_group_id_3910c975_fk_dcim_sitegroup_id FOREIGN KEY (group_id) REFERENCES public.dcim_sitegroup(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_site dcim_site_region_id_45210932_fk_dcim_region_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_site
+ ADD CONSTRAINT dcim_site_region_id_45210932_fk_dcim_region_id FOREIGN KEY (region_id) REFERENCES public.dcim_region(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_site dcim_site_tenant_id_15e7df63_fk_tenancy_tenant_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_site
+ ADD CONSTRAINT dcim_site_tenant_id_15e7df63_fk_tenancy_tenant_id FOREIGN KEY (tenant_id) REFERENCES public.tenancy_tenant(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_sitegroup dcim_sitegroup_parent_id_533a5e44_fk_dcim_sitegroup_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_sitegroup
+ ADD CONSTRAINT dcim_sitegroup_parent_id_533a5e44_fk_dcim_sitegroup_id FOREIGN KEY (parent_id) REFERENCES public.dcim_sitegroup(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_virtualchassis dcim_virtualchassis_master_id_ab54cfc6_fk_dcim_device_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_virtualchassis
+ ADD CONSTRAINT dcim_virtualchassis_master_id_ab54cfc6_fk_dcim_device_id FOREIGN KEY (master_id) REFERENCES public.dcim_device(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_virtualdevicecontext dcim_virtualdeviceco_primary_ip4_id_6bd0605b_fk_ipam_ipad; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_virtualdevicecontext
+ ADD CONSTRAINT dcim_virtualdeviceco_primary_ip4_id_6bd0605b_fk_ipam_ipad FOREIGN KEY (primary_ip4_id) REFERENCES public.ipam_ipaddress(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_virtualdevicecontext dcim_virtualdeviceco_primary_ip6_id_ed3b81bd_fk_ipam_ipad; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_virtualdevicecontext
+ ADD CONSTRAINT dcim_virtualdeviceco_primary_ip6_id_ed3b81bd_fk_ipam_ipad FOREIGN KEY (primary_ip6_id) REFERENCES public.ipam_ipaddress(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_virtualdevicecontext dcim_virtualdeviceco_tenant_id_b6a21753_fk_tenancy_t; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_virtualdevicecontext
+ ADD CONSTRAINT dcim_virtualdeviceco_tenant_id_b6a21753_fk_tenancy_t FOREIGN KEY (tenant_id) REFERENCES public.tenancy_tenant(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: dcim_virtualdevicecontext dcim_virtualdevicecontext_device_id_4f39274b_fk_dcim_device_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.dcim_virtualdevicecontext
+ ADD CONSTRAINT dcim_virtualdevicecontext_device_id_4f39274b_fk_dcim_device_id FOREIGN KEY (device_id) REFERENCES public.dcim_device(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: django_admin_log django_admin_log_content_type_id_c4bce8eb_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.django_admin_log
+ ADD CONSTRAINT django_admin_log_content_type_id_c4bce8eb_fk_django_co FOREIGN KEY (content_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: django_admin_log django_admin_log_user_id_c564eba6_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.django_admin_log
+ ADD CONSTRAINT django_admin_log_user_id_c564eba6_fk_auth_user_id FOREIGN KEY (user_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: extras_bookmark extras_bookmark_object_type_id_18c4bb44_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_bookmark
+ ADD CONSTRAINT extras_bookmark_object_type_id_18c4bb44_fk_django_co FOREIGN KEY (object_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: extras_bookmark extras_bookmark_user_id_cb6c6677_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_bookmark
+ ADD CONSTRAINT extras_bookmark_user_id_cb6c6677_fk_auth_user_id FOREIGN KEY (user_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: extras_branch extras_branch_user_id_a6cfd338_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_branch
+ ADD CONSTRAINT extras_branch_user_id_a6cfd338_fk_auth_user_id FOREIGN KEY (user_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: extras_cachedvalue extras_cachedvalue_object_type_id_6f47d444_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_cachedvalue
+ ADD CONSTRAINT extras_cachedvalue_object_type_id_6f47d444_fk_django_co FOREIGN KEY (object_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: extras_configcontext_clusters extras_configcontext_cluster_id_6abd47a1_fk_virtualiz; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_configcontext_clusters
+ ADD CONSTRAINT extras_configcontext_cluster_id_6abd47a1_fk_virtualiz FOREIGN KEY (cluster_id) REFERENCES public.virtualization_cluster(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: extras_configcontext_cluster_groups extras_configcontext_clustergroup_id_f4322ce8_fk_virtualiz; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_configcontext_cluster_groups
+ ADD CONSTRAINT extras_configcontext_clustergroup_id_f4322ce8_fk_virtualiz FOREIGN KEY (clustergroup_id) REFERENCES public.virtualization_clustergroup(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: extras_configcontext_cluster_types extras_configcontext_clustertype_id_fa493b64_fk_virtualiz; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_configcontext_cluster_types
+ ADD CONSTRAINT extras_configcontext_clustertype_id_fa493b64_fk_virtualiz FOREIGN KEY (clustertype_id) REFERENCES public.virtualization_clustertype(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: extras_configcontext_platforms extras_configcontext_configcontext_id_2a516699_fk_extras_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_configcontext_platforms
+ ADD CONSTRAINT extras_configcontext_configcontext_id_2a516699_fk_extras_co FOREIGN KEY (configcontext_id) REFERENCES public.extras_configcontext(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: extras_configcontext_site_groups extras_configcontext_configcontext_id_2e0f43cb_fk_extras_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_configcontext_site_groups
+ ADD CONSTRAINT extras_configcontext_configcontext_id_2e0f43cb_fk_extras_co FOREIGN KEY (configcontext_id) REFERENCES public.extras_configcontext(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: extras_configcontext_device_types extras_configcontext_configcontext_id_55632923_fk_extras_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_configcontext_device_types
+ ADD CONSTRAINT extras_configcontext_configcontext_id_55632923_fk_extras_co FOREIGN KEY (configcontext_id) REFERENCES public.extras_configcontext(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: extras_configcontext_roles extras_configcontext_configcontext_id_59b67386_fk_extras_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_configcontext_roles
+ ADD CONSTRAINT extras_configcontext_configcontext_id_59b67386_fk_extras_co FOREIGN KEY (configcontext_id) REFERENCES public.extras_configcontext(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: extras_configcontext_tags extras_configcontext_configcontext_id_64a392b1_fk_extras_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_configcontext_tags
+ ADD CONSTRAINT extras_configcontext_configcontext_id_64a392b1_fk_extras_co FOREIGN KEY (configcontext_id) REFERENCES public.extras_configcontext(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: extras_configcontext_regions extras_configcontext_configcontext_id_73003dbc_fk_extras_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_configcontext_regions
+ ADD CONSTRAINT extras_configcontext_configcontext_id_73003dbc_fk_extras_co FOREIGN KEY (configcontext_id) REFERENCES public.extras_configcontext(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: extras_configcontext_sites extras_configcontext_configcontext_id_8c54feb9_fk_extras_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_configcontext_sites
+ ADD CONSTRAINT extras_configcontext_configcontext_id_8c54feb9_fk_extras_co FOREIGN KEY (configcontext_id) REFERENCES public.extras_configcontext(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: extras_configcontext_cluster_groups extras_configcontext_configcontext_id_8f50b794_fk_extras_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_configcontext_cluster_groups
+ ADD CONSTRAINT extras_configcontext_configcontext_id_8f50b794_fk_extras_co FOREIGN KEY (configcontext_id) REFERENCES public.extras_configcontext(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: extras_configcontext_tenant_groups extras_configcontext_configcontext_id_92f68345_fk_extras_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_configcontext_tenant_groups
+ ADD CONSTRAINT extras_configcontext_configcontext_id_92f68345_fk_extras_co FOREIGN KEY (configcontext_id) REFERENCES public.extras_configcontext(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: extras_configcontext_tenants extras_configcontext_configcontext_id_b53552a6_fk_extras_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_configcontext_tenants
+ ADD CONSTRAINT extras_configcontext_configcontext_id_b53552a6_fk_extras_co FOREIGN KEY (configcontext_id) REFERENCES public.extras_configcontext(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: extras_configcontext_locations extras_configcontext_configcontext_id_cc629ec1_fk_extras_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_configcontext_locations
+ ADD CONSTRAINT extras_configcontext_configcontext_id_cc629ec1_fk_extras_co FOREIGN KEY (configcontext_id) REFERENCES public.extras_configcontext(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: extras_configcontext_cluster_types extras_configcontext_configcontext_id_d549b6f2_fk_extras_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_configcontext_cluster_types
+ ADD CONSTRAINT extras_configcontext_configcontext_id_d549b6f2_fk_extras_co FOREIGN KEY (configcontext_id) REFERENCES public.extras_configcontext(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: extras_configcontext_clusters extras_configcontext_configcontext_id_ed579a40_fk_extras_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_configcontext_clusters
+ ADD CONSTRAINT extras_configcontext_configcontext_id_ed579a40_fk_extras_co FOREIGN KEY (configcontext_id) REFERENCES public.extras_configcontext(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: extras_configcontext extras_configcontext_data_file_id_8fdd620b_fk_core_datafile_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_configcontext
+ ADD CONSTRAINT extras_configcontext_data_file_id_8fdd620b_fk_core_datafile_id FOREIGN KEY (data_file_id) REFERENCES public.core_datafile(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: extras_configcontext extras_configcontext_data_source_id_1b2eb8af_fk_core_data; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_configcontext
+ ADD CONSTRAINT extras_configcontext_data_source_id_1b2eb8af_fk_core_data FOREIGN KEY (data_source_id) REFERENCES public.core_datasource(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: extras_configcontext_roles extras_configcontext_devicerole_id_d3a84813_fk_dcim_devi; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_configcontext_roles
+ ADD CONSTRAINT extras_configcontext_devicerole_id_d3a84813_fk_dcim_devi FOREIGN KEY (devicerole_id) REFERENCES public.dcim_devicerole(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: extras_configcontext_device_types extras_configcontext_devicetype_id_b8788c2d_fk_dcim_devi; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_configcontext_device_types
+ ADD CONSTRAINT extras_configcontext_devicetype_id_b8788c2d_fk_dcim_devi FOREIGN KEY (devicetype_id) REFERENCES public.dcim_devicetype(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: extras_configcontext_locations extras_configcontext_location_id_9e19eac9_fk_dcim_loca; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_configcontext_locations
+ ADD CONSTRAINT extras_configcontext_location_id_9e19eac9_fk_dcim_loca FOREIGN KEY (location_id) REFERENCES public.dcim_location(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: extras_configcontext_platforms extras_configcontext_platform_id_3fdfedc0_fk_dcim_plat; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_configcontext_platforms
+ ADD CONSTRAINT extras_configcontext_platform_id_3fdfedc0_fk_dcim_plat FOREIGN KEY (platform_id) REFERENCES public.dcim_platform(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: extras_configcontext_regions extras_configcontext_region_id_35c6ba9d_fk_dcim_regi; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_configcontext_regions
+ ADD CONSTRAINT extras_configcontext_region_id_35c6ba9d_fk_dcim_regi FOREIGN KEY (region_id) REFERENCES public.dcim_region(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: extras_configcontext_site_groups extras_configcontext_sitegroup_id_3287c9e7_fk_dcim_site; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_configcontext_site_groups
+ ADD CONSTRAINT extras_configcontext_sitegroup_id_3287c9e7_fk_dcim_site FOREIGN KEY (sitegroup_id) REFERENCES public.dcim_sitegroup(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: extras_configcontext_sites extras_configcontext_sites_site_id_cbb76c96_fk_dcim_site_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_configcontext_sites
+ ADD CONSTRAINT extras_configcontext_sites_site_id_cbb76c96_fk_dcim_site_id FOREIGN KEY (site_id) REFERENCES public.dcim_site(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: extras_configcontext_tags extras_configcontext_tags_tag_id_129a5d87_fk_extras_tag_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_configcontext_tags
+ ADD CONSTRAINT extras_configcontext_tags_tag_id_129a5d87_fk_extras_tag_id FOREIGN KEY (tag_id) REFERENCES public.extras_tag(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: extras_configcontext_tenants extras_configcontext_tenant_id_8d0aa28e_fk_tenancy_t; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_configcontext_tenants
+ ADD CONSTRAINT extras_configcontext_tenant_id_8d0aa28e_fk_tenancy_t FOREIGN KEY (tenant_id) REFERENCES public.tenancy_tenant(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: extras_configcontext_tenant_groups extras_configcontext_tenantgroup_id_0909688d_fk_tenancy_t; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_configcontext_tenant_groups
+ ADD CONSTRAINT extras_configcontext_tenantgroup_id_0909688d_fk_tenancy_t FOREIGN KEY (tenantgroup_id) REFERENCES public.tenancy_tenantgroup(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: extras_configtemplate extras_configtemplat_data_source_id_f9d26d5d_fk_core_data; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_configtemplate
+ ADD CONSTRAINT extras_configtemplat_data_source_id_f9d26d5d_fk_core_data FOREIGN KEY (data_source_id) REFERENCES public.core_datasource(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: extras_configtemplate extras_configtemplate_data_file_id_20c7cff4_fk_core_datafile_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_configtemplate
+ ADD CONSTRAINT extras_configtemplate_data_file_id_20c7cff4_fk_core_datafile_id FOREIGN KEY (data_file_id) REFERENCES public.core_datafile(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: extras_customfield_content_types extras_customfield_c_contenttype_id_2997ba90_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_customfield_content_types
+ ADD CONSTRAINT extras_customfield_c_contenttype_id_2997ba90_fk_django_co FOREIGN KEY (contenttype_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: extras_customfield_content_types extras_customfield_c_customfield_id_3842aaf3_fk_extras_cu; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_customfield_content_types
+ ADD CONSTRAINT extras_customfield_c_customfield_id_3842aaf3_fk_extras_cu FOREIGN KEY (customfield_id) REFERENCES public.extras_customfield(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: extras_customfield extras_customfield_choice_set_id_5590efc2_fk_extras_cu; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_customfield
+ ADD CONSTRAINT extras_customfield_choice_set_id_5590efc2_fk_extras_cu FOREIGN KEY (choice_set_id) REFERENCES public.extras_customfieldchoiceset(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: extras_customfield extras_customfield_object_type_id_489f2239_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_customfield
+ ADD CONSTRAINT extras_customfield_object_type_id_489f2239_fk_django_co FOREIGN KEY (object_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: extras_customlink_content_types extras_customlink_co_contenttype_id_df5f34c2_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_customlink_content_types
+ ADD CONSTRAINT extras_customlink_co_contenttype_id_df5f34c2_fk_django_co FOREIGN KEY (contenttype_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: extras_customlink_content_types extras_customlink_co_customlink_id_229ba2bc_fk_extras_cu; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_customlink_content_types
+ ADD CONSTRAINT extras_customlink_co_customlink_id_229ba2bc_fk_extras_cu FOREIGN KEY (customlink_id) REFERENCES public.extras_customlink(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: extras_dashboard extras_dashboard_user_id_f1e1278b_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_dashboard
+ ADD CONSTRAINT extras_dashboard_user_id_f1e1278b_fk_auth_user_id FOREIGN KEY (user_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: extras_eventrule extras_eventrule_action_object_type_i_1fe8a82e_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_eventrule
+ ADD CONSTRAINT extras_eventrule_action_object_type_i_1fe8a82e_fk_django_co FOREIGN KEY (action_object_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: extras_eventrule_content_types extras_eventrule_con_contenttype_id_a704fd34_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_eventrule_content_types
+ ADD CONSTRAINT extras_eventrule_con_contenttype_id_a704fd34_fk_django_co FOREIGN KEY (contenttype_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: extras_eventrule_content_types extras_eventrule_con_eventrule_id_c177fa54_fk_extras_ev; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_eventrule_content_types
+ ADD CONSTRAINT extras_eventrule_con_eventrule_id_c177fa54_fk_extras_ev FOREIGN KEY (eventrule_id) REFERENCES public.extras_eventrule(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: extras_exporttemplate_content_types extras_exporttemplat_contenttype_id_d80a5164_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_exporttemplate_content_types
+ ADD CONSTRAINT extras_exporttemplat_contenttype_id_d80a5164_fk_django_co FOREIGN KEY (contenttype_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: extras_exporttemplate extras_exporttemplat_data_source_id_d61d0feb_fk_core_data; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_exporttemplate
+ ADD CONSTRAINT extras_exporttemplat_data_source_id_d61d0feb_fk_core_data FOREIGN KEY (data_source_id) REFERENCES public.core_datasource(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: extras_exporttemplate_content_types extras_exporttemplat_exporttemplate_id_7645f081_fk_extras_ex; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_exporttemplate_content_types
+ ADD CONSTRAINT extras_exporttemplat_exporttemplate_id_7645f081_fk_extras_ex FOREIGN KEY (exporttemplate_id) REFERENCES public.extras_exporttemplate(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: extras_exporttemplate extras_exporttemplate_data_file_id_40a91ef8_fk_core_datafile_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_exporttemplate
+ ADD CONSTRAINT extras_exporttemplate_data_file_id_40a91ef8_fk_core_datafile_id FOREIGN KEY (data_file_id) REFERENCES public.core_datafile(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: extras_imageattachment extras_imageattachme_content_type_id_90e0643d_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_imageattachment
+ ADD CONSTRAINT extras_imageattachme_content_type_id_90e0643d_fk_django_co FOREIGN KEY (content_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: extras_journalentry extras_journalentry_assigned_object_type_1bba9f68_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_journalentry
+ ADD CONSTRAINT extras_journalentry_assigned_object_type_1bba9f68_fk_django_co FOREIGN KEY (assigned_object_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: extras_journalentry extras_journalentry_created_by_id_8d4e4329_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_journalentry
+ ADD CONSTRAINT extras_journalentry_created_by_id_8d4e4329_fk_auth_user_id FOREIGN KEY (created_by_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: extras_objectchange extras_objectchange_changed_object_type__b755bb60_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_objectchange
+ ADD CONSTRAINT extras_objectchange_changed_object_type__b755bb60_fk_django_co FOREIGN KEY (changed_object_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: extras_objectchange extras_objectchange_related_object_type__fe6e521f_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_objectchange
+ ADD CONSTRAINT extras_objectchange_related_object_type__fe6e521f_fk_django_co FOREIGN KEY (related_object_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: extras_objectchange extras_objectchange_user_id_7fdf8186_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_objectchange
+ ADD CONSTRAINT extras_objectchange_user_id_7fdf8186_fk_auth_user_id FOREIGN KEY (user_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: extras_savedfilter_content_types extras_savedfilter_c_contenttype_id_929cea22_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_savedfilter_content_types
+ ADD CONSTRAINT extras_savedfilter_c_contenttype_id_929cea22_fk_django_co FOREIGN KEY (contenttype_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: extras_savedfilter_content_types extras_savedfilter_c_savedfilter_id_1631b88b_fk_extras_sa; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_savedfilter_content_types
+ ADD CONSTRAINT extras_savedfilter_c_savedfilter_id_1631b88b_fk_extras_sa FOREIGN KEY (savedfilter_id) REFERENCES public.extras_savedfilter(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: extras_savedfilter extras_savedfilter_user_id_10502e81_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_savedfilter
+ ADD CONSTRAINT extras_savedfilter_user_id_10502e81_fk_auth_user_id FOREIGN KEY (user_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: extras_stagedchange extras_stagedchange_branch_id_44893052_fk_extras_branch_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_stagedchange
+ ADD CONSTRAINT extras_stagedchange_branch_id_44893052_fk_extras_branch_id FOREIGN KEY (branch_id) REFERENCES public.extras_branch(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: extras_stagedchange extras_stagedchange_object_type_id_de76b05b_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_stagedchange
+ ADD CONSTRAINT extras_stagedchange_object_type_id_de76b05b_fk_django_co FOREIGN KEY (object_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: extras_tag_object_types extras_tag_object_ty_contenttype_id_c1b220c3_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_tag_object_types
+ ADD CONSTRAINT extras_tag_object_ty_contenttype_id_c1b220c3_fk_django_co FOREIGN KEY (contenttype_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: extras_tag_object_types extras_tag_object_types_tag_id_2e1aab29_fk_extras_tag_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_tag_object_types
+ ADD CONSTRAINT extras_tag_object_types_tag_id_2e1aab29_fk_extras_tag_id FOREIGN KEY (tag_id) REFERENCES public.extras_tag(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: extras_taggeditem extras_taggeditem_content_type_id_ba5562ed_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_taggeditem
+ ADD CONSTRAINT extras_taggeditem_content_type_id_ba5562ed_fk_django_co FOREIGN KEY (content_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: extras_taggeditem extras_taggeditem_tag_id_d48af7c7_fk_extras_tag_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.extras_taggeditem
+ ADD CONSTRAINT extras_taggeditem_tag_id_d48af7c7_fk_extras_tag_id FOREIGN KEY (tag_id) REFERENCES public.extras_tag(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: ipam_aggregate ipam_aggregate_rir_id_ef7a27bd_fk_ipam_rir_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_aggregate
+ ADD CONSTRAINT ipam_aggregate_rir_id_ef7a27bd_fk_ipam_rir_id FOREIGN KEY (rir_id) REFERENCES public.ipam_rir(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: ipam_aggregate ipam_aggregate_tenant_id_637dd1a1_fk_tenancy_tenant_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_aggregate
+ ADD CONSTRAINT ipam_aggregate_tenant_id_637dd1a1_fk_tenancy_tenant_id FOREIGN KEY (tenant_id) REFERENCES public.tenancy_tenant(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: ipam_asn ipam_asn_rir_id_f5ad3cff_fk_ipam_rir_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_asn
+ ADD CONSTRAINT ipam_asn_rir_id_f5ad3cff_fk_ipam_rir_id FOREIGN KEY (rir_id) REFERENCES public.ipam_rir(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: ipam_asn ipam_asn_tenant_id_07e8188e_fk_tenancy_tenant_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_asn
+ ADD CONSTRAINT ipam_asn_tenant_id_07e8188e_fk_tenancy_tenant_id FOREIGN KEY (tenant_id) REFERENCES public.tenancy_tenant(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: ipam_asnrange ipam_asnrange_rir_id_c9c31183_fk_ipam_rir_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_asnrange
+ ADD CONSTRAINT ipam_asnrange_rir_id_c9c31183_fk_ipam_rir_id FOREIGN KEY (rir_id) REFERENCES public.ipam_rir(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: ipam_asnrange ipam_asnrange_tenant_id_ed8f80b7_fk_tenancy_tenant_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_asnrange
+ ADD CONSTRAINT ipam_asnrange_tenant_id_ed8f80b7_fk_tenancy_tenant_id FOREIGN KEY (tenant_id) REFERENCES public.tenancy_tenant(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: ipam_fhrpgroupassignment ipam_fhrpgroupassign_interface_type_id_f3bcb487_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_fhrpgroupassignment
+ ADD CONSTRAINT ipam_fhrpgroupassign_interface_type_id_f3bcb487_fk_django_co FOREIGN KEY (interface_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: ipam_fhrpgroupassignment ipam_fhrpgroupassignment_group_id_19f15ca4_fk_ipam_fhrpgroup_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_fhrpgroupassignment
+ ADD CONSTRAINT ipam_fhrpgroupassignment_group_id_19f15ca4_fk_ipam_fhrpgroup_id FOREIGN KEY (group_id) REFERENCES public.ipam_fhrpgroup(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: ipam_ipaddress ipam_ipaddress_assigned_object_type_02354370_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_ipaddress
+ ADD CONSTRAINT ipam_ipaddress_assigned_object_type_02354370_fk_django_co FOREIGN KEY (assigned_object_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: ipam_ipaddress ipam_ipaddress_nat_inside_id_a45fb7c5_fk_ipam_ipaddress_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_ipaddress
+ ADD CONSTRAINT ipam_ipaddress_nat_inside_id_a45fb7c5_fk_ipam_ipaddress_id FOREIGN KEY (nat_inside_id) REFERENCES public.ipam_ipaddress(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: ipam_ipaddress ipam_ipaddress_tenant_id_ac55acfd_fk_tenancy_tenant_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_ipaddress
+ ADD CONSTRAINT ipam_ipaddress_tenant_id_ac55acfd_fk_tenancy_tenant_id FOREIGN KEY (tenant_id) REFERENCES public.tenancy_tenant(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: ipam_ipaddress ipam_ipaddress_vrf_id_51fcc59b_fk_ipam_vrf_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_ipaddress
+ ADD CONSTRAINT ipam_ipaddress_vrf_id_51fcc59b_fk_ipam_vrf_id FOREIGN KEY (vrf_id) REFERENCES public.ipam_vrf(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: ipam_iprange ipam_iprange_role_id_2782e864_fk_ipam_role_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_iprange
+ ADD CONSTRAINT ipam_iprange_role_id_2782e864_fk_ipam_role_id FOREIGN KEY (role_id) REFERENCES public.ipam_role(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: ipam_iprange ipam_iprange_tenant_id_856027ea_fk_tenancy_tenant_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_iprange
+ ADD CONSTRAINT ipam_iprange_tenant_id_856027ea_fk_tenancy_tenant_id FOREIGN KEY (tenant_id) REFERENCES public.tenancy_tenant(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: ipam_iprange ipam_iprange_vrf_id_613e9dd2_fk_ipam_vrf_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_iprange
+ ADD CONSTRAINT ipam_iprange_vrf_id_613e9dd2_fk_ipam_vrf_id FOREIGN KEY (vrf_id) REFERENCES public.ipam_vrf(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: vpn_l2vpn_export_targets ipam_l2vpn_export_ta_routetarget_id_5ccb758b_fk_ipam_rout; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.vpn_l2vpn_export_targets
+ ADD CONSTRAINT ipam_l2vpn_export_ta_routetarget_id_5ccb758b_fk_ipam_rout FOREIGN KEY (routetarget_id) REFERENCES public.ipam_routetarget(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: vpn_l2vpn_export_targets ipam_l2vpn_export_targets_l2vpn_id_8749bbe8_fk_ipam_l2vpn_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.vpn_l2vpn_export_targets
+ ADD CONSTRAINT ipam_l2vpn_export_targets_l2vpn_id_8749bbe8_fk_ipam_l2vpn_id FOREIGN KEY (l2vpn_id) REFERENCES public.vpn_l2vpn(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: vpn_l2vpn_import_targets ipam_l2vpn_import_ta_routetarget_id_58a188b2_fk_ipam_rout; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.vpn_l2vpn_import_targets
+ ADD CONSTRAINT ipam_l2vpn_import_ta_routetarget_id_58a188b2_fk_ipam_rout FOREIGN KEY (routetarget_id) REFERENCES public.ipam_routetarget(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: vpn_l2vpn_import_targets ipam_l2vpn_import_targets_l2vpn_id_731f5bb4_fk_ipam_l2vpn_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.vpn_l2vpn_import_targets
+ ADD CONSTRAINT ipam_l2vpn_import_targets_l2vpn_id_731f5bb4_fk_ipam_l2vpn_id FOREIGN KEY (l2vpn_id) REFERENCES public.vpn_l2vpn(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: vpn_l2vpn ipam_l2vpn_tenant_id_bb2564a6_fk_tenancy_tenant_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.vpn_l2vpn
+ ADD CONSTRAINT ipam_l2vpn_tenant_id_bb2564a6_fk_tenancy_tenant_id FOREIGN KEY (tenant_id) REFERENCES public.tenancy_tenant(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: vpn_l2vpntermination ipam_l2vpnterminatio_assigned_object_type_3923c124_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.vpn_l2vpntermination
+ ADD CONSTRAINT ipam_l2vpnterminatio_assigned_object_type_3923c124_fk_django_co FOREIGN KEY (assigned_object_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: vpn_l2vpntermination ipam_l2vpntermination_l2vpn_id_9e570aa1_fk_ipam_l2vpn_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.vpn_l2vpntermination
+ ADD CONSTRAINT ipam_l2vpntermination_l2vpn_id_9e570aa1_fk_ipam_l2vpn_id FOREIGN KEY (l2vpn_id) REFERENCES public.vpn_l2vpn(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: ipam_prefix ipam_prefix_role_id_0a98d415_fk_ipam_role_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_prefix
+ ADD CONSTRAINT ipam_prefix_role_id_0a98d415_fk_ipam_role_id FOREIGN KEY (role_id) REFERENCES public.ipam_role(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: ipam_prefix ipam_prefix_site_id_0b20df05_fk_dcim_site_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_prefix
+ ADD CONSTRAINT ipam_prefix_site_id_0b20df05_fk_dcim_site_id FOREIGN KEY (site_id) REFERENCES public.dcim_site(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: ipam_prefix ipam_prefix_tenant_id_7ba1fcc4_fk_tenancy_tenant_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_prefix
+ ADD CONSTRAINT ipam_prefix_tenant_id_7ba1fcc4_fk_tenancy_tenant_id FOREIGN KEY (tenant_id) REFERENCES public.tenancy_tenant(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: ipam_prefix ipam_prefix_vlan_id_1db91bff_fk_ipam_vlan_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_prefix
+ ADD CONSTRAINT ipam_prefix_vlan_id_1db91bff_fk_ipam_vlan_id FOREIGN KEY (vlan_id) REFERENCES public.ipam_vlan(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: ipam_prefix ipam_prefix_vrf_id_34f78ed0_fk_ipam_vrf_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_prefix
+ ADD CONSTRAINT ipam_prefix_vrf_id_34f78ed0_fk_ipam_vrf_id FOREIGN KEY (vrf_id) REFERENCES public.ipam_vrf(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: ipam_routetarget ipam_routetarget_tenant_id_5a0b35e8_fk_tenancy_tenant_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_routetarget
+ ADD CONSTRAINT ipam_routetarget_tenant_id_5a0b35e8_fk_tenancy_tenant_id FOREIGN KEY (tenant_id) REFERENCES public.tenancy_tenant(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: ipam_service ipam_service_device_id_b4d2bb9c_fk_dcim_device_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_service
+ ADD CONSTRAINT ipam_service_device_id_b4d2bb9c_fk_dcim_device_id FOREIGN KEY (device_id) REFERENCES public.dcim_device(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: ipam_service_ipaddresses ipam_service_ipaddre_ipaddress_id_b4138c6d_fk_ipam_ipad; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_service_ipaddresses
+ ADD CONSTRAINT ipam_service_ipaddre_ipaddress_id_b4138c6d_fk_ipam_ipad FOREIGN KEY (ipaddress_id) REFERENCES public.ipam_ipaddress(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: ipam_service_ipaddresses ipam_service_ipaddresses_service_id_ae26b9ab_fk_ipam_service_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_service_ipaddresses
+ ADD CONSTRAINT ipam_service_ipaddresses_service_id_ae26b9ab_fk_ipam_service_id FOREIGN KEY (service_id) REFERENCES public.ipam_service(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: ipam_service ipam_service_virtual_machine_id_e8b53562_fk_virtualiz; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_service
+ ADD CONSTRAINT ipam_service_virtual_machine_id_e8b53562_fk_virtualiz FOREIGN KEY (virtual_machine_id) REFERENCES public.virtualization_virtualmachine(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: ipam_vlan ipam_vlan_group_id_88cbfa62_fk_ipam_vlangroup_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_vlan
+ ADD CONSTRAINT ipam_vlan_group_id_88cbfa62_fk_ipam_vlangroup_id FOREIGN KEY (group_id) REFERENCES public.ipam_vlangroup(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: ipam_vlan ipam_vlan_role_id_f5015962_fk_ipam_role_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_vlan
+ ADD CONSTRAINT ipam_vlan_role_id_f5015962_fk_ipam_role_id FOREIGN KEY (role_id) REFERENCES public.ipam_role(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: ipam_vlan ipam_vlan_site_id_a59334e3_fk_dcim_site_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_vlan
+ ADD CONSTRAINT ipam_vlan_site_id_a59334e3_fk_dcim_site_id FOREIGN KEY (site_id) REFERENCES public.dcim_site(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: ipam_vlan ipam_vlan_tenant_id_71a8290d_fk_tenancy_tenant_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_vlan
+ ADD CONSTRAINT ipam_vlan_tenant_id_71a8290d_fk_tenancy_tenant_id FOREIGN KEY (tenant_id) REFERENCES public.tenancy_tenant(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: ipam_vlangroup ipam_vlangroup_scope_type_id_6606a755_fk_django_content_type_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_vlangroup
+ ADD CONSTRAINT ipam_vlangroup_scope_type_id_6606a755_fk_django_content_type_id FOREIGN KEY (scope_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: ipam_vrf_export_targets ipam_vrf_export_targ_routetarget_id_8d9319f7_fk_ipam_rout; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_vrf_export_targets
+ ADD CONSTRAINT ipam_vrf_export_targ_routetarget_id_8d9319f7_fk_ipam_rout FOREIGN KEY (routetarget_id) REFERENCES public.ipam_routetarget(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: ipam_vrf_export_targets ipam_vrf_export_targets_vrf_id_6f4875c4_fk_ipam_vrf_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_vrf_export_targets
+ ADD CONSTRAINT ipam_vrf_export_targets_vrf_id_6f4875c4_fk_ipam_vrf_id FOREIGN KEY (vrf_id) REFERENCES public.ipam_vrf(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: ipam_vrf_import_targets ipam_vrf_import_targ_routetarget_id_0e05b144_fk_ipam_rout; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_vrf_import_targets
+ ADD CONSTRAINT ipam_vrf_import_targ_routetarget_id_0e05b144_fk_ipam_rout FOREIGN KEY (routetarget_id) REFERENCES public.ipam_routetarget(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: ipam_vrf_import_targets ipam_vrf_import_targets_vrf_id_ed491b19_fk_ipam_vrf_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_vrf_import_targets
+ ADD CONSTRAINT ipam_vrf_import_targets_vrf_id_ed491b19_fk_ipam_vrf_id FOREIGN KEY (vrf_id) REFERENCES public.ipam_vrf(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: ipam_vrf ipam_vrf_tenant_id_498b0051_fk_tenancy_tenant_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.ipam_vrf
+ ADD CONSTRAINT ipam_vrf_tenant_id_498b0051_fk_tenancy_tenant_id FOREIGN KEY (tenant_id) REFERENCES public.tenancy_tenant(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: netbox_attachments_netboxattachment netbox_attachments_n_content_type_id_695d45c6_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.netbox_attachments_netboxattachment
+ ADD CONSTRAINT netbox_attachments_n_content_type_id_695d45c6_fk_django_co FOREIGN KEY (content_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: netbox_contract_contract_circuit netbox_contract_cont_circuit_id_fa114caf_fk_circuits_; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.netbox_contract_contract_circuit
+ ADD CONSTRAINT netbox_contract_cont_circuit_id_fa114caf_fk_circuits_ FOREIGN KEY (circuit_id) REFERENCES public.circuits_circuit(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: netbox_contract_contractassignement netbox_contract_cont_content_type_id_1a70eed9_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.netbox_contract_contractassignement
+ ADD CONSTRAINT netbox_contract_cont_content_type_id_1a70eed9_fk_django_co FOREIGN KEY (content_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: netbox_contract_contract_circuit netbox_contract_cont_contract_id_39ab606a_fk_netbox_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.netbox_contract_contract_circuit
+ ADD CONSTRAINT netbox_contract_cont_contract_id_39ab606a_fk_netbox_co FOREIGN KEY (contract_id) REFERENCES public.netbox_contract_contract(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: netbox_contract_contractassignement netbox_contract_cont_contract_id_c0ac9df5_fk_netbox_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.netbox_contract_contractassignement
+ ADD CONSTRAINT netbox_contract_cont_contract_id_c0ac9df5_fk_netbox_co FOREIGN KEY (contract_id) REFERENCES public.netbox_contract_contract(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: netbox_contract_contract netbox_contract_cont_external_partie_id_351addad_fk_netbox_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.netbox_contract_contract
+ ADD CONSTRAINT netbox_contract_cont_external_partie_id_351addad_fk_netbox_co FOREIGN KEY (external_partie_id) REFERENCES public.netbox_contract_serviceprovider(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: netbox_contract_contract netbox_contract_cont_external_partie_obje_3e9090ef_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.netbox_contract_contract
+ ADD CONSTRAINT netbox_contract_cont_external_partie_obje_3e9090ef_fk_django_co FOREIGN KEY (external_partie_object_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: netbox_contract_contract netbox_contract_cont_parent_id_6d60ae82_fk_netbox_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.netbox_contract_contract
+ ADD CONSTRAINT netbox_contract_cont_parent_id_6d60ae82_fk_netbox_co FOREIGN KEY (parent_id) REFERENCES public.netbox_contract_contract(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: netbox_contract_contract netbox_contract_cont_tenant_id_d4df6b14_fk_tenancy_t; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.netbox_contract_contract
+ ADD CONSTRAINT netbox_contract_cont_tenant_id_d4df6b14_fk_tenancy_t FOREIGN KEY (tenant_id) REFERENCES public.tenancy_tenant(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: netbox_contract_invoice_contracts netbox_contract_invo_contract_id_e8848f45_fk_netbox_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.netbox_contract_invoice_contracts
+ ADD CONSTRAINT netbox_contract_invo_contract_id_e8848f45_fk_netbox_co FOREIGN KEY (contract_id) REFERENCES public.netbox_contract_contract(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: netbox_contract_invoice_contracts netbox_contract_invo_invoice_id_e082819f_fk_netbox_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.netbox_contract_invoice_contracts
+ ADD CONSTRAINT netbox_contract_invo_invoice_id_e082819f_fk_netbox_co FOREIGN KEY (invoice_id) REFERENCES public.netbox_contract_invoice(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: social_auth_usersocialauth social_auth_usersocialauth_user_id_17d28448_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.social_auth_usersocialauth
+ ADD CONSTRAINT social_auth_usersocialauth_user_id_17d28448_fk_auth_user_id FOREIGN KEY (user_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: taggit_taggeditem taggit_taggeditem_content_type_id_9957a03c_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.taggit_taggeditem
+ ADD CONSTRAINT taggit_taggeditem_content_type_id_9957a03c_fk_django_co FOREIGN KEY (content_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: taggit_taggeditem taggit_taggeditem_tag_id_f4f5b767_fk_taggit_tag_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.taggit_taggeditem
+ ADD CONSTRAINT taggit_taggeditem_tag_id_f4f5b767_fk_taggit_tag_id FOREIGN KEY (tag_id) REFERENCES public.taggit_tag(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: tenancy_contact tenancy_contact_group_id_76e0267c_fk_tenancy_contactgroup_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.tenancy_contact
+ ADD CONSTRAINT tenancy_contact_group_id_76e0267c_fk_tenancy_contactgroup_id FOREIGN KEY (group_id) REFERENCES public.tenancy_contactgroup(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: tenancy_contactassignment tenancy_contactassig_contact_id_5302baf0_fk_tenancy_c; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.tenancy_contactassignment
+ ADD CONSTRAINT tenancy_contactassig_contact_id_5302baf0_fk_tenancy_c FOREIGN KEY (contact_id) REFERENCES public.tenancy_contact(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: tenancy_contactassignment tenancy_contactassig_content_type_id_0c3f0c67_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.tenancy_contactassignment
+ ADD CONSTRAINT tenancy_contactassig_content_type_id_0c3f0c67_fk_django_co FOREIGN KEY (content_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: tenancy_contactassignment tenancy_contactassig_role_id_fc08bfb5_fk_tenancy_c; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.tenancy_contactassignment
+ ADD CONSTRAINT tenancy_contactassig_role_id_fc08bfb5_fk_tenancy_c FOREIGN KEY (role_id) REFERENCES public.tenancy_contactrole(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: tenancy_contactgroup tenancy_contactgroup_parent_id_c087d69f_fk_tenancy_c; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.tenancy_contactgroup
+ ADD CONSTRAINT tenancy_contactgroup_parent_id_c087d69f_fk_tenancy_c FOREIGN KEY (parent_id) REFERENCES public.tenancy_contactgroup(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: tenancy_tenant tenancy_tenant_group_id_7daef6f4_fk_tenancy_tenantgroup_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.tenancy_tenant
+ ADD CONSTRAINT tenancy_tenant_group_id_7daef6f4_fk_tenancy_tenantgroup_id FOREIGN KEY (group_id) REFERENCES public.tenancy_tenantgroup(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: tenancy_tenantgroup tenancy_tenantgroup_parent_id_2542fc18_fk_tenancy_t; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.tenancy_tenantgroup
+ ADD CONSTRAINT tenancy_tenantgroup_parent_id_2542fc18_fk_tenancy_t FOREIGN KEY (parent_id) REFERENCES public.tenancy_tenantgroup(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: users_objectpermission_object_types users_objectpermissi_contenttype_id_594b1cc7_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.users_objectpermission_object_types
+ ADD CONSTRAINT users_objectpermissi_contenttype_id_594b1cc7_fk_django_co FOREIGN KEY (contenttype_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: users_objectpermission_groups users_objectpermissi_group_id_fb7ba6e0_fk_auth_grou; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.users_objectpermission_groups
+ ADD CONSTRAINT users_objectpermissi_group_id_fb7ba6e0_fk_auth_grou FOREIGN KEY (group_id) REFERENCES public.auth_group(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: users_objectpermission_groups users_objectpermissi_objectpermission_id_2f7cc117_fk_users_obj; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.users_objectpermission_groups
+ ADD CONSTRAINT users_objectpermissi_objectpermission_id_2f7cc117_fk_users_obj FOREIGN KEY (objectpermission_id) REFERENCES public.users_objectpermission(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: users_objectpermission_object_types users_objectpermissi_objectpermission_id_38c7d8f5_fk_users_obj; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.users_objectpermission_object_types
+ ADD CONSTRAINT users_objectpermissi_objectpermission_id_38c7d8f5_fk_users_obj FOREIGN KEY (objectpermission_id) REFERENCES public.users_objectpermission(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: users_objectpermission_users users_objectpermissi_objectpermission_id_78a9c2e6_fk_users_obj; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.users_objectpermission_users
+ ADD CONSTRAINT users_objectpermissi_objectpermission_id_78a9c2e6_fk_users_obj FOREIGN KEY (objectpermission_id) REFERENCES public.users_objectpermission(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: users_objectpermission_users users_objectpermission_users_user_id_16c0905d_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.users_objectpermission_users
+ ADD CONSTRAINT users_objectpermission_users_user_id_16c0905d_fk_auth_user_id FOREIGN KEY (user_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: users_token users_token_user_id_af964690_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.users_token
+ ADD CONSTRAINT users_token_user_id_af964690_fk_auth_user_id FOREIGN KEY (user_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: users_userconfig users_userconfig_user_id_afd44184_fk_auth_user_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.users_userconfig
+ ADD CONSTRAINT users_userconfig_user_id_afd44184_fk_auth_user_id FOREIGN KEY (user_id) REFERENCES public.auth_user(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: virtualization_cluster virtualization_clust_group_id_de379828_fk_virtualiz; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.virtualization_cluster
+ ADD CONSTRAINT virtualization_clust_group_id_de379828_fk_virtualiz FOREIGN KEY (group_id) REFERENCES public.virtualization_clustergroup(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: virtualization_cluster virtualization_clust_type_id_4efafb0a_fk_virtualiz; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.virtualization_cluster
+ ADD CONSTRAINT virtualization_clust_type_id_4efafb0a_fk_virtualiz FOREIGN KEY (type_id) REFERENCES public.virtualization_clustertype(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: virtualization_cluster virtualization_cluster_site_id_4d5af282_fk_dcim_site_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.virtualization_cluster
+ ADD CONSTRAINT virtualization_cluster_site_id_4d5af282_fk_dcim_site_id FOREIGN KEY (site_id) REFERENCES public.dcim_site(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: virtualization_cluster virtualization_cluster_tenant_id_bc2868d0_fk_tenancy_tenant_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.virtualization_cluster
+ ADD CONSTRAINT virtualization_cluster_tenant_id_bc2868d0_fk_tenancy_tenant_id FOREIGN KEY (tenant_id) REFERENCES public.tenancy_tenant(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: virtualization_virtualmachine virtualization_virtu_cluster_id_6c9f9047_fk_virtualiz; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.virtualization_virtualmachine
+ ADD CONSTRAINT virtualization_virtu_cluster_id_6c9f9047_fk_virtualiz FOREIGN KEY (cluster_id) REFERENCES public.virtualization_cluster(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: virtualization_virtualmachine virtualization_virtu_config_template_id_d7fc7874_fk_extras_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.virtualization_virtualmachine
+ ADD CONSTRAINT virtualization_virtu_config_template_id_d7fc7874_fk_extras_co FOREIGN KEY (config_template_id) REFERENCES public.extras_configtemplate(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: virtualization_virtualmachine virtualization_virtu_device_id_5a49ed18_fk_dcim_devi; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.virtualization_virtualmachine
+ ADD CONSTRAINT virtualization_virtu_device_id_5a49ed18_fk_dcim_devi FOREIGN KEY (device_id) REFERENCES public.dcim_device(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: virtualization_virtualmachine virtualization_virtu_platform_id_a6c5ccb2_fk_dcim_plat; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.virtualization_virtualmachine
+ ADD CONSTRAINT virtualization_virtu_platform_id_a6c5ccb2_fk_dcim_plat FOREIGN KEY (platform_id) REFERENCES public.dcim_platform(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: virtualization_virtualmachine virtualization_virtu_primary_ip4_id_942e42ae_fk_ipam_ipad; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.virtualization_virtualmachine
+ ADD CONSTRAINT virtualization_virtu_primary_ip4_id_942e42ae_fk_ipam_ipad FOREIGN KEY (primary_ip4_id) REFERENCES public.ipam_ipaddress(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: virtualization_virtualmachine virtualization_virtu_primary_ip6_id_b7904e73_fk_ipam_ipad; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.virtualization_virtualmachine
+ ADD CONSTRAINT virtualization_virtu_primary_ip6_id_b7904e73_fk_ipam_ipad FOREIGN KEY (primary_ip6_id) REFERENCES public.ipam_ipaddress(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: virtualization_virtualmachine virtualization_virtu_role_id_0cc898f9_fk_dcim_devi; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.virtualization_virtualmachine
+ ADD CONSTRAINT virtualization_virtu_role_id_0cc898f9_fk_dcim_devi FOREIGN KEY (role_id) REFERENCES public.dcim_devicerole(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: virtualization_virtualmachine virtualization_virtu_tenant_id_d00d1d77_fk_tenancy_t; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.virtualization_virtualmachine
+ ADD CONSTRAINT virtualization_virtu_tenant_id_d00d1d77_fk_tenancy_t FOREIGN KEY (tenant_id) REFERENCES public.tenancy_tenant(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: virtualization_virtualdisk virtualization_virtu_virtual_machine_id_7bc8b6c2_fk_virtualiz; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.virtualization_virtualdisk
+ ADD CONSTRAINT virtualization_virtu_virtual_machine_id_7bc8b6c2_fk_virtualiz FOREIGN KEY (virtual_machine_id) REFERENCES public.virtualization_virtualmachine(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: virtualization_virtualmachine virtualization_virtualmachine_site_id_54475a27_fk_dcim_site_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.virtualization_virtualmachine
+ ADD CONSTRAINT virtualization_virtualmachine_site_id_54475a27_fk_dcim_site_id FOREIGN KEY (site_id) REFERENCES public.dcim_site(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: virtualization_vminterface virtualization_vmint_bridge_id_7462b91e_fk_virtualiz; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.virtualization_vminterface
+ ADD CONSTRAINT virtualization_vmint_bridge_id_7462b91e_fk_virtualiz FOREIGN KEY (bridge_id) REFERENCES public.virtualization_vminterface(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: virtualization_vminterface virtualization_vmint_parent_id_f86958e1_fk_virtualiz; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.virtualization_vminterface
+ ADD CONSTRAINT virtualization_vmint_parent_id_f86958e1_fk_virtualiz FOREIGN KEY (parent_id) REFERENCES public.virtualization_vminterface(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: virtualization_vminterface virtualization_vmint_untagged_vlan_id_aea4fc69_fk_ipam_vlan; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.virtualization_vminterface
+ ADD CONSTRAINT virtualization_vmint_untagged_vlan_id_aea4fc69_fk_ipam_vlan FOREIGN KEY (untagged_vlan_id) REFERENCES public.ipam_vlan(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: virtualization_vminterface virtualization_vmint_virtual_machine_id_e9f89829_fk_virtualiz; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.virtualization_vminterface
+ ADD CONSTRAINT virtualization_vmint_virtual_machine_id_e9f89829_fk_virtualiz FOREIGN KEY (virtual_machine_id) REFERENCES public.virtualization_virtualmachine(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: virtualization_vminterface_tagged_vlans virtualization_vmint_vlan_id_4e77411e_fk_ipam_vlan; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.virtualization_vminterface_tagged_vlans
+ ADD CONSTRAINT virtualization_vmint_vlan_id_4e77411e_fk_ipam_vlan FOREIGN KEY (vlan_id) REFERENCES public.ipam_vlan(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: virtualization_vminterface_tagged_vlans virtualization_vmint_vminterface_id_904b12de_fk_virtualiz; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.virtualization_vminterface_tagged_vlans
+ ADD CONSTRAINT virtualization_vmint_vminterface_id_904b12de_fk_virtualiz FOREIGN KEY (vminterface_id) REFERENCES public.virtualization_vminterface(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: virtualization_vminterface virtualization_vminterface_vrf_id_4b570a8c_fk_ipam_vrf_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.virtualization_vminterface
+ ADD CONSTRAINT virtualization_vminterface_vrf_id_4b570a8c_fk_ipam_vrf_id FOREIGN KEY (vrf_id) REFERENCES public.ipam_vrf(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: vpn_ikepolicy_proposals vpn_ikepolicy_propos_ikepolicy_id_1e1deaab_fk_vpn_ikepo; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.vpn_ikepolicy_proposals
+ ADD CONSTRAINT vpn_ikepolicy_propos_ikepolicy_id_1e1deaab_fk_vpn_ikepo FOREIGN KEY (ikepolicy_id) REFERENCES public.vpn_ikepolicy(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: vpn_ikepolicy_proposals vpn_ikepolicy_propos_ikeproposal_id_a9ead252_fk_vpn_ikepr; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.vpn_ikepolicy_proposals
+ ADD CONSTRAINT vpn_ikepolicy_propos_ikeproposal_id_a9ead252_fk_vpn_ikepr FOREIGN KEY (ikeproposal_id) REFERENCES public.vpn_ikeproposal(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: vpn_ipsecpolicy_proposals vpn_ipsecpolicy_prop_ipsecpolicy_id_0e7771a1_fk_vpn_ipsec; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.vpn_ipsecpolicy_proposals
+ ADD CONSTRAINT vpn_ipsecpolicy_prop_ipsecpolicy_id_0e7771a1_fk_vpn_ipsec FOREIGN KEY (ipsecpolicy_id) REFERENCES public.vpn_ipsecpolicy(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: vpn_ipsecpolicy_proposals vpn_ipsecpolicy_prop_ipsecproposal_id_685fe509_fk_vpn_ipsec; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.vpn_ipsecpolicy_proposals
+ ADD CONSTRAINT vpn_ipsecpolicy_prop_ipsecproposal_id_685fe509_fk_vpn_ipsec FOREIGN KEY (ipsecproposal_id) REFERENCES public.vpn_ipsecproposal(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: vpn_ipsecprofile vpn_ipsecprofile_ike_policy_id_4eff5fb9_fk_vpn_ikepolicy_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.vpn_ipsecprofile
+ ADD CONSTRAINT vpn_ipsecprofile_ike_policy_id_4eff5fb9_fk_vpn_ikepolicy_id FOREIGN KEY (ike_policy_id) REFERENCES public.vpn_ikepolicy(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: vpn_ipsecprofile vpn_ipsecprofile_ipsec_policy_id_e06f2323_fk_vpn_ipsecpolicy_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.vpn_ipsecprofile
+ ADD CONSTRAINT vpn_ipsecprofile_ipsec_policy_id_e06f2323_fk_vpn_ipsecpolicy_id FOREIGN KEY (ipsec_policy_id) REFERENCES public.vpn_ipsecpolicy(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: vpn_tunnel vpn_tunnel_group_id_56b1e7f7_fk_vpn_tunnelgroup_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.vpn_tunnel
+ ADD CONSTRAINT vpn_tunnel_group_id_56b1e7f7_fk_vpn_tunnelgroup_id FOREIGN KEY (group_id) REFERENCES public.vpn_tunnelgroup(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: vpn_tunnel vpn_tunnel_ipsec_profile_id_fd0361c5_fk_vpn_ipsecprofile_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.vpn_tunnel
+ ADD CONSTRAINT vpn_tunnel_ipsec_profile_id_fd0361c5_fk_vpn_ipsecprofile_id FOREIGN KEY (ipsec_profile_id) REFERENCES public.vpn_ipsecprofile(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: vpn_tunnel vpn_tunnel_tenant_id_f3df2ab3_fk_tenancy_tenant_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.vpn_tunnel
+ ADD CONSTRAINT vpn_tunnel_tenant_id_f3df2ab3_fk_tenancy_tenant_id FOREIGN KEY (tenant_id) REFERENCES public.tenancy_tenant(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: vpn_tunneltermination vpn_tunnelterminatio_outside_ip_id_2c6f3a7c_fk_ipam_ipad; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.vpn_tunneltermination
+ ADD CONSTRAINT vpn_tunnelterminatio_outside_ip_id_2c6f3a7c_fk_ipam_ipad FOREIGN KEY (outside_ip_id) REFERENCES public.ipam_ipaddress(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: vpn_tunneltermination vpn_tunnelterminatio_termination_type_id_e546f7a1_fk_django_co; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.vpn_tunneltermination
+ ADD CONSTRAINT vpn_tunnelterminatio_termination_type_id_e546f7a1_fk_django_co FOREIGN KEY (termination_type_id) REFERENCES public.django_content_type(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: vpn_tunneltermination vpn_tunneltermination_tunnel_id_962efa25_fk_vpn_tunnel_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.vpn_tunneltermination
+ ADD CONSTRAINT vpn_tunneltermination_tunnel_id_962efa25_fk_vpn_tunnel_id FOREIGN KEY (tunnel_id) REFERENCES public.vpn_tunnel(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: wireless_wirelesslan wireless_wirelesslan_group_id_d9e3d67f_fk_wireless_; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.wireless_wirelesslan
+ ADD CONSTRAINT wireless_wirelesslan_group_id_d9e3d67f_fk_wireless_ FOREIGN KEY (group_id) REFERENCES public.wireless_wirelesslangroup(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: wireless_wirelesslangroup wireless_wirelesslan_parent_id_37ca8b87_fk_wireless_; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.wireless_wirelesslangroup
+ ADD CONSTRAINT wireless_wirelesslan_parent_id_37ca8b87_fk_wireless_ FOREIGN KEY (parent_id) REFERENCES public.wireless_wirelesslangroup(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: wireless_wirelesslan wireless_wirelesslan_tenant_id_5dfee941_fk_tenancy_tenant_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.wireless_wirelesslan
+ ADD CONSTRAINT wireless_wirelesslan_tenant_id_5dfee941_fk_tenancy_tenant_id FOREIGN KEY (tenant_id) REFERENCES public.tenancy_tenant(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: wireless_wirelesslan wireless_wirelesslan_vlan_id_d7fa6ccc_fk_ipam_vlan_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.wireless_wirelesslan
+ ADD CONSTRAINT wireless_wirelesslan_vlan_id_d7fa6ccc_fk_ipam_vlan_id FOREIGN KEY (vlan_id) REFERENCES public.ipam_vlan(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: wireless_wirelesslink wireless_wirelesslin__interface_a_device__6c8e042e_fk_dcim_devi; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.wireless_wirelesslink
+ ADD CONSTRAINT wireless_wirelesslin__interface_a_device__6c8e042e_fk_dcim_devi FOREIGN KEY (_interface_a_device_id) REFERENCES public.dcim_device(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: wireless_wirelesslink wireless_wirelesslin__interface_b_device__43d5101a_fk_dcim_devi; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.wireless_wirelesslink
+ ADD CONSTRAINT wireless_wirelesslin__interface_b_device__43d5101a_fk_dcim_devi FOREIGN KEY (_interface_b_device_id) REFERENCES public.dcim_device(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: wireless_wirelesslink wireless_wirelesslin_interface_a_id_bc9e37fd_fk_dcim_inte; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.wireless_wirelesslink
+ ADD CONSTRAINT wireless_wirelesslin_interface_a_id_bc9e37fd_fk_dcim_inte FOREIGN KEY (interface_a_id) REFERENCES public.dcim_interface(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: wireless_wirelesslink wireless_wirelesslin_interface_b_id_a82fb2ee_fk_dcim_inte; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.wireless_wirelesslink
+ ADD CONSTRAINT wireless_wirelesslin_interface_b_id_a82fb2ee_fk_dcim_inte FOREIGN KEY (interface_b_id) REFERENCES public.dcim_interface(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- Name: wireless_wirelesslink wireless_wirelesslink_tenant_id_4c0638ee_fk_tenancy_tenant_id; Type: FK CONSTRAINT; Schema: public; Owner: netbox
+--
+
+ALTER TABLE ONLY public.wireless_wirelesslink
+ ADD CONSTRAINT wireless_wirelesslink_tenant_id_4c0638ee_fk_tenancy_tenant_id FOREIGN KEY (tenant_id) REFERENCES public.tenancy_tenant(id) DEFERRABLE INITIALLY DEFERRED;
+
+
+--
+-- PostgreSQL database dump complete
+--
+