yuyu/core/migrations/0005_imageprice_invoiceimage.py
2022-05-13 13:53:52 +07:00

51 lines
2.8 KiB
Python

# Generated by Django 3.2.6 on 2021-10-29 04:22
from django.db import migrations, models
import django.db.models.deletion
import djmoney.models.fields
class Migration(migrations.Migration):
dependencies = [
('core', '0004_invoicerouter_invoicesnapshot_routerprice_snapshotprice'),
]
operations = [
migrations.CreateModel(
name='ImagePrice',
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='InvoiceImage',
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)),
('image_id', models.CharField(max_length=256)),
('space_allocation_gb', models.FloatField()),
('name', models.CharField(max_length=256)),
('invoice', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='images', to='core.invoice')),
],
options={
'abstract': False,
},
),
]