Add the Actor model

2019-08-17
Marnanel Thurman 2019-05-27 21:17:13 +01:00
rodzic c4f80dc237
commit 1b0b08d8ec
1 zmienionych plików z 28 dodań i 0 usunięć

Wyświetl plik

@ -0,0 +1,28 @@
# Generated by Django 2.2.1 on 2019-05-27 14:58
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('django_kepi', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Actor',
fields=[
('thing', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, primary_key=True, serialize=False, to='django_kepi.Thing')),
('privateKey', models.TextField()),
('publicKey', models.TextField()),
('auto_follow', models.BooleanField(default=True)),
],
),
migrations.AlterField(
model_name='thing',
name='f_type',
field=models.CharField(choices=[('Follow', 'Follow'), ('Remove', 'Remove'), ('Reject', 'Reject'), ('Create', 'Create'), ('Update', 'Update'), ('Like', 'Like'), ('Add', 'Add'), ('Accept', 'Accept'), ('Delete', 'Delete'), ('Undo', 'Undo')], max_length=255),
),
]