1 # -*- coding: utf-8 -*-
2 # Generated by Django 1.10 on 2016-11-03 13:33
3 from __future__ import unicode_literals
5 from django.conf import settings
6 from django.db import migrations, models
7 import django.db.models.deletion
10 class Migration(migrations.Migration):
15 migrations.swappable_dependency(settings.AUTH_USER_MODEL),
16 ('jenkins', '0001_initial'),
20 migrations.CreateModel(
23 ('id', models.AutoField(primary_key=True, serialize=False)),
24 ('name', models.CharField(max_length=100, unique=True)),
25 ('description', models.CharField(blank=True, max_length=300, null=True)),
26 ('url', models.CharField(blank=True, max_length=100, null=True)),
27 ('owner', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='user_lab_owner', to=settings.AUTH_USER_MODEL)),
28 ('slave', models.ForeignKey(null=True, on_delete=django.db.models.deletion.DO_NOTHING, to='jenkins.JenkinsSlave')),
29 ('vpn_users', models.ManyToManyField(blank=True, related_name='user_vpn_users', to=settings.AUTH_USER_MODEL)),
32 'db_table': 'resource',
35 migrations.CreateModel(
36 name='ResourceStatus',
38 ('id', models.AutoField(primary_key=True, serialize=False)),
39 ('timestamp', models.DateTimeField(auto_now_add=True)),
40 ('type', models.CharField(max_length=20)),
41 ('title', models.CharField(max_length=50)),
42 ('content', models.CharField(max_length=5000)),
43 ('resource', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='dashboard.Resource')),
46 'db_table': 'resource_status',
49 migrations.CreateModel(
52 ('id', models.AutoField(primary_key=True, serialize=False)),
53 ('name', models.CharField(blank=True, max_length=100)),
54 ('model', models.CharField(blank=True, max_length=100)),
55 ('cpu', models.CharField(blank=True, max_length=100)),
56 ('ram', models.CharField(blank=True, max_length=100)),
57 ('storage', models.CharField(blank=True, max_length=100)),
58 ('resource', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='dashboard.Resource')),