blob: e1bdd01ec83f2bae15d67675c466030f6db571e5 [file] [log] [blame]
Tony Macka8242c72014-12-25 19:17:54 -05001# -*- coding: utf-8 -*-
2from __future__ import unicode_literals
3
4from django.db import models, migrations
5import django.utils.timezone
6from django.conf import settings
7
8
9class Migration(migrations.Migration):
10
11 dependencies = [
12 migrations.swappable_dependency(settings.AUTH_USER_MODEL),
13 ('core', '0001_initial'),
14 ]
15
16 operations = [
17 migrations.CreateModel(
18 name='AccessMap',
19 fields=[
20 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
21 ('name', models.CharField(help_text=b'Name of the Access Map', max_length=64)),
22 ('description', models.TextField(max_length=130, null=True, blank=True)),
23 ('map', models.FileField(help_text=b'specifies which client requests are allowed', upload_to=b'maps/')),
24 ],
25 options={
26 },
27 bases=(models.Model,),
28 ),
29 migrations.CreateModel(
30 name='CDNPrefix',
31 fields=[
32 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
33 ('created', models.DateTimeField(default=django.utils.timezone.now, auto_now_add=True)),
34 ('updated', models.DateTimeField(default=django.utils.timezone.now, auto_now=True)),
35 ('enacted', models.DateTimeField(default=None, null=True, blank=True)),
36 ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=140)),
37 ('deleted', models.BooleanField(default=False)),
38 ('cdn_prefix_id', models.IntegerField(null=True, blank=True)),
39 ('prefix', models.CharField(help_text=b'Registered Prefix for Domain', max_length=200)),
40 ('description', models.TextField(help_text=b'Description of Content Provider', max_length=254, null=True, blank=True)),
41 ('enabled', models.BooleanField(default=True)),
42 ],
43 options={
44 },
45 bases=(models.Model,),
46 ),
47 migrations.CreateModel(
48 name='ContentProvider',
49 fields=[
50 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
51 ('created', models.DateTimeField(default=django.utils.timezone.now, auto_now_add=True)),
52 ('updated', models.DateTimeField(default=django.utils.timezone.now, auto_now=True)),
53 ('enacted', models.DateTimeField(default=None, null=True, blank=True)),
54 ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=140)),
55 ('deleted', models.BooleanField(default=False)),
56 ('content_provider_id', models.IntegerField(null=True, blank=True)),
57 ('name', models.CharField(max_length=254)),
58 ('enabled', models.BooleanField(default=True)),
59 ('description', models.TextField(help_text=b'Description of Content Provider', max_length=254, null=True, blank=True)),
60 ],
61 options={
62 },
63 bases=(models.Model,),
64 ),
65 migrations.CreateModel(
66 name='HpcService',
67 fields=[
68 ('service_ptr', models.OneToOneField(parent_link=True, auto_created=True, primary_key=True, serialize=False, to='core.Service')),
69 ],
70 options={
71 'verbose_name': 'HPC Service',
72 },
73 bases=('core.service', models.Model),
74 ),
75 migrations.CreateModel(
76 name='OriginServer',
77 fields=[
78 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
79 ('created', models.DateTimeField(default=django.utils.timezone.now, auto_now_add=True)),
80 ('updated', models.DateTimeField(default=django.utils.timezone.now, auto_now=True)),
81 ('enacted', models.DateTimeField(default=None, null=True, blank=True)),
82 ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=140)),
83 ('deleted', models.BooleanField(default=False)),
84 ('origin_server_id', models.IntegerField(null=True, blank=True)),
85 ('url', models.URLField()),
86 ('authenticated', models.BooleanField(default=False, help_text=b'Status for this Site')),
87 ('enabled', models.BooleanField(default=True, help_text=b'Status for this Site')),
88 ('protocol', models.CharField(default=b'HTTP', max_length=12, choices=[(b'http', b'HTTP'), (b'rtmp', b'RTMP'), (b'rtp', b'RTP'), (b'shout', b'SHOUTcast')])),
89 ('redirects', models.BooleanField(default=True, help_text=b'Indicates whether Origin Server redirects should be used for this Origin Server')),
90 ('description', models.TextField(max_length=255, null=True, blank=True)),
91 ('contentProvider', models.ForeignKey(to='hpc.ContentProvider')),
92 ],
93 options={
94 },
95 bases=(models.Model,),
96 ),
97 migrations.CreateModel(
98 name='ServiceProvider',
99 fields=[
100 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
101 ('created', models.DateTimeField(default=django.utils.timezone.now, auto_now_add=True)),
102 ('updated', models.DateTimeField(default=django.utils.timezone.now, auto_now=True)),
103 ('enacted', models.DateTimeField(default=None, null=True, blank=True)),
104 ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=140)),
105 ('deleted', models.BooleanField(default=False)),
106 ('service_provider_id', models.IntegerField(null=True, blank=True)),
107 ('name', models.CharField(help_text=b'Service Provider Name', max_length=254)),
108 ('description', models.TextField(help_text=b'Description of Service Provider', max_length=254, null=True, blank=True)),
109 ('enabled', models.BooleanField(default=True)),
110 ],
111 options={
112 },
113 bases=(models.Model,),
114 ),
115 migrations.CreateModel(
116 name='SiteMap',
117 fields=[
118 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
119 ('name', models.CharField(help_text=b'Name of the Site Map', max_length=64)),
120 ('description', models.TextField(max_length=130, null=True, blank=True)),
121 ('map', models.FileField(help_text=b'specifies how to map requests to hpc instances', upload_to=b'maps/')),
122 ('contentProvider', models.ForeignKey(blank=True, to='hpc.ContentProvider', null=True)),
123 ('serviceProvider', models.ForeignKey(blank=True, to='hpc.ServiceProvider', null=True)),
124 ],
125 options={
126 },
127 bases=(models.Model,),
128 ),
129 migrations.AddField(
130 model_name='contentprovider',
131 name='serviceProvider',
132 field=models.ForeignKey(to='hpc.ServiceProvider'),
133 preserve_default=True,
134 ),
135 migrations.AddField(
136 model_name='contentprovider',
137 name='users',
138 field=models.ManyToManyField(to=settings.AUTH_USER_MODEL),
139 preserve_default=True,
140 ),
141 migrations.AddField(
142 model_name='cdnprefix',
143 name='contentProvider',
144 field=models.ForeignKey(to='hpc.ContentProvider'),
145 preserve_default=True,
146 ),
147 migrations.AddField(
148 model_name='cdnprefix',
149 name='defaultOriginServer',
150 field=models.ForeignKey(blank=True, to='hpc.OriginServer', null=True),
151 preserve_default=True,
152 ),
153 migrations.AddField(
154 model_name='accessmap',
155 name='contentProvider',
156 field=models.ForeignKey(to='hpc.ContentProvider'),
157 preserve_default=True,
158 ),
159 ]