You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
2.1 KiB
Python
62 lines
2.1 KiB
Python
5 years ago
|
# Generated by Django 3.0.3 on 2020-05-20 11:03
|
||
|
|
||
|
from django.conf import settings
|
||
|
import django.core.validators
|
||
|
from django.db import migrations, models
|
||
|
import django.db.models.deletion
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
|
||
|
dependencies = [
|
||
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
||
4 years ago
|
("django_etebase", "0002_userinfo"),
|
||
5 years ago
|
]
|
||
|
|
||
|
operations = [
|
||
|
migrations.CreateModel(
|
||
4 years ago
|
name="CollectionInvitation",
|
||
5 years ago
|
fields=[
|
||
4 years ago
|
("id", models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name="ID")),
|
||
|
(
|
||
|
"uid",
|
||
|
models.CharField(
|
||
|
db_index=True,
|
||
|
max_length=44,
|
||
|
validators=[
|
||
|
django.core.validators.RegexValidator(
|
||
|
message="Expected a 256bit base64url.", regex="^[a-zA-Z0-9\\-_]{43}$"
|
||
|
)
|
||
|
],
|
||
|
),
|
||
|
),
|
||
|
("signedEncryptionKey", models.BinaryField()),
|
||
|
(
|
||
|
"accessLevel",
|
||
|
models.CharField(
|
||
|
choices=[("adm", "Admin"), ("rw", "Read Write"), ("ro", "Read Only")],
|
||
|
default="ro",
|
||
|
max_length=3,
|
||
|
),
|
||
|
),
|
||
|
(
|
||
|
"fromMember",
|
||
|
models.ForeignKey(
|
||
|
on_delete=django.db.models.deletion.CASCADE, to="django_etebase.CollectionMember"
|
||
|
),
|
||
|
),
|
||
|
(
|
||
|
"user",
|
||
|
models.ForeignKey(
|
||
|
on_delete=django.db.models.deletion.CASCADE,
|
||
|
related_name="incoming_invitations",
|
||
|
to=settings.AUTH_USER_MODEL,
|
||
|
),
|
||
|
),
|
||
5 years ago
|
],
|
||
4 years ago
|
options={
|
||
|
"unique_together": {("user", "fromMember")},
|
||
|
},
|
||
5 years ago
|
),
|
||
|
]
|