29 lines
1.0 KiB
Python
29 lines
1.0 KiB
Python
|
# Generated by Django 3.1.4 on 2021-01-15 11:00
|
||
|
|
||
|
import ckeditor.fields
|
||
|
from django.conf import settings
|
||
|
from django.db import migrations, models
|
||
|
import django.db.models.deletion
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
|
||
|
dependencies = [
|
||
|
('jobs', '0009_auto_20210114_1950'),
|
||
|
('users', '0003_auto_20210114_1950'),
|
||
|
]
|
||
|
|
||
|
operations = [
|
||
|
migrations.CreateModel(
|
||
|
name='Invite',
|
||
|
fields=[
|
||
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||
|
('date', models.DateField(blank=True, default=None, null=True)),
|
||
|
('message', ckeditor.fields.RichTextField(blank=True)),
|
||
|
('unread', models.BooleanField(default=True)),
|
||
|
('job', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='invites', to='jobs.job')),
|
||
|
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='invites', to=settings.AUTH_USER_MODEL)),
|
||
|
],
|
||
|
),
|
||
|
]
|