2018-12-15 09:33:25 +01:00
|
|
|
# Generated by Django 1.11.16 on 2018-12-22 21:05
|
|
|
|
|
|
|
|
import django.db.models.deletion
|
2020-01-14 21:59:46 +01:00
|
|
|
from django.db import migrations, models
|
2018-12-15 09:33:25 +01:00
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
2021-02-12 08:20:45 +01:00
|
|
|
("corporate", "0002_customer_default_discount"),
|
2018-12-15 09:33:25 +01:00
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
2021-02-12 08:20:45 +01:00
|
|
|
name="CustomerPlan",
|
2018-12-15 09:33:25 +01:00
|
|
|
fields=[
|
2021-02-12 08:19:30 +01:00
|
|
|
(
|
2021-02-12 08:20:45 +01:00
|
|
|
"id",
|
2021-02-12 08:19:30 +01:00
|
|
|
models.AutoField(
|
2021-02-12 08:20:45 +01:00
|
|
|
auto_created=True, primary_key=True, serialize=False, verbose_name="ID"
|
2021-02-12 08:19:30 +01:00
|
|
|
),
|
|
|
|
),
|
2021-02-12 08:20:45 +01:00
|
|
|
("licenses", models.IntegerField()),
|
|
|
|
("automanage_licenses", models.BooleanField(default=False)),
|
|
|
|
("charge_automatically", models.BooleanField(default=False)),
|
|
|
|
("price_per_license", models.IntegerField(null=True)),
|
|
|
|
("fixed_price", models.IntegerField(null=True)),
|
|
|
|
("discount", models.DecimalField(decimal_places=4, max_digits=6, null=True)),
|
|
|
|
("billing_cycle_anchor", models.DateTimeField()),
|
|
|
|
("billing_schedule", models.SmallIntegerField()),
|
|
|
|
("billed_through", models.DateTimeField()),
|
|
|
|
("next_billing_date", models.DateTimeField(db_index=True)),
|
|
|
|
("tier", models.SmallIntegerField()),
|
|
|
|
("status", models.SmallIntegerField(default=1)),
|
2021-02-12 08:19:30 +01:00
|
|
|
(
|
2021-02-12 08:20:45 +01:00
|
|
|
"customer",
|
2021-02-12 08:19:30 +01:00
|
|
|
models.ForeignKey(
|
2021-02-12 08:20:45 +01:00
|
|
|
on_delete=django.db.models.deletion.CASCADE, to="corporate.Customer"
|
2021-02-12 08:19:30 +01:00
|
|
|
),
|
|
|
|
),
|
2018-12-15 09:33:25 +01:00
|
|
|
],
|
|
|
|
),
|
|
|
|
]
|