# -*- coding: utf-8 -*- ############################################################################# ## ## Copyright (C) 2020 Luxoft Sweden AB ## Copyright (C) 2018 Pelagicore AG ## Contact: https://www.qt.io/licensing/ ## ## This file is part of the Neptune Deployment Server ## ## $QT_BEGIN_LICENSE:GPL-QTAS$ ## Commercial License Usage ## Licensees holding valid commercial Qt Automotive Suite licenses may use ## this file in accordance with the commercial license agreement provided ## with the Software or, alternatively, in accordance with the terms ## contained in a written agreement between you and The Qt Company. For ## licensing terms and conditions see https://www.qt.io/terms-conditions. ## For further information use the contact form at https://www.qt.io/contact-us. ## ## GNU General Public License Usage ## Alternatively, this file may be used under the terms of the GNU ## General Public License version 3 or (at your option) any later version ## approved by the KDE Free Qt Foundation. The licenses are as published by ## the Free Software Foundation and appearing in the file LICENSE.GPL3 ## included in the packaging of this file. Please review the following ## information to ensure the GNU General Public License requirements will ## be met: https://www.gnu.org/licenses/gpl-3.0.html. ## ## $QT_END_LICENSE$ ## ## SPDX-License-Identifier: GPL-3.0 ## ############################################################################# # Generated by Django 1.11.27 on 2020-10-30 13:46 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion import store.models import uuid class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='App', fields=[ ('id', models.UUIDField(default=uuid.uuid4, editable=False, primary_key=True, serialize=False)), ('appid', models.CharField(max_length=200)), ('name', models.CharField(max_length=200)), ('file', models.FileField(storage=store.models.OverwriteStorage(), upload_to=store.models.content_file_name)), ('briefDescription', models.TextField()), ('description', models.TextField()), ('dateAdded', models.DateField(auto_now_add=True)), ('dateModified', models.DateField(auto_now=True)), ('tags_hash', models.CharField(default='', max_length=4096)), ('architecture', models.CharField(default='All', max_length=20)), ('version', models.CharField(default='0.0.0', max_length=20)), ('pkgformat', models.IntegerField()), ], ), migrations.CreateModel( name='Category', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('order', models.PositiveIntegerField(db_index=True, editable=False)), ('name', models.CharField(max_length=200)), ('icon', models.ImageField(storage=store.models.OverwriteStorage(), upload_to=store.models.category_file_name)), ], options={ 'ordering': ('order',), 'abstract': False, }, ), migrations.CreateModel( name='Tag', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('negative', models.BooleanField(default=False)), ('name', models.CharField(max_length=200)), ('version', models.CharField(blank=True, max_length=200)), ], ), migrations.CreateModel( name='Vendor', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=200)), ('certificate', models.TextField(max_length=8000)), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.AlterUniqueTogether( name='tag', unique_together=set([('negative', 'name', 'version')]), ), migrations.AddField( model_name='app', name='category', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='store.Category'), ), migrations.AddField( model_name='app', name='tags', field=models.ManyToManyField(to='store.Tag'), ), migrations.AddField( model_name='app', name='vendor', field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='store.Vendor'), ), migrations.AlterUniqueTogether( name='app', unique_together=set([('appid', 'architecture', 'tags_hash')]), ), ]