kopia lustrzana https://gitlab.com/marnanel/chapeau
112 wiersze
5.1 KiB
Python
112 wiersze
5.1 KiB
Python
# Generated by Django 2.2.1 on 2019-07-02 15:53
|
|
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
import uuid
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = [
|
|
('contenttypes', '0002_remove_content_type_name'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='CachedRemoteText',
|
|
fields=[
|
|
('address', models.URLField(primary_key=True, serialize=False)),
|
|
('content', models.TextField(default=None, null=True)),
|
|
],
|
|
),
|
|
migrations.CreateModel(
|
|
name='Following',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('follower', models.URLField(max_length=255)),
|
|
('following', models.URLField(max_length=255)),
|
|
('pending', models.BooleanField(default=True)),
|
|
],
|
|
),
|
|
migrations.CreateModel(
|
|
name='IncomingMessage',
|
|
fields=[
|
|
('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)),
|
|
('received_date', models.DateTimeField(auto_now_add=True)),
|
|
('content_type', models.CharField(default='', max_length=255)),
|
|
('date', models.CharField(default='', max_length=255)),
|
|
('digest', models.CharField(default='', max_length=255)),
|
|
('host', models.CharField(default='', max_length=255)),
|
|
('path', models.CharField(default='', max_length=255)),
|
|
('signature', models.CharField(default='', max_length=255)),
|
|
('body', models.TextField(default='')),
|
|
('waiting_for', models.URLField(default=None, null=True)),
|
|
],
|
|
),
|
|
migrations.CreateModel(
|
|
name='Thing',
|
|
fields=[
|
|
('number', models.CharField(default='', max_length=8, primary_key=True, serialize=False, unique=True)),
|
|
('f_type', models.CharField(choices=[('Accept', 'Accept'), ('Add', 'Add'), ('Create', 'Create'), ('Delete', 'Delete'), ('Follow', 'Follow'), ('Like', 'Like'), ('Reject', 'Reject'), ('Remove', 'Remove'), ('Undo', 'Undo'), ('Update', 'Update')], max_length=255)),
|
|
('remote_url', models.URLField(default=None, max_length=255, null=True, unique=True)),
|
|
('f_actor', models.URLField(blank=True, max_length=255)),
|
|
('f_name', models.CharField(blank=True, max_length=255)),
|
|
('active', models.BooleanField(default=True)),
|
|
('other_fields', models.TextField(default='')),
|
|
('polymorphic_ctype', models.ForeignKey(editable=False, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='polymorphic_django_kepi.thing_set+', to='contenttypes.ContentType')),
|
|
],
|
|
options={
|
|
'abstract': False,
|
|
'base_manager_name': 'objects',
|
|
},
|
|
),
|
|
migrations.CreateModel(
|
|
name='Activity',
|
|
fields=[
|
|
('thing_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='django_kepi.Thing')),
|
|
],
|
|
options={
|
|
'abstract': False,
|
|
'base_manager_name': 'objects',
|
|
},
|
|
bases=('django_kepi.thing',),
|
|
),
|
|
migrations.CreateModel(
|
|
name='Actor',
|
|
fields=[
|
|
('thing_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='django_kepi.Thing')),
|
|
('privateKey', models.TextField()),
|
|
('publicKey', models.TextField()),
|
|
('auto_follow', models.BooleanField(default=True)),
|
|
],
|
|
options={
|
|
'abstract': False,
|
|
'base_manager_name': 'objects',
|
|
},
|
|
bases=('django_kepi.thing',),
|
|
),
|
|
migrations.CreateModel(
|
|
name='Item',
|
|
fields=[
|
|
('thing_ptr', models.OneToOneField(auto_created=True, on_delete=django.db.models.deletion.CASCADE, parent_link=True, primary_key=True, serialize=False, to='django_kepi.Thing')),
|
|
('f_content', models.CharField(blank=True, max_length=255)),
|
|
],
|
|
options={
|
|
'abstract': False,
|
|
'base_manager_name': 'objects',
|
|
},
|
|
bases=('django_kepi.thing',),
|
|
),
|
|
migrations.CreateModel(
|
|
name='Audience',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('field', models.PositiveSmallIntegerField(choices=[(1, 'audience'), (2, 'to'), (4, 'cc'), (114, 'bto'), (116, 'bcc')])),
|
|
('recipient', models.CharField(max_length=255)),
|
|
('parent', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='django_kepi.Thing')),
|
|
],
|
|
),
|
|
]
|