mirror of https://github.com/doccano/doccano.git
pythondatasetsactive-learningtext-annotationdatasetnatural-language-processingdata-labelingmachine-learningannotation-tool
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.8 KiB
43 lines
1.8 KiB
# Generated by Django 2.1.7 on 2019-07-25 03:33
|
|
|
|
from django.conf import settings
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
|
('api', '0003_support_sql_server'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='Role',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('name', models.CharField(max_length=100, unique=True)),
|
|
('description', models.TextField(default='', null=True)),
|
|
('created_at', models.DateTimeField(auto_now_add=True)),
|
|
('updated_at', models.DateTimeField(auto_now=True)),
|
|
],
|
|
),
|
|
migrations.CreateModel(
|
|
name='RoleMapping',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('created_at', models.DateTimeField(auto_now_add=True)),
|
|
('updated_at', models.DateTimeField(auto_now=True)),
|
|
('project', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
|
|
related_name='role_mappings', to='api.Project')),
|
|
('role', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.Role')),
|
|
('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
|
|
related_name='role_mappings', to=settings.AUTH_USER_MODEL)),
|
|
],
|
|
),
|
|
migrations.AlterUniqueTogether(
|
|
name='rolemapping',
|
|
unique_together={('user', 'project', 'role')},
|
|
),
|
|
]
|