"Fossies" - the Fresh Open Source Software Archive

Member "seahub-7.1.0-pro/seahub/tags/migrations/0001_initial.py" (30 Dec 2019, 1852 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.11 on 2018-03-21 08:44
    3 
    4 
    5 from django.db import migrations, models
    6 import django.db.models.deletion
    7 import seahub.base.fields
    8 import uuid
    9 
   10 
   11 class Migration(migrations.Migration):
   12 
   13     initial = True
   14 
   15     dependencies = [
   16     ]
   17 
   18     operations = [
   19         migrations.CreateModel(
   20             name='FileTag',
   21             fields=[
   22                 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
   23                 ('username', seahub.base.fields.LowerCaseCharField(max_length=255)),
   24             ],
   25         ),
   26         migrations.CreateModel(
   27             name='FileUUIDMap',
   28             fields=[
   29                 ('uuid', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False)),
   30                 ('repo_id', models.CharField(db_index=True, max_length=36)),
   31                 ('repo_id_parent_path_md5', models.CharField(db_index=True, max_length=100)),
   32                 ('parent_path', models.TextField()),
   33                 ('filename', models.CharField(max_length=1024)),
   34                 ('is_dir', models.BooleanField()),
   35             ],
   36         ),
   37         migrations.CreateModel(
   38             name='Tags',
   39             fields=[
   40                 ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
   41                 ('name', models.CharField(max_length=255, unique=True)),
   42             ],
   43         ),
   44         migrations.AddField(
   45             model_name='filetag',
   46             name='tag',
   47             field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='tags.Tags'),
   48         ),
   49         migrations.AddField(
   50             model_name='filetag',
   51             name='uuid',
   52             field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='tags.FileUUIDMap'),
   53         ),
   54     ]