Development Override Compose File
[laas.git] / src / dashboard / migrations / 0001_initial.py
1 # -*- coding: utf-8 -*-
2 # Generated by Django 1.10 on 2016-11-03 13:33
3 from __future__ import unicode_literals
4
5 from django.conf import settings
6 from django.db import migrations, models
7 import django.db.models.deletion
8
9
10 class Migration(migrations.Migration):
11
12     initial = True
13
14     dependencies = [
15         migrations.swappable_dependency(settings.AUTH_USER_MODEL),
16         ('jenkins', '0001_initial'),
17     ]
18
19     operations = [
20         migrations.CreateModel(
21             name='Resource',
22             fields=[
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)),
30             ],
31             options={
32                 'db_table': 'resource',
33             },
34         ),
35         migrations.CreateModel(
36             name='ResourceStatus',
37             fields=[
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')),
44             ],
45             options={
46                 'db_table': 'resource_status',
47             },
48         ),
49         migrations.CreateModel(
50             name='Server',
51             fields=[
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')),
59             ],
60             options={
61                 'db_table': 'server',
62             },
63         ),
64     ]