This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
logtracker/logtracker/mail/migrations/0001_initial.py

70 lines
2.5 KiB
Python

# -*- coding: utf-8 -*-
# Generated by Django 1.11.29 on 2020-08-25 15:13
from __future__ import unicode_literals
import django.contrib.postgres.fields.jsonb
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Mail',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('identifier', models.CharField(max_length=30)),
('has_error', models.BooleanField(default=False)),
('has_completed', models.BooleanField(default=False)),
('stamp', models.DateTimeField(null=True)),
('entries', django.contrib.postgres.fields.jsonb.JSONField(default=list)),
],
),
migrations.CreateModel(
name='Property',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('name', models.CharField(max_length=128, unique=True)),
('data', django.contrib.postgres.fields.jsonb.JSONField(default=dict)),
],
),
migrations.CreateModel(
name='Recipient',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('email', models.EmailField(blank=True, max_length=254, null=True)),
],
options={
'ordering': ['email'],
'abstract': False,
},
),
migrations.CreateModel(
name='Sender',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('email', models.EmailField(blank=True, max_length=254, null=True)),
],
options={
'ordering': ['email'],
'abstract': False,
},
),
migrations.AddField(
model_name='mail',
name='recipients',
field=models.ManyToManyField(to='mail.Recipient'),
),
migrations.AddField(
model_name='mail',
name='sender',
field=models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to='mail.Sender'),
),
]