2019-01-09 09:27:54 +00:00
|
|
|
# -*- coding: utf-8 -*-
|
2019-08-28 12:03:43 +00:00
|
|
|
# Generated by Django 1.11.20 on 2019-08-28 12:01
|
2019-01-09 09:27:54 +00:00
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
|
|
|
from django.conf import settings
|
|
|
|
from django.db import migrations, models
|
|
|
|
import django.db.models.deletion
|
2019-02-28 01:21:03 +00:00
|
|
|
import djangoldp.fields
|
2019-01-09 09:27:54 +00:00
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
|
|
|
initial = True
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='Notification',
|
|
|
|
fields=[
|
|
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
2019-08-28 12:03:43 +00:00
|
|
|
('author', djangoldp.fields.LDPUrlField()),
|
|
|
|
('object', djangoldp.fields.LDPUrlField()),
|
2019-01-09 09:27:54 +00:00
|
|
|
('type', models.CharField(max_length=255)),
|
|
|
|
('summary', models.TextField()),
|
|
|
|
('date', models.DateTimeField(auto_now_add=True)),
|
2019-08-28 12:03:43 +00:00
|
|
|
('unread', models.BooleanField(default=True)),
|
2019-01-31 09:44:41 +00:00
|
|
|
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='inbox', to=settings.AUTH_USER_MODEL)),
|
2019-01-09 09:27:54 +00:00
|
|
|
],
|
|
|
|
options={
|
2019-08-28 12:03:43 +00:00
|
|
|
'ordering': ['-date'],
|
|
|
|
'abstract': False,
|
|
|
|
'default_permissions': ('add', 'change', 'delete', 'view', 'control'),
|
2019-01-09 09:27:54 +00:00
|
|
|
},
|
|
|
|
),
|
2019-01-31 09:44:41 +00:00
|
|
|
migrations.CreateModel(
|
|
|
|
name='Subscription',
|
|
|
|
fields=[
|
|
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
|
|
('object', models.URLField()),
|
|
|
|
('inbox', models.URLField()),
|
|
|
|
],
|
|
|
|
options={
|
2019-08-28 12:03:43 +00:00
|
|
|
'abstract': False,
|
|
|
|
'default_permissions': ('add', 'change', 'delete', 'view', 'control'),
|
2019-01-31 09:44:41 +00:00
|
|
|
},
|
|
|
|
),
|
2019-01-11 08:09:24 +00:00
|
|
|
]
|