49 lines
1.9 KiB
Python
49 lines
1.9 KiB
Python
# Generated by Django 3.2.13 on 2022-05-17 21:02
|
|
|
|
import django.contrib.postgres.fields.jsonb
|
|
import django.core.validators
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
dependencies = [
|
|
('environment', '0025_legacy_urls'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='Lingo',
|
|
fields=[
|
|
(
|
|
'id',
|
|
models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'),
|
|
),
|
|
('title', models.CharField(max_length=50, verbose_name='Title')),
|
|
('slug', models.SlugField(verbose_name='Slug')),
|
|
(
|
|
'base_url',
|
|
models.CharField(
|
|
max_length=200,
|
|
validators=[django.core.validators.URLValidator()],
|
|
verbose_name='Base URL',
|
|
),
|
|
),
|
|
(
|
|
'legacy_urls',
|
|
django.contrib.postgres.fields.jsonb.JSONField(blank=True, default=list, null=True),
|
|
),
|
|
('secret_key', models.CharField(max_length=60, verbose_name='Secret Key')),
|
|
('template_name', models.CharField(blank=True, max_length=60, verbose_name='Template')),
|
|
('secondary', models.BooleanField(default=False, verbose_name='Secondary Service')),
|
|
('last_operational_check_timestamp', models.DateTimeField(null=True)),
|
|
('last_operational_success_timestamp', models.DateTimeField(null=True)),
|
|
('last_update_timestamp', models.DateTimeField(auto_now=True, null=True)),
|
|
],
|
|
options={
|
|
'verbose_name': 'Lingo Billing and Payment',
|
|
'verbose_name_plural': 'Lingo Billing and Payment',
|
|
'ordering': ['title'],
|
|
},
|
|
),
|
|
]
|