"Fossies" - the Fresh Open Source Software Archive

Member "seahub-7.1.0-pro/seahub/drafts/migrations/0001_initial.py" (30 Dec 2019, 3913 Bytes) of package /linux/www/seahub-7.1.0-pro.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Python source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 # -*- coding: utf-8 -*-
    2 # Generated by Django 1.11.15 on 2018-11-10 06:21
    3 
    4 
    5 from django.db import migrations, models
    6 import django.db.models.deletion
    7 import seahub.base.fields
    8 
    9 
   10 class Migration(migrations.Migration):
   11 
   12     initial = True
   13 
   14     dependencies = [
   15         ('tags', '0001_initial'),
   16     ]
   17 
   18     operations = [
   19         migrations.CreateModel(
   20             name='Draft',
   21             fields=[
   22                 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
   23                 ('created_at', models.DateTimeField(auto_now_add=True, db_index=True)),
   24                 ('updated_at', models.DateTimeField(auto_now=True, db_index=True)),
   25                 ('username', seahub.base.fields.LowerCaseCharField(db_index=True, max_length=255)),
   26                 ('origin_repo_id', models.CharField(max_length=36)),
   27                 ('origin_file_version', models.CharField(max_length=100)),
   28                 ('draft_file_path', models.CharField(max_length=1024)),
   29                 ('origin_file_uuid', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='tags.FileUUIDMap')),
   30             ],
   31             options={
   32                 'ordering': ['-created_at', '-updated_at'],
   33                 'abstract': False,
   34             },
   35         ),
   36         migrations.CreateModel(
   37             name='DraftReview',
   38             fields=[
   39                 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
   40                 ('created_at', models.DateTimeField(auto_now_add=True, db_index=True)),
   41                 ('updated_at', models.DateTimeField(auto_now=True, db_index=True)),
   42                 ('creator', seahub.base.fields.LowerCaseCharField(db_index=True, max_length=255)),
   43                 ('status', models.CharField(max_length=20)),
   44                 ('origin_repo_id', models.CharField(max_length=36)),
   45                 ('draft_file_path', models.CharField(max_length=1024)),
   46                 ('origin_file_version', models.CharField(max_length=100)),
   47                 ('publish_file_version', models.CharField(max_length=100, null=True)),
   48                 ('draft_id', models.OneToOneField(null=True, on_delete=django.db.models.deletion.SET_NULL, to='drafts.Draft')),
   49                 ('origin_file_uuid', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='tags.FileUUIDMap')),
   50             ],
   51             options={
   52                 'ordering': ['-created_at', '-updated_at'],
   53                 'abstract': False,
   54             },
   55         ),
   56         migrations.CreateModel(
   57             name='ReviewComment',
   58             fields=[
   59                 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
   60                 ('created_at', models.DateTimeField(auto_now_add=True, db_index=True)),
   61                 ('updated_at', models.DateTimeField(auto_now=True, db_index=True)),
   62                 ('author', seahub.base.fields.LowerCaseCharField(db_index=True, max_length=255)),
   63                 ('resolved', models.BooleanField(db_index=True, default=False)),
   64                 ('comment', models.TextField()),
   65                 ('detail', models.TextField()),
   66                 ('review_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='drafts.DraftReview')),
   67             ],
   68             options={
   69                 'ordering': ['-created_at', '-updated_at'],
   70                 'abstract': False,
   71             },
   72         ),
   73         migrations.CreateModel(
   74             name='ReviewReviewer',
   75             fields=[
   76                 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
   77                 ('reviewer', seahub.base.fields.LowerCaseCharField(db_index=True, max_length=255)),
   78                 ('review_id', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='drafts.DraftReview')),
   79             ],
   80         ),
   81     ]