2020-06-01 21:34:45 +00:00
|
|
|
# Generated by Django 3.0.3 on 2020-06-01 21:31
|
|
|
|
|
|
|
|
from django.db import migrations, models
|
2020-09-21 15:10:37 +00:00
|
|
|
import bookwyrm.models.site
|
2020-06-01 21:34:45 +00:00
|
|
|
|
|
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
|
|
|
|
dependencies = [
|
2020-09-21 15:10:37 +00:00
|
|
|
('bookwyrm', '0042_sitesettings'),
|
2020-06-01 21:34:45 +00:00
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='SiteInvite',
|
|
|
|
fields=[
|
|
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
2020-09-21 15:10:37 +00:00
|
|
|
('code', models.CharField(default=bookwyrm.models.site.new_invite_code, max_length=32)),
|
2020-06-01 21:34:45 +00:00
|
|
|
('expiry', models.DateTimeField(blank=True, null=True)),
|
|
|
|
('use_limit', models.IntegerField(blank=True, null=True)),
|
|
|
|
('times_used', models.IntegerField(default=0)),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
]
|