158 lines
9.9 KiB
Python
158 lines
9.9 KiB
Python
![]() |
# Generated by Django 3.2.6 on 2021-10-10 13:08
|
||
|
|
||
|
from django.db import migrations, models
|
||
|
import django.db.models.deletion
|
||
|
import djmoney.models.fields
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
|
||
|
initial = True
|
||
|
|
||
|
dependencies = [
|
||
|
]
|
||
|
|
||
|
operations = [
|
||
|
migrations.CreateModel(
|
||
|
name='BillingProject',
|
||
|
fields=[
|
||
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||
|
('created_at', models.DateTimeField(auto_now_add=True)),
|
||
|
('updated_at', models.DateTimeField(auto_now=True)),
|
||
|
('tenant_id', models.CharField(max_length=256)),
|
||
|
],
|
||
|
options={
|
||
|
'abstract': False,
|
||
|
},
|
||
|
),
|
||
|
migrations.CreateModel(
|
||
|
name='FlavorPrice',
|
||
|
fields=[
|
||
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||
|
('created_at', models.DateTimeField(auto_now_add=True)),
|
||
|
('updated_at', models.DateTimeField(auto_now=True)),
|
||
|
('hourly_price_currency', djmoney.models.fields.CurrencyField(choices=[('IDR', 'Indonesian Rupiah'), ('USD', 'US Dollar')], default='IDR', editable=False, max_length=3)),
|
||
|
('hourly_price', djmoney.models.fields.MoneyField(decimal_places=0, max_digits=10)),
|
||
|
('monthly_price_currency', djmoney.models.fields.CurrencyField(choices=[('IDR', 'Indonesian Rupiah'), ('USD', 'US Dollar')], default='IDR', editable=False, max_length=3)),
|
||
|
('monthly_price', djmoney.models.fields.MoneyField(blank=True, decimal_places=0, default=None, max_digits=10, null=True)),
|
||
|
('flavor_id', models.CharField(max_length=256)),
|
||
|
],
|
||
|
options={
|
||
|
'abstract': False,
|
||
|
},
|
||
|
),
|
||
|
migrations.CreateModel(
|
||
|
name='FloatingIpsPrice',
|
||
|
fields=[
|
||
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||
|
('created_at', models.DateTimeField(auto_now_add=True)),
|
||
|
('updated_at', models.DateTimeField(auto_now=True)),
|
||
|
('hourly_price_currency', djmoney.models.fields.CurrencyField(choices=[('IDR', 'Indonesian Rupiah'), ('USD', 'US Dollar')], default='IDR', editable=False, max_length=3)),
|
||
|
('hourly_price', djmoney.models.fields.MoneyField(decimal_places=0, max_digits=10)),
|
||
|
('monthly_price_currency', djmoney.models.fields.CurrencyField(choices=[('IDR', 'Indonesian Rupiah'), ('USD', 'US Dollar')], default='IDR', editable=False, max_length=3)),
|
||
|
('monthly_price', djmoney.models.fields.MoneyField(blank=True, decimal_places=0, default=None, max_digits=10, null=True)),
|
||
|
],
|
||
|
options={
|
||
|
'abstract': False,
|
||
|
},
|
||
|
),
|
||
|
migrations.CreateModel(
|
||
|
name='Invoice',
|
||
|
fields=[
|
||
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||
|
('created_at', models.DateTimeField(auto_now_add=True)),
|
||
|
('updated_at', models.DateTimeField(auto_now=True)),
|
||
|
('start_date', models.DateTimeField()),
|
||
|
('end_date', models.DateTimeField(blank=True, default=None, null=True)),
|
||
|
('state', models.IntegerField(choices=[(1, 'In Progress'), (100, 'Finished')])),
|
||
|
('tax_currency', djmoney.models.fields.CurrencyField(choices=[('IDR', 'Indonesian Rupiah'), ('USD', 'US Dollar')], default='IDR', editable=False, max_length=3)),
|
||
|
('tax', djmoney.models.fields.MoneyField(blank=True, decimal_places=0, default=None, max_digits=10, null=True)),
|
||
|
('total_currency', djmoney.models.fields.CurrencyField(choices=[('IDR', 'Indonesian Rupiah'), ('USD', 'US Dollar')], default='IDR', editable=False, max_length=3)),
|
||
|
('total', djmoney.models.fields.MoneyField(blank=True, decimal_places=0, default=None, max_digits=10, null=True)),
|
||
|
('project', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='core.billingproject')),
|
||
|
],
|
||
|
options={
|
||
|
'abstract': False,
|
||
|
},
|
||
|
),
|
||
|
migrations.CreateModel(
|
||
|
name='VolumePrice',
|
||
|
fields=[
|
||
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||
|
('created_at', models.DateTimeField(auto_now_add=True)),
|
||
|
('updated_at', models.DateTimeField(auto_now=True)),
|
||
|
('hourly_price_currency', djmoney.models.fields.CurrencyField(choices=[('IDR', 'Indonesian Rupiah'), ('USD', 'US Dollar')], default='IDR', editable=False, max_length=3)),
|
||
|
('hourly_price', djmoney.models.fields.MoneyField(decimal_places=0, max_digits=10)),
|
||
|
('monthly_price_currency', djmoney.models.fields.CurrencyField(choices=[('IDR', 'Indonesian Rupiah'), ('USD', 'US Dollar')], default='IDR', editable=False, max_length=3)),
|
||
|
('monthly_price', djmoney.models.fields.MoneyField(blank=True, decimal_places=0, default=None, max_digits=10, null=True)),
|
||
|
('volume_type_id', models.CharField(max_length=256)),
|
||
|
],
|
||
|
options={
|
||
|
'abstract': False,
|
||
|
},
|
||
|
),
|
||
|
migrations.CreateModel(
|
||
|
name='InvoiceVolume',
|
||
|
fields=[
|
||
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||
|
('created_at', models.DateTimeField(auto_now_add=True)),
|
||
|
('updated_at', models.DateTimeField(auto_now=True)),
|
||
|
('hourly_price_currency', djmoney.models.fields.CurrencyField(choices=[('IDR', 'Indonesian Rupiah'), ('USD', 'US Dollar')], default='IDR', editable=False, max_length=3)),
|
||
|
('hourly_price', djmoney.models.fields.MoneyField(decimal_places=0, max_digits=10)),
|
||
|
('monthly_price_currency', djmoney.models.fields.CurrencyField(choices=[('IDR', 'Indonesian Rupiah'), ('USD', 'US Dollar')], default='IDR', editable=False, max_length=3)),
|
||
|
('monthly_price', djmoney.models.fields.MoneyField(blank=True, decimal_places=0, default=None, max_digits=10, null=True)),
|
||
|
('start_date', models.DateTimeField()),
|
||
|
('end_date', models.DateTimeField(blank=True, default=None, null=True)),
|
||
|
('volume_id', models.CharField(max_length=256)),
|
||
|
('volume_type_id', models.CharField(max_length=256)),
|
||
|
('space_allocation_gb', models.IntegerField()),
|
||
|
('volume_name', models.CharField(max_length=256)),
|
||
|
('invoice', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='volumes', to='core.invoice')),
|
||
|
],
|
||
|
options={
|
||
|
'abstract': False,
|
||
|
},
|
||
|
),
|
||
|
migrations.CreateModel(
|
||
|
name='InvoiceInstance',
|
||
|
fields=[
|
||
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||
|
('created_at', models.DateTimeField(auto_now_add=True)),
|
||
|
('updated_at', models.DateTimeField(auto_now=True)),
|
||
|
('hourly_price_currency', djmoney.models.fields.CurrencyField(choices=[('IDR', 'Indonesian Rupiah'), ('USD', 'US Dollar')], default='IDR', editable=False, max_length=3)),
|
||
|
('hourly_price', djmoney.models.fields.MoneyField(decimal_places=0, max_digits=10)),
|
||
|
('monthly_price_currency', djmoney.models.fields.CurrencyField(choices=[('IDR', 'Indonesian Rupiah'), ('USD', 'US Dollar')], default='IDR', editable=False, max_length=3)),
|
||
|
('monthly_price', djmoney.models.fields.MoneyField(blank=True, decimal_places=0, default=None, max_digits=10, null=True)),
|
||
|
('start_date', models.DateTimeField()),
|
||
|
('end_date', models.DateTimeField(blank=True, default=None, null=True)),
|
||
|
('instance_id', models.CharField(max_length=266)),
|
||
|
('flavor_id', models.CharField(max_length=256)),
|
||
|
('name', models.CharField(max_length=256)),
|
||
|
('invoice', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='instances', to='core.invoice')),
|
||
|
],
|
||
|
options={
|
||
|
'abstract': False,
|
||
|
},
|
||
|
),
|
||
|
migrations.CreateModel(
|
||
|
name='InvoiceFloatingIp',
|
||
|
fields=[
|
||
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||
|
('created_at', models.DateTimeField(auto_now_add=True)),
|
||
|
('updated_at', models.DateTimeField(auto_now=True)),
|
||
|
('hourly_price_currency', djmoney.models.fields.CurrencyField(choices=[('IDR', 'Indonesian Rupiah'), ('USD', 'US Dollar')], default='IDR', editable=False, max_length=3)),
|
||
|
('hourly_price', djmoney.models.fields.MoneyField(decimal_places=0, max_digits=10)),
|
||
|
('monthly_price_currency', djmoney.models.fields.CurrencyField(choices=[('IDR', 'Indonesian Rupiah'), ('USD', 'US Dollar')], default='IDR', editable=False, max_length=3)),
|
||
|
('monthly_price', djmoney.models.fields.MoneyField(blank=True, decimal_places=0, default=None, max_digits=10, null=True)),
|
||
|
('start_date', models.DateTimeField()),
|
||
|
('end_date', models.DateTimeField(blank=True, default=None, null=True)),
|
||
|
('fip_id', models.CharField(max_length=266)),
|
||
|
('ip', models.CharField(max_length=256)),
|
||
|
('invoice', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='floating_ips', to='core.invoice')),
|
||
|
],
|
||
|
options={
|
||
|
'abstract': False,
|
||
|
},
|
||
|
),
|
||
|
]
|