28 lines
1.1 KiB
Python
28 lines
1.1 KiB
Python
# Generated by Django 3.0.4 on 2020-03-21 02:33
|
|
|
|
from django.db import migrations, models
|
|
import uuid
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = [
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='Notification',
|
|
fields=[
|
|
('uuid', models.UUIDField(db_index=True, default=uuid.uuid4, editable=False, primary_key=True, serialize=False, unique=True)),
|
|
('state', models.IntegerField(choices=[(1, 'created'), (2, 'delayed'), (3, 'pending'), (4, 'failed'), (5, 'done')], default=1)),
|
|
('phone_number', models.CharField(blank=True, db_index=True, max_length=30, null=True)),
|
|
('body', models.TextField(max_length=200)),
|
|
('application_client_id', models.CharField(db_index=True, max_length=100, null=True)),
|
|
('user_uuid', models.UUIDField(db_index=True, null=True)),
|
|
('create', models.DateTimeField(auto_now=True, null=True, verbose_name='create')),
|
|
('last_update', models.DateTimeField(auto_now=True, null=True, verbose_name='last update')),
|
|
],
|
|
),
|
|
]
|