blob: f7fd1ea3d631c19f594d73ca98b34aea336e293d [file] [log] [blame]
Scott Bakere81d2f82014-11-17 11:10:51 -08001# -*- coding: utf-8 -*-
2from __future__ import unicode_literals
3
4from django.db import models, migrations
5import django.utils.timezone
6
7
8class Migration(migrations.Migration):
9
10 dependencies = [
Scott Baker12e9bcb2014-11-17 11:14:54 -080011 ('core', '0005_network_ports'),
Scott Bakere81d2f82014-11-17 11:10:51 -080012 ]
13
14 operations = [
15 migrations.CreateModel(
16 name='Composition',
17 fields=[
18 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
19 ('created', models.DateTimeField(default=django.utils.timezone.now, auto_now_add=True)),
20 ('updated', models.DateTimeField(default=django.utils.timezone.now, auto_now=True)),
21 ('enacted', models.DateTimeField(default=None, null=True)),
22 ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=140)),
23 ('deleted', models.BooleanField(default=False)),
24 ('name', models.CharField(max_length=255)),
25 ],
26 options={
27 },
28 bases=(models.Model,),
29 ),
30 migrations.CreateModel(
31 name='CompositionService',
32 fields=[
33 ('service_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='core.Service')),
34 ],
35 options={
36 'verbose_name': 'Service Composition Service',
37 },
38 bases=('core.service', models.Model),
39 ),
40 migrations.CreateModel(
41 name='CompositionServiceThrough',
42 fields=[
43 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
44 ('created', models.DateTimeField(default=django.utils.timezone.now, auto_now_add=True)),
45 ('updated', models.DateTimeField(default=django.utils.timezone.now, auto_now=True)),
46 ('enacted', models.DateTimeField(default=None, null=True)),
47 ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=140)),
48 ('deleted', models.BooleanField(default=False)),
49 ('order', models.IntegerField(default=0)),
50 ('composition', models.ForeignKey(to='servcomp.Composition')),
51 ('service', models.ForeignKey(related_name=b'compositions', to='core.Service')),
52 ],
53 options={
54 'ordering': ('order',),
55 },
56 bases=(models.Model,),
57 ),
58 migrations.CreateModel(
59 name='EndUser',
60 fields=[
61 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
62 ('created', models.DateTimeField(default=django.utils.timezone.now, auto_now_add=True)),
63 ('updated', models.DateTimeField(default=django.utils.timezone.now, auto_now=True)),
64 ('enacted', models.DateTimeField(default=None, null=True)),
65 ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=140)),
66 ('deleted', models.BooleanField(default=False)),
67 ('email', models.CharField(max_length=255)),
68 ('firstName', models.CharField(max_length=80)),
69 ('lastName', models.CharField(max_length=80)),
70 ('macAddress', models.CharField(max_length=80)),
71 ('composition', models.ForeignKey(related_name=b'endUsers', blank=True, to='servcomp.Composition', null=True)),
72 ],
73 options={
74 },
75 bases=(models.Model,),
76 ),
77 migrations.AddField(
78 model_name='composition',
79 name='services',
80 field=models.ManyToManyField(to='core.Service', through='servcomp.CompositionServiceThrough', blank=True),
81 preserve_default=True,
82 ),
83 ]