blob: fe34224ae5b0f876fef5af434c55e8c5e67bc7cc [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 timezones.fields
6import core.models.sliver
7import core.models.network
8import geoposition.fields
9import encrypted_fields.fields
10import core.models.serviceclass
11import django.utils.timezone
12from django.conf import settings
13
14
15class Migration(migrations.Migration):
16
17 dependencies = [
18 ('contenttypes', '0001_initial'),
19 ]
20
21 operations = [
22 migrations.CreateModel(
23 name='User',
24 fields=[
25 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
26 ('password', models.CharField(max_length=128, verbose_name='password')),
27 ('last_login', models.DateTimeField(default=django.utils.timezone.now, verbose_name='last login')),
28 ('email', models.EmailField(unique=True, max_length=255, verbose_name=b'email address', db_index=True)),
29 ('username', models.CharField(default=b'Something', max_length=255)),
30 ('firstname', models.CharField(help_text=b"person's given name", max_length=200)),
31 ('lastname', models.CharField(help_text=b"person's surname", max_length=200)),
32 ('phone', models.CharField(help_text=b'phone number contact', max_length=100, null=True, blank=True)),
33 ('user_url', models.URLField(null=True, blank=True)),
34 ('public_key', models.TextField(help_text=b'Public key string', max_length=1024, null=True, blank=True)),
35 ('is_active', models.BooleanField(default=True)),
36 ('is_admin', models.BooleanField(default=True)),
37 ('is_staff', models.BooleanField(default=True)),
38 ('is_readonly', models.BooleanField(default=False)),
39 ('created', models.DateTimeField(auto_now_add=True)),
40 ('updated', models.DateTimeField(auto_now=True)),
41 ('enacted', models.DateTimeField(default=None, null=True)),
Tony Mack94c40eb2015-01-21 12:29:35 -050042 ('policed', models.DateTimeField(default=None, null=True)),
Tony Macka8242c72014-12-25 19:17:54 -050043 ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=140)),
44 ('deleted', models.BooleanField(default=False)),
Tony Mack94c40eb2015-01-21 12:29:35 -050045 ('timezone', timezones.fields.TimeZoneField(default=b'America/New_York', max_length=100, choices=[(b'Pacific/Midway', b'(GMT-1100) Pacific/Midway'), (b'Pacific/Niue', b'(GMT-1100) Pacific/Niue'), (b'Pacific/Pago_Pago', b'(GMT-1100) Pacific/Pago_Pago'), (b'America/Adak', b'(GMT-1000) America/Adak'), (b'Pacific/Honolulu', b'(GMT-1000) Pacific/Honolulu'), (b'Pacific/Johnston', b'(GMT-1000) Pacific/Johnston'), (b'Pacific/Rarotonga', b'(GMT-1000) Pacific/Rarotonga'), (b'Pacific/Tahiti', b'(GMT-1000) Pacific/Tahiti'), (b'US/Hawaii', b'(GMT-1000) US/Hawaii'), (b'Pacific/Marquesas', b'(GMT-0930) Pacific/Marquesas'), (b'America/Anchorage', b'(GMT-0900) America/Anchorage'), (b'America/Juneau', b'(GMT-0900) America/Juneau'), (b'America/Nome', b'(GMT-0900) America/Nome'), (b'America/Sitka', b'(GMT-0900) America/Sitka'), (b'America/Yakutat', b'(GMT-0900) America/Yakutat'), (b'Pacific/Gambier', b'(GMT-0900) Pacific/Gambier'), (b'US/Alaska', b'(GMT-0900) US/Alaska'), (b'America/Dawson', b'(GMT-0800) America/Dawson'), (b'America/Los_Angeles', b'(GMT-0800) America/Los_Angeles'), (b'America/Metlakatla', b'(GMT-0800) America/Metlakatla'), (b'America/Santa_Isabel', b'(GMT-0800) America/Santa_Isabel'), (b'America/Tijuana', b'(GMT-0800) America/Tijuana'), (b'America/Vancouver', b'(GMT-0800) America/Vancouver'), (b'America/Whitehorse', b'(GMT-0800) America/Whitehorse'), (b'Canada/Pacific', b'(GMT-0800) Canada/Pacific'), (b'Pacific/Pitcairn', b'(GMT-0800) Pacific/Pitcairn'), (b'US/Pacific', b'(GMT-0800) US/Pacific'), (b'America/Boise', b'(GMT-0700) America/Boise'), (b'America/Cambridge_Bay', b'(GMT-0700) America/Cambridge_Bay'), (b'America/Chihuahua', b'(GMT-0700) America/Chihuahua'), (b'America/Creston', b'(GMT-0700) America/Creston'), (b'America/Dawson_Creek', b'(GMT-0700) America/Dawson_Creek'), (b'America/Denver', b'(GMT-0700) America/Denver'), (b'America/Edmonton', b'(GMT-0700) America/Edmonton'), (b'America/Hermosillo', b'(GMT-0700) America/Hermosillo'), (b'America/Inuvik', b'(GMT-0700) America/Inuvik'), (b'America/Mazatlan', b'(GMT-0700) America/Mazatlan'), (b'America/Ojinaga', b'(GMT-0700) America/Ojinaga'), (b'America/Phoenix', b'(GMT-0700) America/Phoenix'), (b'America/Shiprock', b'(GMT-0700) America/Shiprock'), (b'America/Yellowknife', b'(GMT-0700) America/Yellowknife'), (b'Canada/Mountain', b'(GMT-0700) Canada/Mountain'), (b'US/Arizona', b'(GMT-0700) US/Arizona'), (b'US/Mountain', b'(GMT-0700) US/Mountain'), (b'America/Bahia_Banderas', b'(GMT-0600) America/Bahia_Banderas'), (b'America/Belize', b'(GMT-0600) America/Belize'), (b'America/Cancun', b'(GMT-0600) America/Cancun'), (b'America/Chicago', b'(GMT-0600) America/Chicago'), (b'America/Costa_Rica', b'(GMT-0600) America/Costa_Rica'), (b'America/El_Salvador', b'(GMT-0600) America/El_Salvador'), (b'America/Guatemala', b'(GMT-0600) America/Guatemala'), (b'America/Indiana/Knox', b'(GMT-0600) America/Indiana/Knox'), (b'America/Indiana/Tell_City', b'(GMT-0600) America/Indiana/Tell_City'), (b'America/Managua', b'(GMT-0600) America/Managua'), (b'America/Matamoros', b'(GMT-0600) America/Matamoros'), (b'America/Menominee', b'(GMT-0600) America/Menominee'), (b'America/Merida', b'(GMT-0600) America/Merida'), (b'America/Mexico_City', b'(GMT-0600) America/Mexico_City'), (b'America/Monterrey', b'(GMT-0600) America/Monterrey'), (b'America/North_Dakota/Beulah', b'(GMT-0600) America/North_Dakota/Beulah'), (b'America/North_Dakota/Center', b'(GMT-0600) America/North_Dakota/Center'), (b'America/North_Dakota/New_Salem', b'(GMT-0600) America/North_Dakota/New_Salem'), (b'America/Rainy_River', b'(GMT-0600) America/Rainy_River'), (b'America/Rankin_Inlet', b'(GMT-0600) America/Rankin_Inlet'), (b'America/Regina', b'(GMT-0600) America/Regina'), (b'America/Resolute', b'(GMT-0600) America/Resolute'), (b'America/Swift_Current', b'(GMT-0600) America/Swift_Current'), (b'America/Tegucigalpa', b'(GMT-0600) America/Tegucigalpa'), (b'America/Winnipeg', b'(GMT-0600) America/Winnipeg'), (b'Canada/Central', b'(GMT-0600) Canada/Central'), (b'Pacific/Galapagos', b'(GMT-0600) Pacific/Galapagos'), (b'US/Central', b'(GMT-0600) US/Central'), (b'America/Atikokan', b'(GMT-0500) America/Atikokan'), (b'America/Bogota', b'(GMT-0500) America/Bogota'), (b'America/Cayman', b'(GMT-0500) America/Cayman'), (b'America/Detroit', b'(GMT-0500) America/Detroit'), (b'America/Eirunepe', b'(GMT-0500) America/Eirunepe'), (b'America/Grand_Turk', b'(GMT-0500) America/Grand_Turk'), (b'America/Guayaquil', b'(GMT-0500) America/Guayaquil'), (b'America/Havana', b'(GMT-0500) America/Havana'), (b'America/Indiana/Indianapolis', b'(GMT-0500) America/Indiana/Indianapolis'), (b'America/Indiana/Marengo', b'(GMT-0500) America/Indiana/Marengo'), (b'America/Indiana/Petersburg', b'(GMT-0500) America/Indiana/Petersburg'), (b'America/Indiana/Vevay', b'(GMT-0500) America/Indiana/Vevay'), (b'America/Indiana/Vincennes', b'(GMT-0500) America/Indiana/Vincennes'), (b'America/Indiana/Winamac', b'(GMT-0500) America/Indiana/Winamac'), (b'America/Iqaluit', b'(GMT-0500) America/Iqaluit'), (b'America/Jamaica', b'(GMT-0500) America/Jamaica'), (b'America/Kentucky/Louisville', b'(GMT-0500) America/Kentucky/Louisville'), (b'America/Kentucky/Monticello', b'(GMT-0500) America/Kentucky/Monticello'), (b'America/Lima', b'(GMT-0500) America/Lima'), (b'America/Montreal', b'(GMT-0500) America/Montreal'), (b'America/Nassau', b'(GMT-0500) America/Nassau'), (b'America/New_York', b'(GMT-0500) America/New_York'), (b'America/Nipigon', b'(GMT-0500) America/Nipigon'), (b'America/Panama', b'(GMT-0500) America/Panama'), (b'America/Pangnirtung', b'(GMT-0500) America/Pangnirtung'), (b'America/Port-au-Prince', b'(GMT-0500) America/Port-au-Prince'), (b'America/Rio_Branco', b'(GMT-0500) America/Rio_Branco'), (b'America/Thunder_Bay', b'(GMT-0500) America/Thunder_Bay'), (b'America/Toronto', b'(GMT-0500) America/Toronto'), (b'Canada/Eastern', b'(GMT-0500) Canada/Eastern'), (b'Pacific/Easter', b'(GMT-0500) Pacific/Easter'), (b'US/Eastern', b'(GMT-0500) US/Eastern'), (b'America/Caracas', b'(GMT-0430) America/Caracas'), (b'America/Anguilla', b'(GMT-0400) America/Anguilla'), (b'America/Antigua', b'(GMT-0400) America/Antigua'), (b'America/Aruba', b'(GMT-0400) America/Aruba'), (b'America/Barbados', b'(GMT-0400) America/Barbados'), (b'America/Blanc-Sablon', b'(GMT-0400) America/Blanc-Sablon'), (b'America/Boa_Vista', b'(GMT-0400) America/Boa_Vista'), (b'America/Curacao', b'(GMT-0400) America/Curacao'), (b'America/Dominica', b'(GMT-0400) America/Dominica'), (b'America/Glace_Bay', b'(GMT-0400) America/Glace_Bay'), (b'America/Goose_Bay', b'(GMT-0400) America/Goose_Bay'), (b'America/Grenada', b'(GMT-0400) America/Grenada'), (b'America/Guadeloupe', b'(GMT-0400) America/Guadeloupe'), (b'America/Guyana', b'(GMT-0400) America/Guyana'), (b'America/Halifax', b'(GMT-0400) America/Halifax'), (b'America/Kralendijk', b'(GMT-0400) America/Kralendijk'), (b'America/La_Paz', b'(GMT-0400) America/La_Paz'), (b'America/Lower_Princes', b'(GMT-0400) America/Lower_Princes'), (b'America/Manaus', b'(GMT-0400) America/Manaus'), (b'America/Marigot', b'(GMT-0400) America/Marigot'), (b'America/Martinique', b'(GMT-0400) America/Martinique'), (b'America/Moncton', b'(GMT-0400) America/Moncton'), (b'America/Montserrat', b'(GMT-0400) America/Montserrat'), (b'America/Port_of_Spain', b'(GMT-0400) America/Port_of_Spain'), (b'America/Porto_Velho', b'(GMT-0400) America/Porto_Velho'), (b'America/Puerto_Rico', b'(GMT-0400) America/Puerto_Rico'), (b'America/Santo_Domingo', b'(GMT-0400) America/Santo_Domingo'), (b'America/St_Barthelemy', b'(GMT-0400) America/St_Barthelemy'), (b'America/St_Kitts', b'(GMT-0400) America/St_Kitts'), (b'America/St_Lucia', b'(GMT-0400) America/St_Lucia'), (b'America/St_Thomas', b'(GMT-0400) America/St_Thomas'), (b'America/St_Vincent', b'(GMT-0400) America/St_Vincent'), (b'America/Thule', b'(GMT-0400) America/Thule'), (b'America/Tortola', b'(GMT-0400) America/Tortola'), (b'Atlantic/Bermuda', b'(GMT-0400) Atlantic/Bermuda'), (b'Canada/Atlantic', b'(GMT-0400) Canada/Atlantic'), (b'America/St_Johns', b'(GMT-0330) America/St_Johns'), (b'Canada/Newfoundland', b'(GMT-0330) Canada/Newfoundland'), (b'America/Araguaina', b'(GMT-0300) America/Araguaina'), (b'America/Argentina/Buenos_Aires', b'(GMT-0300) America/Argentina/Buenos_Aires'), (b'America/Argentina/Catamarca', b'(GMT-0300) America/Argentina/Catamarca'), (b'America/Argentina/Cordoba', b'(GMT-0300) America/Argentina/Cordoba'), (b'America/Argentina/Jujuy', b'(GMT-0300) America/Argentina/Jujuy'), (b'America/Argentina/La_Rioja', b'(GMT-0300) America/Argentina/La_Rioja'), (b'America/Argentina/Mendoza', b'(GMT-0300) America/Argentina/Mendoza'), (b'America/Argentina/Rio_Gallegos', b'(GMT-0300) America/Argentina/Rio_Gallegos'), (b'America/Argentina/Salta', b'(GMT-0300) America/Argentina/Salta'), (b'America/Argentina/San_Juan', b'(GMT-0300) America/Argentina/San_Juan'), (b'America/Argentina/San_Luis', b'(GMT-0300) America/Argentina/San_Luis'), (b'America/Argentina/Tucuman', b'(GMT-0300) America/Argentina/Tucuman'), (b'America/Argentina/Ushuaia', b'(GMT-0300) America/Argentina/Ushuaia'), (b'America/Asuncion', b'(GMT-0300) America/Asuncion'), (b'America/Bahia', b'(GMT-0300) America/Bahia'), (b'America/Belem', b'(GMT-0300) America/Belem'), (b'America/Campo_Grande', b'(GMT-0300) America/Campo_Grande'), (b'America/Cayenne', b'(GMT-0300) America/Cayenne'), (b'America/Cuiaba', b'(GMT-0300) America/Cuiaba'), (b'America/Fortaleza', b'(GMT-0300) America/Fortaleza'), (b'America/Godthab', b'(GMT-0300) America/Godthab'), (b'America/Maceio', b'(GMT-0300) America/Maceio'), (b'America/Miquelon', b'(GMT-0300) America/Miquelon'), (b'America/Paramaribo', b'(GMT-0300) America/Paramaribo'), (b'America/Recife', b'(GMT-0300) America/Recife'), (b'America/Santarem', b'(GMT-0300) America/Santarem'), (b'America/Santiago', b'(GMT-0300) America/Santiago'), (b'Antarctica/Palmer', b'(GMT-0300) Antarctica/Palmer'), (b'Antarctica/Rothera', b'(GMT-0300) Antarctica/Rothera'), (b'Atlantic/Stanley', b'(GMT-0300) Atlantic/Stanley'), (b'America/Montevideo', b'(GMT-0200) America/Montevideo'), (b'America/Noronha', b'(GMT-0200) America/Noronha'), (b'America/Sao_Paulo', b'(GMT-0200) America/Sao_Paulo'), (b'Atlantic/South_Georgia', b'(GMT-0200) Atlantic/South_Georgia'), (b'America/Scoresbysund', b'(GMT-0100) America/Scoresbysund'), (b'Atlantic/Azores', b'(GMT-0100) Atlantic/Azores'), (b'Atlantic/Cape_Verde', b'(GMT-0100) Atlantic/Cape_Verde'), (b'Africa/Abidjan', b'(GMT+0000) Africa/Abidjan'), (b'Africa/Accra', b'(GMT+0000) Africa/Accra'), (b'Africa/Bamako', b'(GMT+0000) Africa/Bamako'), (b'Africa/Banjul', b'(GMT+0000) Africa/Banjul'), (b'Africa/Bissau', b'(GMT+0000) Africa/Bissau'), (b'Africa/Casablanca', b'(GMT+0000) Africa/Casablanca'), (b'Africa/Conakry', b'(GMT+0000) Africa/Conakry'), (b'Africa/Dakar', b'(GMT+0000) Africa/Dakar'), (b'Africa/El_Aaiun', b'(GMT+0000) Africa/El_Aaiun'), (b'Africa/Freetown', b'(GMT+0000) Africa/Freetown'), (b'Africa/Lome', b'(GMT+0000) Africa/Lome'), (b'Africa/Monrovia', b'(GMT+0000) Africa/Monrovia'), (b'Africa/Nouakchott', b'(GMT+0000) Africa/Nouakchott'), (b'Africa/Ouagadougou', b'(GMT+0000) Africa/Ouagadougou'), (b'Africa/Sao_Tome', b'(GMT+0000) Africa/Sao_Tome'), (b'America/Danmarkshavn', b'(GMT+0000) America/Danmarkshavn'), (b'Atlantic/Canary', b'(GMT+0000) Atlantic/Canary'), (b'Atlantic/Faroe', b'(GMT+0000) Atlantic/Faroe'), (b'Atlantic/Madeira', b'(GMT+0000) Atlantic/Madeira'), (b'Atlantic/Reykjavik', b'(GMT+0000) Atlantic/Reykjavik'), (b'Atlantic/St_Helena', b'(GMT+0000) Atlantic/St_Helena'), (b'Europe/Dublin', b'(GMT+0000) Europe/Dublin'), (b'Europe/Guernsey', b'(GMT+0000) Europe/Guernsey'), (b'Europe/Isle_of_Man', b'(GMT+0000) Europe/Isle_of_Man'), (b'Europe/Jersey', b'(GMT+0000) Europe/Jersey'), (b'Europe/Lisbon', b'(GMT+0000) Europe/Lisbon'), (b'Europe/London', b'(GMT+0000) Europe/London'), (b'GMT', b'(GMT+0000) GMT'), (b'UTC', b'(GMT+0000) UTC'), (b'Africa/Algiers', b'(GMT+0100) Africa/Algiers'), (b'Africa/Bangui', b'(GMT+0100) Africa/Bangui'), (b'Africa/Brazzaville', b'(GMT+0100) Africa/Brazzaville'), (b'Africa/Ceuta', b'(GMT+0100) Africa/Ceuta'), (b'Africa/Douala', b'(GMT+0100) Africa/Douala'), (b'Africa/Kinshasa', b'(GMT+0100) Africa/Kinshasa'), (b'Africa/Lagos', b'(GMT+0100) Africa/Lagos'), (b'Africa/Libreville', b'(GMT+0100) Africa/Libreville'), (b'Africa/Luanda', b'(GMT+0100) Africa/Luanda'), (b'Africa/Malabo', b'(GMT+0100) Africa/Malabo'), (b'Africa/Ndjamena', b'(GMT+0100) Africa/Ndjamena'), (b'Africa/Niamey', b'(GMT+0100) Africa/Niamey'), (b'Africa/Porto-Novo', b'(GMT+0100) Africa/Porto-Novo'), (b'Africa/Tunis', b'(GMT+0100) Africa/Tunis'), (b'Arctic/Longyearbyen', b'(GMT+0100) Arctic/Longyearbyen'), (b'Europe/Amsterdam', b'(GMT+0100) Europe/Amsterdam'), (b'Europe/Andorra', b'(GMT+0100) Europe/Andorra'), (b'Europe/Belgrade', b'(GMT+0100) Europe/Belgrade'), (b'Europe/Berlin', b'(GMT+0100) Europe/Berlin'), (b'Europe/Bratislava', b'(GMT+0100) Europe/Bratislava'), (b'Europe/Brussels', b'(GMT+0100) Europe/Brussels'), (b'Europe/Budapest', b'(GMT+0100) Europe/Budapest'), (b'Europe/Copenhagen', b'(GMT+0100) Europe/Copenhagen'), (b'Europe/Gibraltar', b'(GMT+0100) Europe/Gibraltar'), (b'Europe/Ljubljana', b'(GMT+0100) Europe/Ljubljana'), (b'Europe/Luxembourg', b'(GMT+0100) Europe/Luxembourg'), (b'Europe/Madrid', b'(GMT+0100) Europe/Madrid'), (b'Europe/Malta', b'(GMT+0100) Europe/Malta'), (b'Europe/Monaco', b'(GMT+0100) Europe/Monaco'), (b'Europe/Oslo', b'(GMT+0100) Europe/Oslo'), (b'Europe/Paris', b'(GMT+0100) Europe/Paris'), (b'Europe/Podgorica', b'(GMT+0100) Europe/Podgorica'), (b'Europe/Prague', b'(GMT+0100) Europe/Prague'), (b'Europe/Rome', b'(GMT+0100) Europe/Rome'), (b'Europe/San_Marino', b'(GMT+0100) Europe/San_Marino'), (b'Europe/Sarajevo', b'(GMT+0100) Europe/Sarajevo'), (b'Europe/Skopje', b'(GMT+0100) Europe/Skopje'), (b'Europe/Stockholm', b'(GMT+0100) Europe/Stockholm'), (b'Europe/Tirane', b'(GMT+0100) Europe/Tirane'), (b'Europe/Vaduz', b'(GMT+0100) Europe/Vaduz'), (b'Europe/Vatican', b'(GMT+0100) Europe/Vatican'), (b'Europe/Vienna', b'(GMT+0100) Europe/Vienna'), (b'Europe/Warsaw', b'(GMT+0100) Europe/Warsaw'), (b'Europe/Zagreb', b'(GMT+0100) Europe/Zagreb'), (b'Europe/Zurich', b'(GMT+0100) Europe/Zurich'), (b'Africa/Blantyre', b'(GMT+0200) Africa/Blantyre'), (b'Africa/Bujumbura', b'(GMT+0200) Africa/Bujumbura'), (b'Africa/Cairo', b'(GMT+0200) Africa/Cairo'), (b'Africa/Gaborone', b'(GMT+0200) Africa/Gaborone'), (b'Africa/Harare', b'(GMT+0200) Africa/Harare'), (b'Africa/Johannesburg', b'(GMT+0200) Africa/Johannesburg'), (b'Africa/Kigali', b'(GMT+0200) Africa/Kigali'), (b'Africa/Lubumbashi', b'(GMT+0200) Africa/Lubumbashi'), (b'Africa/Lusaka', b'(GMT+0200) Africa/Lusaka'), (b'Africa/Maputo', b'(GMT+0200) Africa/Maputo'), (b'Africa/Maseru', b'(GMT+0200) Africa/Maseru'), (b'Africa/Mbabane', b'(GMT+0200) Africa/Mbabane'), (b'Africa/Tripoli', b'(GMT+0200) Africa/Tripoli'), (b'Africa/Windhoek', b'(GMT+0200) Africa/Windhoek'), (b'Asia/Amman', b'(GMT+0200) Asia/Amman'), (b'Asia/Beirut', b'(GMT+0200) Asia/Beirut'), (b'Asia/Damascus', b'(GMT+0200) Asia/Damascus'), (b'Asia/Gaza', b'(GMT+0200) Asia/Gaza'), (b'Asia/Hebron', b'(GMT+0200) Asia/Hebron'), (b'Asia/Jerusalem', b'(GMT+0200) Asia/Jerusalem'), (b'Asia/Nicosia', b'(GMT+0200) Asia/Nicosia'), (b'Europe/Athens', b'(GMT+0200) Europe/Athens'), (b'Europe/Bucharest', b'(GMT+0200) Europe/Bucharest'), (b'Europe/Chisinau', b'(GMT+0200) Europe/Chisinau'), (b'Europe/Helsinki', b'(GMT+0200) Europe/Helsinki'), (b'Europe/Istanbul', b'(GMT+0200) Europe/Istanbul'), (b'Europe/Kiev', b'(GMT+0200) Europe/Kiev'), (b'Europe/Mariehamn', b'(GMT+0200) Europe/Mariehamn'), (b'Europe/Riga', b'(GMT+0200) Europe/Riga'), (b'Europe/Sofia', b'(GMT+0200) Europe/Sofia'), (b'Europe/Tallinn', b'(GMT+0200) Europe/Tallinn'), (b'Europe/Uzhgorod', b'(GMT+0200) Europe/Uzhgorod'), (b'Europe/Vilnius', b'(GMT+0200) Europe/Vilnius'), (b'Europe/Zaporozhye', b'(GMT+0200) Europe/Zaporozhye'), (b'Africa/Addis_Ababa', b'(GMT+0300) Africa/Addis_Ababa'), (b'Africa/Asmara', b'(GMT+0300) Africa/Asmara'), (b'Africa/Dar_es_Salaam', b'(GMT+0300) Africa/Dar_es_Salaam'), (b'Africa/Djibouti', b'(GMT+0300) Africa/Djibouti'), (b'Africa/Juba', b'(GMT+0300) Africa/Juba'), (b'Africa/Kampala', b'(GMT+0300) Africa/Kampala'), (b'Africa/Khartoum', b'(GMT+0300) Africa/Khartoum'), (b'Africa/Mogadishu', b'(GMT+0300) Africa/Mogadishu'), (b'Africa/Nairobi', b'(GMT+0300) Africa/Nairobi'), (b'Antarctica/Syowa', b'(GMT+0300) Antarctica/Syowa'), (b'Asia/Aden', b'(GMT+0300) Asia/Aden'), (b'Asia/Baghdad', b'(GMT+0300) Asia/Baghdad'), (b'Asia/Bahrain', b'(GMT+0300) Asia/Bahrain'), (b'Asia/Kuwait', b'(GMT+0300) Asia/Kuwait'), (b'Asia/Qatar', b'(GMT+0300) Asia/Qatar'), (b'Asia/Riyadh', b'(GMT+0300) Asia/Riyadh'), (b'Europe/Kaliningrad', b'(GMT+0300) Europe/Kaliningrad'), (b'Europe/Minsk', b'(GMT+0300) Europe/Minsk'), (b'Indian/Antananarivo', b'(GMT+0300) Indian/Antananarivo'), (b'Indian/Comoro', b'(GMT+0300) Indian/Comoro'), (b'Indian/Mayotte', b'(GMT+0300) Indian/Mayotte'), (b'Asia/Tehran', b'(GMT+0330) Asia/Tehran'), (b'Asia/Baku', b'(GMT+0400) Asia/Baku'), (b'Asia/Dubai', b'(GMT+0400) Asia/Dubai'), (b'Asia/Muscat', b'(GMT+0400) Asia/Muscat'), (b'Asia/Tbilisi', b'(GMT+0400) Asia/Tbilisi'), (b'Asia/Yerevan', b'(GMT+0400) Asia/Yerevan'), (b'Europe/Moscow', b'(GMT+0400) Europe/Moscow'), (b'Europe/Samara', b'(GMT+0400) Europe/Samara'), (b'Europe/Simferopol', b'(GMT+0400) Europe/Simferopol'), (b'Europe/Volgograd', b'(GMT+0400) Europe/Volgograd'), (b'Indian/Mahe', b'(GMT+0400) Indian/Mahe'), (b'Indian/Mauritius', b'(GMT+0400) Indian/Mauritius'), (b'Indian/Reunion', b'(GMT+0400) Indian/Reunion'), (b'Asia/Kabul', b'(GMT+0430) Asia/Kabul'), (b'Antarctica/Mawson', b'(GMT+0500) Antarctica/Mawson'), (b'Asia/Aqtau', b'(GMT+0500) Asia/Aqtau'), (b'Asia/Aqtobe', b'(GMT+0500) Asia/Aqtobe'), (b'Asia/Ashgabat', b'(GMT+0500) Asia/Ashgabat'), (b'Asia/Dushanbe', b'(GMT+0500) Asia/Dushanbe'), (b'Asia/Karachi', b'(GMT+0500) Asia/Karachi'), (b'Asia/Oral', b'(GMT+0500) Asia/Oral'), (b'Asia/Samarkand', b'(GMT+0500) Asia/Samarkand'), (b'Asia/Tashkent', b'(GMT+0500) Asia/Tashkent'), (b'Indian/Kerguelen', b'(GMT+0500) Indian/Kerguelen'), (b'Indian/Maldives', b'(GMT+0500) Indian/Maldives'), (b'Asia/Colombo', b'(GMT+0530) Asia/Colombo'), (b'Asia/Kolkata', b'(GMT+0530) Asia/Kolkata'), (b'Asia/Kathmandu', b'(GMT+0545) Asia/Kathmandu'), (b'Antarctica/Vostok', b'(GMT+0600) Antarctica/Vostok'), (b'Asia/Almaty', b'(GMT+0600) Asia/Almaty'), (b'Asia/Bishkek', b'(GMT+0600) Asia/Bishkek'), (b'Asia/Dhaka', b'(GMT+0600) Asia/Dhaka'), (b'Asia/Qyzylorda', b'(GMT+0600) Asia/Qyzylorda'), (b'Asia/Thimphu', b'(GMT+0600) Asia/Thimphu'), (b'Asia/Yekaterinburg', b'(GMT+0600) Asia/Yekaterinburg'), (b'Indian/Chagos', b'(GMT+0600) Indian/Chagos'), (b'Asia/Rangoon', b'(GMT+0630) Asia/Rangoon'), (b'Indian/Cocos', b'(GMT+0630) Indian/Cocos'), (b'Antarctica/Davis', b'(GMT+0700) Antarctica/Davis'), (b'Asia/Bangkok', b'(GMT+0700) Asia/Bangkok'), (b'Asia/Ho_Chi_Minh', b'(GMT+0700) Asia/Ho_Chi_Minh'), (b'Asia/Hovd', b'(GMT+0700) Asia/Hovd'), (b'Asia/Jakarta', b'(GMT+0700) Asia/Jakarta'), (b'Asia/Novokuznetsk', b'(GMT+0700) Asia/Novokuznetsk'), (b'Asia/Novosibirsk', b'(GMT+0700) Asia/Novosibirsk'), (b'Asia/Omsk', b'(GMT+0700) Asia/Omsk'), (b'Asia/Phnom_Penh', b'(GMT+0700) Asia/Phnom_Penh'), (b'Asia/Pontianak', b'(GMT+0700) Asia/Pontianak'), (b'Asia/Vientiane', b'(GMT+0700) Asia/Vientiane'), (b'Indian/Christmas', b'(GMT+0700) Indian/Christmas'), (b'Antarctica/Casey', b'(GMT+0800) Antarctica/Casey'), (b'Asia/Brunei', b'(GMT+0800) Asia/Brunei'), (b'Asia/Choibalsan', b'(GMT+0800) Asia/Choibalsan'), (b'Asia/Chongqing', b'(GMT+0800) Asia/Chongqing'), (b'Asia/Harbin', b'(GMT+0800) Asia/Harbin'), (b'Asia/Hong_Kong', b'(GMT+0800) Asia/Hong_Kong'), (b'Asia/Kashgar', b'(GMT+0800) Asia/Kashgar'), (b'Asia/Krasnoyarsk', b'(GMT+0800) Asia/Krasnoyarsk'), (b'Asia/Kuala_Lumpur', b'(GMT+0800) Asia/Kuala_Lumpur'), (b'Asia/Kuching', b'(GMT+0800) Asia/Kuching'), (b'Asia/Macau', b'(GMT+0800) Asia/Macau'), (b'Asia/Makassar', b'(GMT+0800) Asia/Makassar'), (b'Asia/Manila', b'(GMT+0800) Asia/Manila'), (b'Asia/Shanghai', b'(GMT+0800) Asia/Shanghai'), (b'Asia/Singapore', b'(GMT+0800) Asia/Singapore'), (b'Asia/Taipei', b'(GMT+0800) Asia/Taipei'), (b'Asia/Ulaanbaatar', b'(GMT+0800) Asia/Ulaanbaatar'), (b'Asia/Urumqi', b'(GMT+0800) Asia/Urumqi'), (b'Australia/Perth', b'(GMT+0800) Australia/Perth'), (b'Australia/Eucla', b'(GMT+0845) Australia/Eucla'), (b'Asia/Dili', b'(GMT+0900) Asia/Dili'), (b'Asia/Irkutsk', b'(GMT+0900) Asia/Irkutsk'), (b'Asia/Jayapura', b'(GMT+0900) Asia/Jayapura'), (b'Asia/Pyongyang', b'(GMT+0900) Asia/Pyongyang'), (b'Asia/Seoul', b'(GMT+0900) Asia/Seoul'), (b'Asia/Tokyo', b'(GMT+0900) Asia/Tokyo'), (b'Pacific/Palau', b'(GMT+0900) Pacific/Palau'), (b'Australia/Darwin', b'(GMT+0930) Australia/Darwin'), (b'Antarctica/DumontDUrville', b'(GMT+1000) Antarctica/DumontDUrville'), (b'Asia/Yakutsk', b'(GMT+1000) Asia/Yakutsk'), (b'Australia/Brisbane', b'(GMT+1000) Australia/Brisbane'), (b'Australia/Lindeman', b'(GMT+1000) Australia/Lindeman'), (b'Pacific/Chuuk', b'(GMT+1000) Pacific/Chuuk'), (b'Pacific/Guam', b'(GMT+1000) Pacific/Guam'), (b'Pacific/Port_Moresby', b'(GMT+1000) Pacific/Port_Moresby'), (b'Pacific/Saipan', b'(GMT+1000) Pacific/Saipan'), (b'Australia/Adelaide', b'(GMT+1030) Australia/Adelaide'), (b'Australia/Broken_Hill', b'(GMT+1030) Australia/Broken_Hill'), (b'Antarctica/Macquarie', b'(GMT+1100) Antarctica/Macquarie'), (b'Asia/Sakhalin', b'(GMT+1100) Asia/Sakhalin'), (b'Asia/Vladivostok', b'(GMT+1100) Asia/Vladivostok'), (b'Australia/Currie', b'(GMT+1100) Australia/Currie'), (b'Australia/Hobart', b'(GMT+1100) Australia/Hobart'), (b'Australia/Lord_Howe', b'(GMT+1100) Australia/Lord_Howe'), (b'Australia/Melbourne', b'(GMT+1100) Australia/Melbourne'), (b'Australia/Sydney', b'(GMT+1100) Australia/Sydney'), (b'Pacific/Efate', b'(GMT+1100) Pacific/Efate'), (b'Pacific/Guadalcanal', b'(GMT+1100) Pacific/Guadalcanal'), (b'Pacific/Kosrae', b'(GMT+1100) Pacific/Kosrae'), (b'Pacific/Noumea', b'(GMT+1100) Pacific/Noumea'), (b'Pacific/Pohnpei', b'(GMT+1100) Pacific/Pohnpei'), (b'Pacific/Norfolk', b'(GMT+1130) Pacific/Norfolk'), (b'Asia/Anadyr', b'(GMT+1200) Asia/Anadyr'), (b'Asia/Kamchatka', b'(GMT+1200) Asia/Kamchatka'), (b'Asia/Magadan', b'(GMT+1200) Asia/Magadan'), (b'Pacific/Fiji', b'(GMT+1200) Pacific/Fiji'), (b'Pacific/Funafuti', b'(GMT+1200) Pacific/Funafuti'), (b'Pacific/Kwajalein', b'(GMT+1200) Pacific/Kwajalein'), (b'Pacific/Majuro', b'(GMT+1200) Pacific/Majuro'), (b'Pacific/Nauru', b'(GMT+1200) Pacific/Nauru'), (b'Pacific/Tarawa', b'(GMT+1200) Pacific/Tarawa'), (b'Pacific/Wake', b'(GMT+1200) Pacific/Wake'), (b'Pacific/Wallis', b'(GMT+1200) Pacific/Wallis'), (b'Antarctica/McMurdo', b'(GMT+1300) Antarctica/McMurdo'), (b'Antarctica/South_Pole', b'(GMT+1300) Antarctica/South_Pole'), (b'Pacific/Auckland', b'(GMT+1300) Pacific/Auckland'), (b'Pacific/Enderbury', b'(GMT+1300) Pacific/Enderbury'), (b'Pacific/Fakaofo', b'(GMT+1300) Pacific/Fakaofo'), (b'Pacific/Tongatapu', b'(GMT+1300) Pacific/Tongatapu'), (b'Pacific/Chatham', b'(GMT+1345) Pacific/Chatham'), (b'Pacific/Apia', b'(GMT+1400) Pacific/Apia'), (b'Pacific/Kiritimati', b'(GMT+1400) Pacific/Kiritimati')])),
Tony Macka8242c72014-12-25 19:17:54 -050046 ],
47 options={
48 },
49 bases=(models.Model,),
50 ),
51 migrations.CreateModel(
52 name='Account',
53 fields=[
54 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
55 ('created', models.DateTimeField(default=django.utils.timezone.now, auto_now_add=True)),
56 ('updated', models.DateTimeField(default=django.utils.timezone.now, auto_now=True)),
57 ('enacted', models.DateTimeField(default=None, null=True, blank=True)),
Tony Mack94c40eb2015-01-21 12:29:35 -050058 ('policed', models.DateTimeField(default=None, null=True, blank=True)),
Tony Macka8242c72014-12-25 19:17:54 -050059 ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=140)),
60 ('deleted', models.BooleanField(default=False)),
61 ],
62 options={
63 'abstract': False,
64 },
65 bases=(models.Model,),
66 ),
67 migrations.CreateModel(
68 name='Charge',
69 fields=[
70 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
71 ('created', models.DateTimeField(default=django.utils.timezone.now, auto_now_add=True)),
72 ('updated', models.DateTimeField(default=django.utils.timezone.now, auto_now=True)),
73 ('enacted', models.DateTimeField(default=None, null=True, blank=True)),
Tony Mack94c40eb2015-01-21 12:29:35 -050074 ('policed', models.DateTimeField(default=None, null=True, blank=True)),
Tony Macka8242c72014-12-25 19:17:54 -050075 ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=140)),
76 ('deleted', models.BooleanField(default=False)),
77 ('kind', models.CharField(default=b'besteffort', max_length=30, choices=[(b'besteffort', b'besteffort'), (b'reservation', b'reservation'), (b'monthlyfee', b'monthlyfee')])),
78 ('state', models.CharField(default=b'pending', max_length=30, choices=[(b'pending', b'pending'), (b'invoiced', b'invoiced')])),
79 ('date', models.DateTimeField()),
80 ('amount', models.FloatField(default=0.0)),
81 ('coreHours', models.FloatField(default=0.0)),
82 ('account', models.ForeignKey(related_name=b'charges', to='core.Account')),
83 ],
84 options={
85 'abstract': False,
86 },
87 bases=(models.Model,),
88 ),
89 migrations.CreateModel(
90 name='Controller',
91 fields=[
92 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
93 ('created', models.DateTimeField(default=django.utils.timezone.now, auto_now_add=True)),
94 ('updated', models.DateTimeField(default=django.utils.timezone.now, auto_now=True)),
95 ('enacted', models.DateTimeField(default=None, null=True, blank=True)),
Tony Mack94c40eb2015-01-21 12:29:35 -050096 ('policed', models.DateTimeField(default=None, null=True, blank=True)),
Tony Macka8242c72014-12-25 19:17:54 -050097 ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=140)),
98 ('deleted', models.BooleanField(default=False)),
99 ('name', models.CharField(help_text=b'Name of the Controller', unique=True, max_length=200)),
Tony Mack94c40eb2015-01-21 12:29:35 -0500100 ('backend_type', models.CharField(help_text=b'Type of compute controller, e.g. EC2, OpenStack, or OpenStack version', max_length=200)),
101 ('version', models.CharField(help_text=b'Controller version', max_length=200)),
Tony Macka8242c72014-12-25 19:17:54 -0500102 ('auth_url', models.CharField(help_text=b'Auth url for the compute controller', max_length=200, null=True, blank=True)),
103 ('admin_user', models.CharField(help_text=b'Username of an admin user at this controller', max_length=200, null=True, blank=True)),
104 ('admin_password', models.CharField(help_text=b'Password of theadmin user at this controller', max_length=200, null=True, blank=True)),
105 ('admin_tenant', models.CharField(help_text=b'Name of the tenant the admin user belongs to', max_length=200, null=True, blank=True)),
106 ],
107 options={
108 'abstract': False,
109 },
110 bases=(models.Model,),
111 ),
112 migrations.CreateModel(
113 name='ControllerCredential',
114 fields=[
115 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
116 ('created', models.DateTimeField(default=django.utils.timezone.now, auto_now_add=True)),
117 ('updated', models.DateTimeField(default=django.utils.timezone.now, auto_now=True)),
118 ('enacted', models.DateTimeField(default=None, null=True, blank=True)),
Tony Mack94c40eb2015-01-21 12:29:35 -0500119 ('policed', models.DateTimeField(default=None, null=True, blank=True)),
Tony Macka8242c72014-12-25 19:17:54 -0500120 ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=140)),
121 ('deleted', models.BooleanField(default=False)),
122 ('name', models.SlugField(help_text=b'The credential type, e.g. ec2', max_length=128)),
123 ('key_id', models.CharField(help_text=b'The backend id of this credential', max_length=1024)),
124 ('enc_value', encrypted_fields.fields.EncryptedCharField(help_text=b'The key value of this credential', max_length=1024)),
125 ('controller', models.ForeignKey(related_name=b'controllercredentials', to='core.Controller', help_text=b'The User this credential is associated with')),
126 ],
127 options={
128 'abstract': False,
129 },
130 bases=(models.Model,),
131 ),
132 migrations.CreateModel(
133 name='ControllerDashboardView',
134 fields=[
135 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
136 ('created', models.DateTimeField(default=django.utils.timezone.now, auto_now_add=True)),
137 ('updated', models.DateTimeField(default=django.utils.timezone.now, auto_now=True)),
138 ('enacted', models.DateTimeField(default=None, null=True, blank=True)),
Tony Mack94c40eb2015-01-21 12:29:35 -0500139 ('policed', models.DateTimeField(default=None, null=True, blank=True)),
Tony Macka8242c72014-12-25 19:17:54 -0500140 ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=140)),
141 ('deleted', models.BooleanField(default=False)),
Tony Mack94c40eb2015-01-21 12:29:35 -0500142 ('enabled', models.BooleanField(default=True)),
Tony Macka8242c72014-12-25 19:17:54 -0500143 ('url', models.CharField(help_text=b'URL of Dashboard', max_length=1024)),
144 ('controller', models.ForeignKey(related_name=b'controllerdashboardviews', to='core.Controller')),
145 ],
146 options={
147 'abstract': False,
148 },
149 bases=(models.Model,),
150 ),
151 migrations.CreateModel(
152 name='ControllerImages',
153 fields=[
154 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
155 ('created', models.DateTimeField(default=django.utils.timezone.now, auto_now_add=True)),
156 ('updated', models.DateTimeField(default=django.utils.timezone.now, auto_now=True)),
157 ('enacted', models.DateTimeField(default=None, null=True, blank=True)),
Tony Mack94c40eb2015-01-21 12:29:35 -0500158 ('policed', models.DateTimeField(default=None, null=True, blank=True)),
Tony Macka8242c72014-12-25 19:17:54 -0500159 ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=140)),
160 ('deleted', models.BooleanField(default=False)),
161 ('glance_image_id', models.CharField(help_text=b'Glance image id', max_length=200, null=True, blank=True)),
162 ('controller', models.ForeignKey(related_name=b'controllerimages', to='core.Controller')),
163 ],
164 options={
165 'abstract': False,
166 },
167 bases=(models.Model,),
168 ),
169 migrations.CreateModel(
Tony Mack3066a952015-01-05 22:48:11 -0500170 name='ControllerNetwork',
Tony Macka8242c72014-12-25 19:17:54 -0500171 fields=[
172 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
173 ('created', models.DateTimeField(default=django.utils.timezone.now, auto_now_add=True)),
174 ('updated', models.DateTimeField(default=django.utils.timezone.now, auto_now=True)),
175 ('enacted', models.DateTimeField(default=None, null=True, blank=True)),
Tony Mack94c40eb2015-01-21 12:29:35 -0500176 ('policed', models.DateTimeField(default=None, null=True, blank=True)),
Tony Macka8242c72014-12-25 19:17:54 -0500177 ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=140)),
178 ('deleted', models.BooleanField(default=False)),
179 ('net_id', models.CharField(help_text=b'Quantum network', max_length=256, null=True, blank=True)),
180 ('router_id', models.CharField(help_text=b'Quantum router id', max_length=256, null=True, blank=True)),
181 ('subnet_id', models.CharField(help_text=b'Quantum subnet id', max_length=256, null=True, blank=True)),
182 ('subnet', models.CharField(max_length=32, blank=True)),
183 ('controller', models.ForeignKey(related_name=b'controllernetworks', to='core.Controller')),
184 ],
185 options={
186 'abstract': False,
187 },
188 bases=(models.Model,),
189 ),
190 migrations.CreateModel(
Tony Macka8242c72014-12-25 19:17:54 -0500191 name='ControllerRole',
192 fields=[
193 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
194 ('created', models.DateTimeField(default=django.utils.timezone.now, auto_now_add=True)),
195 ('updated', models.DateTimeField(default=django.utils.timezone.now, auto_now=True)),
196 ('enacted', models.DateTimeField(default=None, null=True, blank=True)),
Tony Mack94c40eb2015-01-21 12:29:35 -0500197 ('policed', models.DateTimeField(default=None, null=True, blank=True)),
Tony Macka8242c72014-12-25 19:17:54 -0500198 ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=140)),
199 ('deleted', models.BooleanField(default=False)),
200 ('role', models.CharField(unique=True, max_length=30, choices=[(b'admin', b'Admin')])),
201 ],
202 options={
203 'abstract': False,
204 },
205 bases=(models.Model,),
206 ),
207 migrations.CreateModel(
Tony Mack3066a952015-01-05 22:48:11 -0500208 name='ControllerSite',
209 fields=[
210 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
211 ('created', models.DateTimeField(default=django.utils.timezone.now, auto_now_add=True)),
212 ('updated', models.DateTimeField(default=django.utils.timezone.now, auto_now=True)),
213 ('enacted', models.DateTimeField(default=None, null=True, blank=True)),
Tony Mack94c40eb2015-01-21 12:29:35 -0500214 ('policed', models.DateTimeField(default=None, null=True, blank=True)),
Tony Mack3066a952015-01-05 22:48:11 -0500215 ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=140)),
216 ('deleted', models.BooleanField(default=False)),
217 ('tenant_id', models.CharField(help_text=b'Keystone tenant id', max_length=200, null=True, db_index=True, blank=True)),
218 ('controller', models.ForeignKey(related_name=b'controllersite', blank=True, to='core.Controller', null=True)),
219 ],
220 options={
221 'abstract': False,
222 },
223 bases=(models.Model,),
224 ),
225 migrations.CreateModel(
Tony Mack94c40eb2015-01-21 12:29:35 -0500226 name='ControllerSitePrivilege',
227 fields=[
228 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
229 ('created', models.DateTimeField(default=django.utils.timezone.now, auto_now_add=True)),
230 ('updated', models.DateTimeField(default=django.utils.timezone.now, auto_now=True)),
231 ('enacted', models.DateTimeField(default=None, null=True, blank=True)),
232 ('policed', models.DateTimeField(default=None, null=True, blank=True)),
233 ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=140)),
234 ('deleted', models.BooleanField(default=False)),
235 ('role_id', models.CharField(help_text=b'Keystone id', max_length=200, null=True, db_index=True, blank=True)),
236 ('controller', models.ForeignKey(related_name=b'controllersiteprivileges', to='core.Controller')),
237 ],
238 options={
239 'abstract': False,
240 },
241 bases=(models.Model,),
242 ),
243 migrations.CreateModel(
Tony Mack3066a952015-01-05 22:48:11 -0500244 name='ControllerSlice',
Tony Macka8242c72014-12-25 19:17:54 -0500245 fields=[
246 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
247 ('created', models.DateTimeField(default=django.utils.timezone.now, auto_now_add=True)),
248 ('updated', models.DateTimeField(default=django.utils.timezone.now, auto_now=True)),
249 ('enacted', models.DateTimeField(default=None, null=True, blank=True)),
Tony Mack94c40eb2015-01-21 12:29:35 -0500250 ('policed', models.DateTimeField(default=None, null=True, blank=True)),
Tony Macka8242c72014-12-25 19:17:54 -0500251 ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=140)),
252 ('deleted', models.BooleanField(default=False)),
253 ('tenant_id', models.CharField(help_text=b'Keystone tenant id', max_length=200, null=True, blank=True)),
Tony Mack94c40eb2015-01-21 12:29:35 -0500254 ('controller', models.ForeignKey(related_name=b'controllerslices', to='core.Controller')),
255 ],
256 options={
257 'abstract': False,
258 },
259 bases=(models.Model,),
260 ),
261 migrations.CreateModel(
262 name='ControllerSlicePrivilege',
263 fields=[
264 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
265 ('created', models.DateTimeField(default=django.utils.timezone.now, auto_now_add=True)),
266 ('updated', models.DateTimeField(default=django.utils.timezone.now, auto_now=True)),
267 ('enacted', models.DateTimeField(default=None, null=True, blank=True)),
268 ('policed', models.DateTimeField(default=None, null=True, blank=True)),
269 ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=140)),
270 ('deleted', models.BooleanField(default=False)),
271 ('role_id', models.CharField(help_text=b'Keystone id', max_length=200, null=True, db_index=True, blank=True)),
272 ('controller', models.ForeignKey(related_name=b'controllersliceprivileges', to='core.Controller')),
Tony Macka8242c72014-12-25 19:17:54 -0500273 ],
274 options={
275 'abstract': False,
276 },
277 bases=(models.Model,),
278 ),
279 migrations.CreateModel(
Tony Mack3066a952015-01-05 22:48:11 -0500280 name='ControllerUser',
Tony Macka8242c72014-12-25 19:17:54 -0500281 fields=[
282 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
283 ('created', models.DateTimeField(default=django.utils.timezone.now, auto_now_add=True)),
284 ('updated', models.DateTimeField(default=django.utils.timezone.now, auto_now=True)),
285 ('enacted', models.DateTimeField(default=None, null=True, blank=True)),
Tony Mack94c40eb2015-01-21 12:29:35 -0500286 ('policed', models.DateTimeField(default=None, null=True, blank=True)),
Tony Macka8242c72014-12-25 19:17:54 -0500287 ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=140)),
288 ('deleted', models.BooleanField(default=False)),
289 ('kuser_id', models.CharField(help_text=b'Keystone user id', max_length=200, null=True, blank=True)),
290 ('controller', models.ForeignKey(related_name=b'controllersusers', to='core.Controller')),
291 ('user', models.ForeignKey(related_name=b'controllerusers', to=settings.AUTH_USER_MODEL)),
292 ],
293 options={
294 'abstract': False,
295 },
296 bases=(models.Model,),
297 ),
298 migrations.CreateModel(
299 name='DashboardView',
300 fields=[
301 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
302 ('created', models.DateTimeField(default=django.utils.timezone.now, auto_now_add=True)),
303 ('updated', models.DateTimeField(default=django.utils.timezone.now, auto_now=True)),
304 ('enacted', models.DateTimeField(default=None, null=True, blank=True)),
Tony Mack94c40eb2015-01-21 12:29:35 -0500305 ('policed', models.DateTimeField(default=None, null=True, blank=True)),
Tony Macka8242c72014-12-25 19:17:54 -0500306 ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=140)),
307 ('deleted', models.BooleanField(default=False)),
308 ('name', models.CharField(help_text=b'Name of the View', unique=True, max_length=200)),
309 ('url', models.CharField(help_text=b'URL of Dashboard', max_length=1024)),
Tony Mack94c40eb2015-01-21 12:29:35 -0500310 ('enabled', models.BooleanField(default=True)),
Tony Macka8242c72014-12-25 19:17:54 -0500311 ('controllers', models.ManyToManyField(related_name=b'dashboardviews', through='core.ControllerDashboardView', to='core.Controller', blank=True)),
312 ],
313 options={
314 'abstract': False,
315 },
316 bases=(models.Model,),
317 ),
318 migrations.CreateModel(
319 name='Deployment',
320 fields=[
321 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
322 ('created', models.DateTimeField(default=django.utils.timezone.now, auto_now_add=True)),
323 ('updated', models.DateTimeField(default=django.utils.timezone.now, auto_now=True)),
324 ('enacted', models.DateTimeField(default=None, null=True, blank=True)),
Tony Mack94c40eb2015-01-21 12:29:35 -0500325 ('policed', models.DateTimeField(default=None, null=True, blank=True)),
Tony Macka8242c72014-12-25 19:17:54 -0500326 ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=140)),
327 ('deleted', models.BooleanField(default=False)),
328 ('name', models.CharField(help_text=b'Name of the Deployment', unique=True, max_length=200)),
329 ('accessControl', models.TextField(default=b'allow all', help_text=b'Access control list that specifies which sites/users may use nodes in this deployment', max_length=200)),
330 ],
331 options={
332 'abstract': False,
333 },
334 bases=(models.Model,),
335 ),
336 migrations.CreateModel(
337 name='DeploymentPrivilege',
338 fields=[
339 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
340 ('created', models.DateTimeField(default=django.utils.timezone.now, auto_now_add=True)),
341 ('updated', models.DateTimeField(default=django.utils.timezone.now, auto_now=True)),
342 ('enacted', models.DateTimeField(default=None, null=True, blank=True)),
Tony Mack94c40eb2015-01-21 12:29:35 -0500343 ('policed', models.DateTimeField(default=None, null=True, blank=True)),
Tony Macka8242c72014-12-25 19:17:54 -0500344 ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=140)),
345 ('deleted', models.BooleanField(default=False)),
346 ('deployment', models.ForeignKey(related_name=b'deploymentprivileges', to='core.Deployment')),
347 ],
348 options={
349 'abstract': False,
350 },
351 bases=(models.Model,),
352 ),
353 migrations.CreateModel(
354 name='DeploymentRole',
355 fields=[
356 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
357 ('created', models.DateTimeField(default=django.utils.timezone.now, auto_now_add=True)),
358 ('updated', models.DateTimeField(default=django.utils.timezone.now, auto_now=True)),
359 ('enacted', models.DateTimeField(default=None, null=True, blank=True)),
Tony Mack94c40eb2015-01-21 12:29:35 -0500360 ('policed', models.DateTimeField(default=None, null=True, blank=True)),
Tony Macka8242c72014-12-25 19:17:54 -0500361 ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=140)),
362 ('deleted', models.BooleanField(default=False)),
363 ('role', models.CharField(unique=True, max_length=30, choices=[(b'admin', b'Admin')])),
364 ],
365 options={
366 'abstract': False,
367 },
368 bases=(models.Model,),
369 ),
370 migrations.CreateModel(
371 name='Flavor',
372 fields=[
373 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
374 ('created', models.DateTimeField(default=django.utils.timezone.now, auto_now_add=True)),
375 ('updated', models.DateTimeField(default=django.utils.timezone.now, auto_now=True)),
376 ('enacted', models.DateTimeField(default=None, null=True, blank=True)),
Tony Mack94c40eb2015-01-21 12:29:35 -0500377 ('policed', models.DateTimeField(default=None, null=True, blank=True)),
Tony Macka8242c72014-12-25 19:17:54 -0500378 ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=140)),
379 ('deleted', models.BooleanField(default=False)),
380 ('name', models.CharField(help_text=b'name of this flavor, as displayed to users', max_length=32)),
381 ('description', models.CharField(max_length=1024, null=True, blank=True)),
382 ('flavor', models.CharField(help_text=b'flavor string used to configure deployments', max_length=32)),
383 ('order', models.IntegerField(default=0, help_text=b'used to order flavors when displayed in a list')),
384 ('default', models.BooleanField(default=False, help_text=b'make this a default flavor to use when creating new instances')),
385 ('deployments', models.ManyToManyField(related_name=b'flavors', to='core.Deployment', blank=True)),
386 ],
387 options={
388 'ordering': ('order', 'name'),
389 },
390 bases=(models.Model,),
391 ),
392 migrations.CreateModel(
393 name='Image',
394 fields=[
395 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
396 ('created', models.DateTimeField(default=django.utils.timezone.now, auto_now_add=True)),
397 ('updated', models.DateTimeField(default=django.utils.timezone.now, auto_now=True)),
398 ('enacted', models.DateTimeField(default=None, null=True, blank=True)),
Tony Mack94c40eb2015-01-21 12:29:35 -0500399 ('policed', models.DateTimeField(default=None, null=True, blank=True)),
Tony Macka8242c72014-12-25 19:17:54 -0500400 ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=140)),
401 ('deleted', models.BooleanField(default=False)),
402 ('name', models.CharField(unique=True, max_length=256)),
403 ('disk_format', models.CharField(max_length=256)),
404 ('container_format', models.CharField(max_length=256)),
405 ('path', models.CharField(help_text=b'Path to image on local disk', max_length=256, null=True, blank=True)),
406 ],
407 options={
408 'abstract': False,
409 },
410 bases=(models.Model,),
411 ),
412 migrations.CreateModel(
413 name='ImageDeployments',
414 fields=[
415 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
416 ('created', models.DateTimeField(default=django.utils.timezone.now, auto_now_add=True)),
417 ('updated', models.DateTimeField(default=django.utils.timezone.now, auto_now=True)),
418 ('enacted', models.DateTimeField(default=None, null=True, blank=True)),
Tony Mack94c40eb2015-01-21 12:29:35 -0500419 ('policed', models.DateTimeField(default=None, null=True, blank=True)),
Tony Macka8242c72014-12-25 19:17:54 -0500420 ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=140)),
421 ('deleted', models.BooleanField(default=False)),
422 ('deployment', models.ForeignKey(related_name=b'imagedeployments', to='core.Deployment')),
423 ('image', models.ForeignKey(related_name=b'imagedeployments', to='core.Image')),
424 ],
425 options={
426 'abstract': False,
427 },
428 bases=(models.Model,),
429 ),
430 migrations.CreateModel(
431 name='Invoice',
432 fields=[
433 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
434 ('created', models.DateTimeField(default=django.utils.timezone.now, auto_now_add=True)),
435 ('updated', models.DateTimeField(default=django.utils.timezone.now, auto_now=True)),
436 ('enacted', models.DateTimeField(default=None, null=True, blank=True)),
Tony Mack94c40eb2015-01-21 12:29:35 -0500437 ('policed', models.DateTimeField(default=None, null=True, blank=True)),
Tony Macka8242c72014-12-25 19:17:54 -0500438 ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=140)),
439 ('deleted', models.BooleanField(default=False)),
440 ('date', models.DateTimeField()),
441 ('account', models.ForeignKey(related_name=b'invoices', to='core.Account')),
442 ],
443 options={
444 'abstract': False,
445 },
446 bases=(models.Model,),
447 ),
448 migrations.CreateModel(
449 name='Network',
450 fields=[
451 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
452 ('created', models.DateTimeField(default=django.utils.timezone.now, auto_now_add=True)),
453 ('updated', models.DateTimeField(default=django.utils.timezone.now, auto_now=True)),
454 ('enacted', models.DateTimeField(default=None, null=True, blank=True)),
Tony Mack94c40eb2015-01-21 12:29:35 -0500455 ('policed', models.DateTimeField(default=None, null=True, blank=True)),
Tony Macka8242c72014-12-25 19:17:54 -0500456 ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=140)),
457 ('deleted', models.BooleanField(default=False)),
458 ('name', models.CharField(max_length=32)),
459 ('subnet', models.CharField(max_length=32, blank=True)),
460 ('ports', models.CharField(blank=True, max_length=1024, null=True, validators=[core.models.network.ValidateNatList])),
461 ('labels', models.CharField(max_length=1024, null=True, blank=True)),
Tony Mack3066a952015-01-05 22:48:11 -0500462 ('guaranteed_bandwidth', models.IntegerField(default=0)),
463 ('permit_all_slices', models.BooleanField(default=False)),
464 ('topology_parameters', models.TextField(null=True, blank=True)),
465 ('controller_url', models.CharField(max_length=1024, null=True, blank=True)),
466 ('controller_parameters', models.TextField(null=True, blank=True)),
Tony Macka8242c72014-12-25 19:17:54 -0500467 ('network_id', models.CharField(help_text=b'Quantum network', max_length=256, null=True, blank=True)),
468 ('router_id', models.CharField(help_text=b'Quantum router id', max_length=256, null=True, blank=True)),
469 ('subnet_id', models.CharField(help_text=b'Quantum subnet id', max_length=256, null=True, blank=True)),
470 ],
471 options={
472 'abstract': False,
473 },
474 bases=(models.Model,),
475 ),
476 migrations.CreateModel(
477 name='NetworkParameter',
478 fields=[
479 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
480 ('created', models.DateTimeField(default=django.utils.timezone.now, auto_now_add=True)),
481 ('updated', models.DateTimeField(default=django.utils.timezone.now, auto_now=True)),
482 ('enacted', models.DateTimeField(default=None, null=True, blank=True)),
Tony Mack94c40eb2015-01-21 12:29:35 -0500483 ('policed', models.DateTimeField(default=None, null=True, blank=True)),
Tony Macka8242c72014-12-25 19:17:54 -0500484 ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=140)),
485 ('deleted', models.BooleanField(default=False)),
486 ('value', models.CharField(help_text=b'The value of this parameter', max_length=1024)),
487 ('object_id', models.PositiveIntegerField()),
488 ('content_type', models.ForeignKey(to='contenttypes.ContentType')),
489 ],
490 options={
491 'abstract': False,
492 },
493 bases=(models.Model,),
494 ),
495 migrations.CreateModel(
496 name='NetworkParameterType',
497 fields=[
498 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
499 ('created', models.DateTimeField(default=django.utils.timezone.now, auto_now_add=True)),
500 ('updated', models.DateTimeField(default=django.utils.timezone.now, auto_now=True)),
501 ('enacted', models.DateTimeField(default=None, null=True, blank=True)),
Tony Mack94c40eb2015-01-21 12:29:35 -0500502 ('policed', models.DateTimeField(default=None, null=True, blank=True)),
Tony Macka8242c72014-12-25 19:17:54 -0500503 ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=140)),
504 ('deleted', models.BooleanField(default=False)),
505 ('name', models.SlugField(help_text=b'The name of this parameter', max_length=128)),
506 ('description', models.CharField(max_length=1024)),
507 ],
508 options={
509 'abstract': False,
510 },
511 bases=(models.Model,),
512 ),
513 migrations.CreateModel(
514 name='NetworkSlice',
515 fields=[
516 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
517 ('created', models.DateTimeField(default=django.utils.timezone.now, auto_now_add=True)),
518 ('updated', models.DateTimeField(default=django.utils.timezone.now, auto_now=True)),
519 ('enacted', models.DateTimeField(default=None, null=True, blank=True)),
Tony Mack94c40eb2015-01-21 12:29:35 -0500520 ('policed', models.DateTimeField(default=None, null=True, blank=True)),
Tony Macka8242c72014-12-25 19:17:54 -0500521 ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=140)),
522 ('deleted', models.BooleanField(default=False)),
523 ('network', models.ForeignKey(related_name=b'networkslices', to='core.Network')),
524 ],
525 options={
526 'abstract': False,
527 },
528 bases=(models.Model,),
529 ),
530 migrations.CreateModel(
531 name='NetworkSliver',
532 fields=[
533 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
534 ('created', models.DateTimeField(default=django.utils.timezone.now, auto_now_add=True)),
535 ('updated', models.DateTimeField(default=django.utils.timezone.now, auto_now=True)),
536 ('enacted', models.DateTimeField(default=None, null=True, blank=True)),
Tony Mack94c40eb2015-01-21 12:29:35 -0500537 ('policed', models.DateTimeField(default=None, null=True, blank=True)),
Tony Macka8242c72014-12-25 19:17:54 -0500538 ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=140)),
539 ('deleted', models.BooleanField(default=False)),
540 ('ip', models.GenericIPAddressField(help_text=b'Sliver ip address', null=True, blank=True)),
541 ('port_id', models.CharField(help_text=b'Quantum port id', max_length=256, null=True, blank=True)),
542 ('network', models.ForeignKey(related_name=b'networkslivers', to='core.Network')),
543 ],
544 options={
545 'abstract': False,
546 },
547 bases=(models.Model,),
548 ),
549 migrations.CreateModel(
550 name='NetworkTemplate',
551 fields=[
552 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
553 ('created', models.DateTimeField(default=django.utils.timezone.now, auto_now_add=True)),
554 ('updated', models.DateTimeField(default=django.utils.timezone.now, auto_now=True)),
555 ('enacted', models.DateTimeField(default=None, null=True, blank=True)),
Tony Mack94c40eb2015-01-21 12:29:35 -0500556 ('policed', models.DateTimeField(default=None, null=True, blank=True)),
Tony Macka8242c72014-12-25 19:17:54 -0500557 ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=140)),
558 ('deleted', models.BooleanField(default=False)),
559 ('name', models.CharField(max_length=32)),
560 ('description', models.CharField(max_length=1024, null=True, blank=True)),
Tony Mack3066a952015-01-05 22:48:11 -0500561 ('guaranteed_bandwidth', models.IntegerField(default=0)),
Tony Macka8242c72014-12-25 19:17:54 -0500562 ('visibility', models.CharField(default=b'private', max_length=30, choices=[(b'public', b'public'), (b'private', b'private')])),
563 ('translation', models.CharField(default=b'none', max_length=30, choices=[(b'none', b'none'), (b'NAT', b'NAT')])),
Tony Mack3066a952015-01-05 22:48:11 -0500564 ('shared_network_name', models.CharField(max_length=30, null=True, blank=True)),
565 ('shared_network_id', models.CharField(help_text=b'Quantum network', max_length=256, null=True, blank=True)),
566 ('topology_kind', models.CharField(default=b'BigSwitch', max_length=30, choices=[(b'bigswitch', b'BigSwitch'), (b'physical', b'Physical'), (b'custom', b'Custom')])),
567 ('controller_kind', models.CharField(default=None, max_length=30, null=True, blank=True, choices=[(None, b'None'), (b'onos', b'ONOS'), (b'custom', b'Custom')])),
Tony Macka8242c72014-12-25 19:17:54 -0500568 ],
569 options={
570 'abstract': False,
571 },
572 bases=(models.Model,),
573 ),
574 migrations.CreateModel(
575 name='Node',
576 fields=[
577 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
578 ('created', models.DateTimeField(default=django.utils.timezone.now, auto_now_add=True)),
579 ('updated', models.DateTimeField(default=django.utils.timezone.now, auto_now=True)),
580 ('enacted', models.DateTimeField(default=None, null=True, blank=True)),
Tony Mack94c40eb2015-01-21 12:29:35 -0500581 ('policed', models.DateTimeField(default=None, null=True, blank=True)),
Tony Macka8242c72014-12-25 19:17:54 -0500582 ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=140)),
583 ('deleted', models.BooleanField(default=False)),
584 ('name', models.CharField(help_text=b'Name of the Node', unique=True, max_length=200)),
585 ],
586 options={
587 'abstract': False,
588 },
589 bases=(models.Model,),
590 ),
591 migrations.CreateModel(
592 name='Payment',
593 fields=[
594 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
595 ('created', models.DateTimeField(default=django.utils.timezone.now, auto_now_add=True)),
596 ('updated', models.DateTimeField(default=django.utils.timezone.now, auto_now=True)),
597 ('enacted', models.DateTimeField(default=None, null=True, blank=True)),
Tony Mack94c40eb2015-01-21 12:29:35 -0500598 ('policed', models.DateTimeField(default=None, null=True, blank=True)),
Tony Macka8242c72014-12-25 19:17:54 -0500599 ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=140)),
600 ('deleted', models.BooleanField(default=False)),
601 ('amount', models.FloatField(default=0.0)),
602 ('date', models.DateTimeField(default=django.utils.timezone.now)),
603 ('account', models.ForeignKey(related_name=b'payments', to='core.Account')),
604 ],
605 options={
606 'abstract': False,
607 },
608 bases=(models.Model,),
609 ),
610 migrations.CreateModel(
611 name='PlanetStack',
612 fields=[
613 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
614 ('created', models.DateTimeField(default=django.utils.timezone.now, auto_now_add=True)),
615 ('updated', models.DateTimeField(default=django.utils.timezone.now, auto_now=True)),
616 ('enacted', models.DateTimeField(default=None, null=True, blank=True)),
Tony Mack94c40eb2015-01-21 12:29:35 -0500617 ('policed', models.DateTimeField(default=None, null=True, blank=True)),
Tony Macka8242c72014-12-25 19:17:54 -0500618 ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=140)),
619 ('deleted', models.BooleanField(default=False)),
620 ('description', models.CharField(default=b'PlanetStack', help_text=b'Used for scoping of roles at the PlanetStack Application level', unique=True, max_length=200)),
621 ],
622 options={
623 'verbose_name_plural': 'PlanetStack',
624 },
625 bases=(models.Model,),
626 ),
627 migrations.CreateModel(
628 name='PlanetStackPrivilege',
629 fields=[
630 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
631 ('created', models.DateTimeField(default=django.utils.timezone.now, auto_now_add=True)),
632 ('updated', models.DateTimeField(default=django.utils.timezone.now, auto_now=True)),
633 ('enacted', models.DateTimeField(default=None, null=True, blank=True)),
Tony Mack94c40eb2015-01-21 12:29:35 -0500634 ('policed', models.DateTimeField(default=None, null=True, blank=True)),
Tony Macka8242c72014-12-25 19:17:54 -0500635 ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=140)),
636 ('deleted', models.BooleanField(default=False)),
637 ('planetstack', models.ForeignKey(related_name=b'planetstackprivileges', default=1, to='core.PlanetStack')),
638 ],
639 options={
640 'abstract': False,
641 },
642 bases=(models.Model,),
643 ),
644 migrations.CreateModel(
645 name='PlanetStackRole',
646 fields=[
647 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
648 ('created', models.DateTimeField(default=django.utils.timezone.now, auto_now_add=True)),
649 ('updated', models.DateTimeField(default=django.utils.timezone.now, auto_now=True)),
650 ('enacted', models.DateTimeField(default=None, null=True, blank=True)),
Tony Mack94c40eb2015-01-21 12:29:35 -0500651 ('policed', models.DateTimeField(default=None, null=True, blank=True)),
Tony Macka8242c72014-12-25 19:17:54 -0500652 ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=140)),
653 ('deleted', models.BooleanField(default=False)),
654 ('role', models.CharField(unique=True, max_length=30, choices=[(b'admin', b'Admin')])),
655 ],
656 options={
657 'abstract': False,
658 },
659 bases=(models.Model,),
660 ),
661 migrations.CreateModel(
662 name='Project',
663 fields=[
664 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
665 ('created', models.DateTimeField(default=django.utils.timezone.now, auto_now_add=True)),
666 ('updated', models.DateTimeField(default=django.utils.timezone.now, auto_now=True)),
667 ('enacted', models.DateTimeField(default=None, null=True, blank=True)),
Tony Mack94c40eb2015-01-21 12:29:35 -0500668 ('policed', models.DateTimeField(default=None, null=True, blank=True)),
Tony Macka8242c72014-12-25 19:17:54 -0500669 ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=140)),
670 ('deleted', models.BooleanField(default=False)),
671 ('name', models.CharField(help_text=b'Name of Project', unique=True, max_length=200)),
672 ],
673 options={
674 'abstract': False,
675 },
676 bases=(models.Model,),
677 ),
678 migrations.CreateModel(
679 name='Reservation',
680 fields=[
681 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
682 ('created', models.DateTimeField(default=django.utils.timezone.now, auto_now_add=True)),
683 ('updated', models.DateTimeField(default=django.utils.timezone.now, auto_now=True)),
684 ('enacted', models.DateTimeField(default=None, null=True, blank=True)),
Tony Mack94c40eb2015-01-21 12:29:35 -0500685 ('policed', models.DateTimeField(default=None, null=True, blank=True)),
Tony Macka8242c72014-12-25 19:17:54 -0500686 ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=140)),
687 ('deleted', models.BooleanField(default=False)),
688 ('startTime', models.DateTimeField()),
689 ('duration', models.IntegerField(default=1)),
690 ],
691 options={
692 'abstract': False,
693 },
694 bases=(models.Model,),
695 ),
696 migrations.CreateModel(
697 name='ReservedResource',
698 fields=[
699 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
700 ('created', models.DateTimeField(default=django.utils.timezone.now, auto_now_add=True)),
701 ('updated', models.DateTimeField(default=django.utils.timezone.now, auto_now=True)),
702 ('enacted', models.DateTimeField(default=None, null=True, blank=True)),
Tony Mack94c40eb2015-01-21 12:29:35 -0500703 ('policed', models.DateTimeField(default=None, null=True, blank=True)),
Tony Macka8242c72014-12-25 19:17:54 -0500704 ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=140)),
705 ('deleted', models.BooleanField(default=False)),
706 ('quantity', models.IntegerField(default=1)),
707 ('reservationSet', models.ForeignKey(related_name=b'reservedresources', to='core.Reservation')),
708 ],
709 options={
710 'abstract': False,
711 'verbose_name_plural': 'Reserved Resources',
712 },
713 bases=(models.Model,),
714 ),
715 migrations.CreateModel(
716 name='Role',
717 fields=[
718 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
719 ('created', models.DateTimeField(default=django.utils.timezone.now, auto_now_add=True)),
720 ('updated', models.DateTimeField(default=django.utils.timezone.now, auto_now=True)),
721 ('enacted', models.DateTimeField(default=None, null=True, blank=True)),
Tony Mack94c40eb2015-01-21 12:29:35 -0500722 ('policed', models.DateTimeField(default=None, null=True, blank=True)),
Tony Macka8242c72014-12-25 19:17:54 -0500723 ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=140)),
724 ('deleted', models.BooleanField(default=False)),
725 ('role_type', models.CharField(max_length=80, verbose_name=b'Name')),
726 ('role', models.CharField(max_length=80, null=True, verbose_name=b'Keystone role id', blank=True)),
727 ('description', models.CharField(max_length=120, verbose_name=b'Description')),
728 ('content_type', models.ForeignKey(verbose_name=b'Role Scope', to='contenttypes.ContentType')),
729 ],
730 options={
731 'abstract': False,
732 },
733 bases=(models.Model,),
734 ),
735 migrations.CreateModel(
736 name='Router',
737 fields=[
738 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
739 ('created', models.DateTimeField(default=django.utils.timezone.now, auto_now_add=True)),
740 ('updated', models.DateTimeField(default=django.utils.timezone.now, auto_now=True)),
741 ('enacted', models.DateTimeField(default=None, null=True, blank=True)),
Tony Mack94c40eb2015-01-21 12:29:35 -0500742 ('policed', models.DateTimeField(default=None, null=True, blank=True)),
Tony Macka8242c72014-12-25 19:17:54 -0500743 ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=140)),
744 ('deleted', models.BooleanField(default=False)),
745 ('name', models.CharField(max_length=32)),
746 ('networks', models.ManyToManyField(related_name=b'routers', to='core.Network', blank=True)),
747 ],
748 options={
749 'abstract': False,
750 },
751 bases=(models.Model,),
752 ),
753 migrations.CreateModel(
754 name='Service',
755 fields=[
756 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
757 ('created', models.DateTimeField(default=django.utils.timezone.now, auto_now_add=True)),
758 ('updated', models.DateTimeField(default=django.utils.timezone.now, auto_now=True)),
759 ('enacted', models.DateTimeField(default=None, null=True, blank=True)),
Tony Mack94c40eb2015-01-21 12:29:35 -0500760 ('policed', models.DateTimeField(default=None, null=True, blank=True)),
Tony Macka8242c72014-12-25 19:17:54 -0500761 ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=140)),
762 ('deleted', models.BooleanField(default=False)),
763 ('description', models.TextField(help_text=b'Description of Service', max_length=254, null=True, blank=True)),
764 ('enabled', models.BooleanField(default=True)),
765 ('name', models.CharField(help_text=b'Service Name', max_length=30)),
766 ('versionNumber', models.CharField(help_text=b'Version of Service Definition', max_length=30)),
767 ('published', models.BooleanField(default=True)),
768 ],
769 options={
770 'abstract': False,
771 },
772 bases=(models.Model,),
773 ),
774 migrations.CreateModel(
775 name='ServiceAttribute',
776 fields=[
777 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
778 ('created', models.DateTimeField(default=django.utils.timezone.now, auto_now_add=True)),
779 ('updated', models.DateTimeField(default=django.utils.timezone.now, auto_now=True)),
780 ('enacted', models.DateTimeField(default=None, null=True, blank=True)),
Tony Mack94c40eb2015-01-21 12:29:35 -0500781 ('policed', models.DateTimeField(default=None, null=True, blank=True)),
Tony Macka8242c72014-12-25 19:17:54 -0500782 ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=140)),
783 ('deleted', models.BooleanField(default=False)),
784 ('name', models.SlugField(help_text=b'Attribute Name', max_length=128)),
785 ('value', models.CharField(help_text=b'Attribute Value', max_length=1024)),
786 ('service', models.ForeignKey(related_name=b'serviceattributes', to='core.Service', help_text=b'The Service this attribute is associated with')),
787 ],
788 options={
789 'abstract': False,
790 },
791 bases=(models.Model,),
792 ),
793 migrations.CreateModel(
794 name='ServiceClass',
795 fields=[
796 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
797 ('created', models.DateTimeField(default=django.utils.timezone.now, auto_now_add=True)),
798 ('updated', models.DateTimeField(default=django.utils.timezone.now, auto_now=True)),
799 ('enacted', models.DateTimeField(default=None, null=True, blank=True)),
Tony Mack94c40eb2015-01-21 12:29:35 -0500800 ('policed', models.DateTimeField(default=None, null=True, blank=True)),
Tony Macka8242c72014-12-25 19:17:54 -0500801 ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=140)),
802 ('deleted', models.BooleanField(default=False)),
803 ('name', models.CharField(max_length=32)),
804 ('description', models.CharField(max_length=255)),
805 ('commitment', models.IntegerField(default=365)),
806 ('membershipFee', models.IntegerField(default=0)),
807 ('membershipFeeMonths', models.IntegerField(default=12)),
808 ('upgradeRequiresApproval', models.BooleanField(default=False)),
809 ('upgradeFrom', models.ManyToManyField(related_name='upgradeFrom_rel_+', null=True, to='core.ServiceClass', blank=True)),
810 ],
811 options={
812 'abstract': False,
813 'verbose_name_plural': 'Service classes',
814 },
815 bases=(models.Model,),
816 ),
817 migrations.CreateModel(
818 name='ServiceResource',
819 fields=[
820 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
821 ('created', models.DateTimeField(default=django.utils.timezone.now, auto_now_add=True)),
822 ('updated', models.DateTimeField(default=django.utils.timezone.now, auto_now=True)),
823 ('enacted', models.DateTimeField(default=None, null=True, blank=True)),
Tony Mack94c40eb2015-01-21 12:29:35 -0500824 ('policed', models.DateTimeField(default=None, null=True, blank=True)),
Tony Macka8242c72014-12-25 19:17:54 -0500825 ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=140)),
826 ('deleted', models.BooleanField(default=False)),
827 ('name', models.CharField(max_length=32)),
828 ('maxUnitsDeployment', models.IntegerField(default=1)),
829 ('maxUnitsNode', models.IntegerField(default=1)),
830 ('maxDuration', models.IntegerField(default=1)),
831 ('bucketInRate', models.IntegerField(default=0)),
832 ('bucketMaxSize', models.IntegerField(default=0)),
833 ('cost', models.IntegerField(default=0)),
834 ('calendarReservable', models.BooleanField(default=True)),
835 ('serviceClass', models.ForeignKey(related_name=b'serviceresources', to='core.ServiceClass')),
836 ],
837 options={
838 'abstract': False,
839 },
840 bases=(models.Model,),
841 ),
842 migrations.CreateModel(
843 name='Site',
844 fields=[
845 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
846 ('created', models.DateTimeField(default=django.utils.timezone.now, auto_now_add=True)),
847 ('updated', models.DateTimeField(default=django.utils.timezone.now, auto_now=True)),
848 ('enacted', models.DateTimeField(default=None, null=True, blank=True)),
Tony Mack94c40eb2015-01-21 12:29:35 -0500849 ('policed', models.DateTimeField(default=None, null=True, blank=True)),
Tony Macka8242c72014-12-25 19:17:54 -0500850 ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=140)),
851 ('deleted', models.BooleanField(default=False)),
852 ('name', models.CharField(help_text=b'Name for this Site', max_length=200)),
853 ('site_url', models.URLField(help_text=b"Site's Home URL Page", max_length=512, null=True, blank=True)),
854 ('enabled', models.BooleanField(default=True, help_text=b'Status for this Site')),
855 ('location', geoposition.fields.GeopositionField(max_length=42)),
856 ('longitude', models.FloatField(null=True, blank=True)),
857 ('latitude', models.FloatField(null=True, blank=True)),
858 ('login_base', models.CharField(help_text=b'Prefix for Slices associated with this Site', unique=True, max_length=50)),
859 ('is_public', models.BooleanField(default=True, help_text=b'Indicates the visibility of this site to other members')),
860 ('abbreviated_name', models.CharField(max_length=80)),
861 ],
862 options={
863 'abstract': False,
864 },
865 bases=(models.Model,),
866 ),
867 migrations.CreateModel(
868 name='SiteCredential',
869 fields=[
870 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
871 ('created', models.DateTimeField(default=django.utils.timezone.now, auto_now_add=True)),
872 ('updated', models.DateTimeField(default=django.utils.timezone.now, auto_now=True)),
873 ('enacted', models.DateTimeField(default=None, null=True, blank=True)),
Tony Mack94c40eb2015-01-21 12:29:35 -0500874 ('policed', models.DateTimeField(default=None, null=True, blank=True)),
Tony Macka8242c72014-12-25 19:17:54 -0500875 ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=140)),
876 ('deleted', models.BooleanField(default=False)),
877 ('name', models.SlugField(help_text=b'The credential type, e.g. ec2', max_length=128)),
878 ('key_id', models.CharField(help_text=b'The backend id of this credential', max_length=1024)),
879 ('enc_value', encrypted_fields.fields.EncryptedCharField(help_text=b'The key value of this credential', max_length=1024)),
880 ('site', models.ForeignKey(related_name=b'sitecredentials', to='core.Site', help_text=b'The User this credential is associated with')),
881 ],
882 options={
883 'abstract': False,
884 },
885 bases=(models.Model,),
886 ),
887 migrations.CreateModel(
Tony Mack3066a952015-01-05 22:48:11 -0500888 name='SiteDeployment',
Tony Macka8242c72014-12-25 19:17:54 -0500889 fields=[
890 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
891 ('created', models.DateTimeField(default=django.utils.timezone.now, auto_now_add=True)),
892 ('updated', models.DateTimeField(default=django.utils.timezone.now, auto_now=True)),
893 ('enacted', models.DateTimeField(default=None, null=True, blank=True)),
Tony Mack94c40eb2015-01-21 12:29:35 -0500894 ('policed', models.DateTimeField(default=None, null=True, blank=True)),
Tony Macka8242c72014-12-25 19:17:54 -0500895 ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=140)),
896 ('deleted', models.BooleanField(default=False)),
897 ('availability_zone', models.CharField(help_text=b'OpenStack availability zone', max_length=200, null=True, blank=True)),
Tony Mack94c40eb2015-01-21 12:29:35 -0500898 ('controller', models.ForeignKey(related_name=b'sitedeployments', blank=True, to='core.Controller', null=True)),
899 ('deployment', models.ForeignKey(related_name=b'sitedeployments', to='core.Deployment')),
900 ('site', models.ForeignKey(related_name=b'sitedeployments', to='core.Site')),
Tony Macka8242c72014-12-25 19:17:54 -0500901 ],
902 options={
903 'abstract': False,
904 },
905 bases=(models.Model,),
906 ),
907 migrations.CreateModel(
908 name='SitePrivilege',
909 fields=[
910 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
911 ('created', models.DateTimeField(default=django.utils.timezone.now, auto_now_add=True)),
912 ('updated', models.DateTimeField(default=django.utils.timezone.now, auto_now=True)),
913 ('enacted', models.DateTimeField(default=None, null=True, blank=True)),
Tony Mack94c40eb2015-01-21 12:29:35 -0500914 ('policed', models.DateTimeField(default=None, null=True, blank=True)),
Tony Macka8242c72014-12-25 19:17:54 -0500915 ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=140)),
916 ('deleted', models.BooleanField(default=False)),
917 ],
918 options={
919 'abstract': False,
920 },
921 bases=(models.Model,),
922 ),
923 migrations.CreateModel(
924 name='SiteRole',
925 fields=[
926 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
927 ('created', models.DateTimeField(default=django.utils.timezone.now, auto_now_add=True)),
928 ('updated', models.DateTimeField(default=django.utils.timezone.now, auto_now=True)),
929 ('enacted', models.DateTimeField(default=None, null=True, blank=True)),
Tony Mack94c40eb2015-01-21 12:29:35 -0500930 ('policed', models.DateTimeField(default=None, null=True, blank=True)),
Tony Macka8242c72014-12-25 19:17:54 -0500931 ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=140)),
932 ('deleted', models.BooleanField(default=False)),
933 ('role', models.CharField(unique=True, max_length=30, choices=[(b'admin', b'Admin'), (b'pi', b'PI'), (b'tech', b'Tech'), (b'billing', b'Billing')])),
934 ],
935 options={
936 'abstract': False,
937 },
938 bases=(models.Model,),
939 ),
940 migrations.CreateModel(
941 name='Slice',
942 fields=[
943 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
944 ('created', models.DateTimeField(default=django.utils.timezone.now, auto_now_add=True)),
945 ('updated', models.DateTimeField(default=django.utils.timezone.now, auto_now=True)),
946 ('enacted', models.DateTimeField(default=None, null=True, blank=True)),
Tony Mack94c40eb2015-01-21 12:29:35 -0500947 ('policed', models.DateTimeField(default=None, null=True, blank=True)),
Tony Macka8242c72014-12-25 19:17:54 -0500948 ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=140)),
949 ('deleted', models.BooleanField(default=False)),
950 ('name', models.CharField(help_text=b'The Name of the Slice', unique=True, max_length=80)),
951 ('enabled', models.BooleanField(default=True, help_text=b'Status for this Slice')),
952 ('omf_friendly', models.BooleanField(default=False)),
953 ('description', models.TextField(help_text=b'High level description of the slice and expected activities', max_length=1024, blank=True)),
954 ('slice_url', models.URLField(max_length=512, blank=True)),
955 ('max_slivers', models.IntegerField(default=10)),
Tony Macka8242c72014-12-25 19:17:54 -0500956 ('network', models.CharField(default=b'Private Only', max_length=256, null=True, blank=True)),
Tony Mack3066a952015-01-05 22:48:11 -0500957 ('mount_data_sets', models.CharField(default=b'GenBank', max_length=256, null=True, blank=True)),
Tony Macka8242c72014-12-25 19:17:54 -0500958 ('creator', models.ForeignKey(related_name=b'slices', blank=True, to=settings.AUTH_USER_MODEL, null=True)),
Tony Mack94c40eb2015-01-21 12:29:35 -0500959 ('default_flavor', models.ForeignKey(related_name=b'slices', blank=True, to='core.Flavor', null=True)),
960 ('default_image', models.ForeignKey(related_name=b'slices', blank=True, to='core.Image', null=True)),
Tony Macka8242c72014-12-25 19:17:54 -0500961 ('service', models.ForeignKey(related_name=b'service', blank=True, to='core.Service', null=True)),
962 ('serviceClass', models.ForeignKey(related_name=b'slices', default=core.models.serviceclass.get_default_serviceclass, to='core.ServiceClass', null=True)),
963 ('site', models.ForeignKey(related_name=b'slices', to='core.Site', help_text=b'The Site this Slice belongs to')),
964 ],
965 options={
966 'abstract': False,
967 },
968 bases=(models.Model,),
969 ),
970 migrations.CreateModel(
971 name='SliceCredential',
972 fields=[
973 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
974 ('created', models.DateTimeField(default=django.utils.timezone.now, auto_now_add=True)),
975 ('updated', models.DateTimeField(default=django.utils.timezone.now, auto_now=True)),
976 ('enacted', models.DateTimeField(default=None, null=True, blank=True)),
Tony Mack94c40eb2015-01-21 12:29:35 -0500977 ('policed', models.DateTimeField(default=None, null=True, blank=True)),
Tony Macka8242c72014-12-25 19:17:54 -0500978 ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=140)),
979 ('deleted', models.BooleanField(default=False)),
980 ('name', models.SlugField(help_text=b'The credential type, e.g. ec2', max_length=128)),
981 ('key_id', models.CharField(help_text=b'The backend id of this credential', max_length=1024)),
982 ('enc_value', encrypted_fields.fields.EncryptedCharField(help_text=b'The key value of this credential', max_length=1024)),
983 ('slice', models.ForeignKey(related_name=b'slicecredentials', to='core.Slice', help_text=b'The User this credential is associated with')),
984 ],
985 options={
986 'abstract': False,
987 },
988 bases=(models.Model,),
989 ),
990 migrations.CreateModel(
991 name='SlicePrivilege',
992 fields=[
993 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
994 ('created', models.DateTimeField(default=django.utils.timezone.now, auto_now_add=True)),
995 ('updated', models.DateTimeField(default=django.utils.timezone.now, auto_now=True)),
996 ('enacted', models.DateTimeField(default=None, null=True, blank=True)),
Tony Mack94c40eb2015-01-21 12:29:35 -0500997 ('policed', models.DateTimeField(default=None, null=True, blank=True)),
Tony Macka8242c72014-12-25 19:17:54 -0500998 ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=140)),
999 ('deleted', models.BooleanField(default=False)),
1000 ],
1001 options={
1002 'abstract': False,
1003 },
1004 bases=(models.Model,),
1005 ),
1006 migrations.CreateModel(
1007 name='SliceRole',
1008 fields=[
1009 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
1010 ('created', models.DateTimeField(default=django.utils.timezone.now, auto_now_add=True)),
1011 ('updated', models.DateTimeField(default=django.utils.timezone.now, auto_now=True)),
1012 ('enacted', models.DateTimeField(default=None, null=True, blank=True)),
Tony Mack94c40eb2015-01-21 12:29:35 -05001013 ('policed', models.DateTimeField(default=None, null=True, blank=True)),
Tony Macka8242c72014-12-25 19:17:54 -05001014 ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=140)),
1015 ('deleted', models.BooleanField(default=False)),
1016 ('role', models.CharField(unique=True, max_length=30, choices=[(b'admin', b'Admin'), (b'default', b'Default')])),
1017 ],
1018 options={
1019 'abstract': False,
1020 },
1021 bases=(models.Model,),
1022 ),
1023 migrations.CreateModel(
1024 name='SliceTag',
1025 fields=[
1026 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
1027 ('created', models.DateTimeField(default=django.utils.timezone.now, auto_now_add=True)),
1028 ('updated', models.DateTimeField(default=django.utils.timezone.now, auto_now=True)),
1029 ('enacted', models.DateTimeField(default=None, null=True, blank=True)),
Tony Mack94c40eb2015-01-21 12:29:35 -05001030 ('policed', models.DateTimeField(default=None, null=True, blank=True)),
Tony Macka8242c72014-12-25 19:17:54 -05001031 ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=140)),
1032 ('deleted', models.BooleanField(default=False)),
1033 ('name', models.CharField(help_text=b'The name of this tag', max_length=30, choices=[(b'privatekey', b'Private Key'), (b'publickey', b'Public Key')])),
1034 ('value', models.CharField(help_text=b'The value of this tag', max_length=1024)),
1035 ('slice', models.ForeignKey(related_name=b'slicetags', to='core.Slice')),
1036 ],
1037 options={
1038 'abstract': False,
1039 },
1040 bases=(models.Model,),
1041 ),
1042 migrations.CreateModel(
1043 name='Sliver',
1044 fields=[
1045 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
1046 ('created', models.DateTimeField(default=django.utils.timezone.now, auto_now_add=True)),
1047 ('updated', models.DateTimeField(default=django.utils.timezone.now, auto_now=True)),
1048 ('enacted', models.DateTimeField(default=None, null=True, blank=True)),
Tony Mack94c40eb2015-01-21 12:29:35 -05001049 ('policed', models.DateTimeField(default=None, null=True, blank=True)),
Tony Macka8242c72014-12-25 19:17:54 -05001050 ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=140)),
1051 ('deleted', models.BooleanField(default=False)),
1052 ('instance_id', models.CharField(help_text=b'Nova instance id', max_length=200, null=True, blank=True)),
Tony Mack94c40eb2015-01-21 12:29:35 -05001053 ('instance_uuid', models.CharField(help_text=b'Nova instance uuid', max_length=200, null=True, blank=True)),
Tony Macka8242c72014-12-25 19:17:54 -05001054 ('name', models.CharField(help_text=b'Sliver name', max_length=200)),
1055 ('instance_name', models.CharField(help_text=b'OpenStack generated name', max_length=200, null=True, blank=True)),
1056 ('ip', models.GenericIPAddressField(help_text=b'Sliver ip address', null=True, blank=True)),
1057 ('numberCores', models.IntegerField(default=0, help_text=b'Number of cores for sliver', verbose_name=b'Number of Cores')),
1058 ('userData', models.TextField(help_text=b'user_data passed to instance during creation', null=True, blank=True)),
Tony Macka8242c72014-12-25 19:17:54 -05001059 ('creator', models.ForeignKey(related_name=b'slivers', blank=True, to=settings.AUTH_USER_MODEL, null=True)),
Tony Mackb2dba4b2014-12-26 13:38:02 -05001060 ('deployment', models.ForeignKey(related_name=b'sliver_deployment', verbose_name=b'deployment', to='core.Deployment')),
Tony Macka8242c72014-12-25 19:17:54 -05001061 ('flavor', models.ForeignKey(default=core.models.sliver.get_default_flavor, to='core.Flavor', help_text=b'Flavor of this instance')),
1062 ('image', models.ForeignKey(related_name=b'slivers', to='core.Image')),
1063 ('node', models.ForeignKey(related_name=b'slivers', to='core.Node')),
1064 ('slice', models.ForeignKey(related_name=b'slivers', to='core.Slice')),
1065 ],
1066 options={
1067 'abstract': False,
1068 },
1069 bases=(models.Model,),
1070 ),
1071 migrations.CreateModel(
1072 name='Tag',
1073 fields=[
1074 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
1075 ('created', models.DateTimeField(default=django.utils.timezone.now, auto_now_add=True)),
1076 ('updated', models.DateTimeField(default=django.utils.timezone.now, auto_now=True)),
1077 ('enacted', models.DateTimeField(default=None, null=True, blank=True)),
Tony Mack94c40eb2015-01-21 12:29:35 -05001078 ('policed', models.DateTimeField(default=None, null=True, blank=True)),
Tony Macka8242c72014-12-25 19:17:54 -05001079 ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=140)),
1080 ('deleted', models.BooleanField(default=False)),
1081 ('name', models.SlugField(help_text=b'The name of this tag', max_length=128)),
1082 ('value', models.CharField(help_text=b'The value of this tag', max_length=1024)),
1083 ('object_id', models.PositiveIntegerField()),
1084 ('content_type', models.ForeignKey(to='contenttypes.ContentType')),
1085 ('service', models.ForeignKey(related_name=b'tags', to='core.Service', help_text=b'The Service this Tag is associated with')),
1086 ],
1087 options={
1088 'abstract': False,
1089 },
1090 bases=(models.Model,),
1091 ),
1092 migrations.CreateModel(
1093 name='UsableObject',
1094 fields=[
1095 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
1096 ('created', models.DateTimeField(default=django.utils.timezone.now, auto_now_add=True)),
1097 ('updated', models.DateTimeField(default=django.utils.timezone.now, auto_now=True)),
1098 ('enacted', models.DateTimeField(default=None, null=True, blank=True)),
Tony Mack94c40eb2015-01-21 12:29:35 -05001099 ('policed', models.DateTimeField(default=None, null=True, blank=True)),
Tony Macka8242c72014-12-25 19:17:54 -05001100 ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=140)),
1101 ('deleted', models.BooleanField(default=False)),
1102 ('name', models.CharField(max_length=1024)),
1103 ],
1104 options={
1105 'abstract': False,
1106 },
1107 bases=(models.Model,),
1108 ),
1109 migrations.CreateModel(
1110 name='UserCredential',
1111 fields=[
1112 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
1113 ('created', models.DateTimeField(default=django.utils.timezone.now, auto_now_add=True)),
1114 ('updated', models.DateTimeField(default=django.utils.timezone.now, auto_now=True)),
1115 ('enacted', models.DateTimeField(default=None, null=True, blank=True)),
Tony Mack94c40eb2015-01-21 12:29:35 -05001116 ('policed', models.DateTimeField(default=None, null=True, blank=True)),
Tony Macka8242c72014-12-25 19:17:54 -05001117 ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=140)),
1118 ('deleted', models.BooleanField(default=False)),
1119 ('name', models.SlugField(help_text=b'The credential type, e.g. ec2', max_length=128)),
1120 ('key_id', models.CharField(help_text=b'The backend id of this credential', max_length=1024)),
1121 ('enc_value', encrypted_fields.fields.EncryptedCharField(help_text=b'The key value of this credential', max_length=1024)),
1122 ('user', models.ForeignKey(related_name=b'usercredentials', to=settings.AUTH_USER_MODEL, help_text=b'The User this credential is associated with')),
1123 ],
1124 options={
1125 'abstract': False,
1126 },
1127 bases=(models.Model,),
1128 ),
1129 migrations.CreateModel(
1130 name='UserDashboardView',
1131 fields=[
1132 ('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
1133 ('created', models.DateTimeField(default=django.utils.timezone.now, auto_now_add=True)),
1134 ('updated', models.DateTimeField(default=django.utils.timezone.now, auto_now=True)),
1135 ('enacted', models.DateTimeField(default=None, null=True, blank=True)),
Tony Mack94c40eb2015-01-21 12:29:35 -05001136 ('policed', models.DateTimeField(default=None, null=True, blank=True)),
Tony Macka8242c72014-12-25 19:17:54 -05001137 ('backend_status', models.CharField(default=b'Provisioning in progress', max_length=140)),
1138 ('deleted', models.BooleanField(default=False)),
1139 ('order', models.IntegerField(default=0)),
1140 ('dashboardView', models.ForeignKey(related_name=b'userdashboardviews', to='core.DashboardView')),
1141 ('user', models.ForeignKey(related_name=b'userdashboardviews', to=settings.AUTH_USER_MODEL)),
1142 ],
1143 options={
1144 'abstract': False,
1145 },
1146 bases=(models.Model,),
1147 ),
1148 migrations.AddField(
1149 model_name='sliceprivilege',
1150 name='role',
1151 field=models.ForeignKey(related_name=b'sliceprivileges', to='core.SliceRole'),
1152 preserve_default=True,
1153 ),
1154 migrations.AddField(
1155 model_name='sliceprivilege',
1156 name='slice',
1157 field=models.ForeignKey(related_name=b'sliceprivileges', to='core.Slice'),
1158 preserve_default=True,
1159 ),
1160 migrations.AddField(
1161 model_name='sliceprivilege',
1162 name='user',
1163 field=models.ForeignKey(related_name=b'sliceprivileges', to=settings.AUTH_USER_MODEL),
1164 preserve_default=True,
1165 ),
1166 migrations.AddField(
1167 model_name='siteprivilege',
1168 name='role',
1169 field=models.ForeignKey(related_name=b'siteprivileges', to='core.SiteRole'),
1170 preserve_default=True,
1171 ),
1172 migrations.AddField(
1173 model_name='siteprivilege',
1174 name='site',
1175 field=models.ForeignKey(related_name=b'siteprivileges', to='core.Site'),
1176 preserve_default=True,
1177 ),
1178 migrations.AddField(
1179 model_name='siteprivilege',
1180 name='user',
1181 field=models.ForeignKey(related_name=b'siteprivileges', to=settings.AUTH_USER_MODEL),
1182 preserve_default=True,
1183 ),
1184 migrations.AddField(
1185 model_name='site',
1186 name='deployments',
Tony Mack3066a952015-01-05 22:48:11 -05001187 field=models.ManyToManyField(help_text=b'Select which sites are allowed to host nodes in this deployment', related_name=b'sites', through='core.SiteDeployment', to='core.Deployment', blank=True),
Tony Macka8242c72014-12-25 19:17:54 -05001188 preserve_default=True,
1189 ),
1190 migrations.AddField(
1191 model_name='router',
1192 name='owner',
1193 field=models.ForeignKey(related_name=b'routers', to='core.Slice'),
1194 preserve_default=True,
1195 ),
1196 migrations.AddField(
1197 model_name='router',
1198 name='permittedNetworks',
1199 field=models.ManyToManyField(related_name=b'availableRouters', to='core.Network', blank=True),
1200 preserve_default=True,
1201 ),
1202 migrations.AddField(
1203 model_name='reservedresource',
1204 name='resource',
1205 field=models.ForeignKey(related_name=b'reservedresources', to='core.ServiceResource'),
1206 preserve_default=True,
1207 ),
1208 migrations.AddField(
1209 model_name='reservedresource',
1210 name='sliver',
1211 field=models.ForeignKey(related_name=b'reservedresources', to='core.Sliver'),
1212 preserve_default=True,
1213 ),
1214 migrations.AddField(
1215 model_name='reservation',
1216 name='slice',
1217 field=models.ForeignKey(related_name=b'reservations', to='core.Slice'),
1218 preserve_default=True,
1219 ),
1220 migrations.AddField(
1221 model_name='planetstackprivilege',
1222 name='role',
1223 field=models.ForeignKey(to='core.PlanetStackRole'),
1224 preserve_default=True,
1225 ),
1226 migrations.AddField(
1227 model_name='planetstackprivilege',
1228 name='user',
1229 field=models.ForeignKey(related_name=b'planetstackprivileges', to=settings.AUTH_USER_MODEL),
1230 preserve_default=True,
1231 ),
1232 migrations.AddField(
1233 model_name='node',
Tony Mack94c40eb2015-01-21 12:29:35 -05001234 name='site',
1235 field=models.ForeignKey(related_name=b'nodes', blank=True, to='core.Site', null=True),
1236 preserve_default=True,
1237 ),
1238 migrations.AddField(
1239 model_name='node',
Tony Macka8242c72014-12-25 19:17:54 -05001240 name='site_deployment',
Tony Mack3066a952015-01-05 22:48:11 -05001241 field=models.ForeignKey(related_name=b'nodes', to='core.SiteDeployment'),
Tony Macka8242c72014-12-25 19:17:54 -05001242 preserve_default=True,
1243 ),
1244 migrations.AddField(
1245 model_name='networksliver',
1246 name='sliver',
1247 field=models.ForeignKey(related_name=b'networkslivers', to='core.Sliver'),
1248 preserve_default=True,
1249 ),
1250 migrations.AddField(
1251 model_name='networkslice',
1252 name='slice',
1253 field=models.ForeignKey(related_name=b'networkslices', to='core.Slice'),
1254 preserve_default=True,
1255 ),
1256 migrations.AddField(
1257 model_name='networkparameter',
1258 name='parameter',
1259 field=models.ForeignKey(related_name=b'networkparameters', to='core.NetworkParameterType', help_text=b'The type of the parameter'),
1260 preserve_default=True,
1261 ),
1262 migrations.AddField(
1263 model_name='network',
1264 name='owner',
1265 field=models.ForeignKey(related_name=b'ownedNetworks', to='core.Slice', help_text=b'Slice that owns control of this Network'),
1266 preserve_default=True,
1267 ),
1268 migrations.AddField(
1269 model_name='network',
Tony Mack3066a952015-01-05 22:48:11 -05001270 name='permitted_slices',
Tony Macka8242c72014-12-25 19:17:54 -05001271 field=models.ManyToManyField(related_name=b'availableNetworks', to='core.Slice', blank=True),
1272 preserve_default=True,
1273 ),
1274 migrations.AddField(
1275 model_name='network',
1276 name='slices',
1277 field=models.ManyToManyField(related_name=b'networks', through='core.NetworkSlice', to='core.Slice', blank=True),
1278 preserve_default=True,
1279 ),
1280 migrations.AddField(
1281 model_name='network',
1282 name='slivers',
1283 field=models.ManyToManyField(related_name=b'networks', through='core.NetworkSliver', to='core.Sliver', blank=True),
1284 preserve_default=True,
1285 ),
1286 migrations.AddField(
1287 model_name='network',
1288 name='template',
1289 field=models.ForeignKey(to='core.NetworkTemplate'),
1290 preserve_default=True,
1291 ),
1292 migrations.AddField(
1293 model_name='image',
1294 name='deployments',
1295 field=models.ManyToManyField(help_text=b'Select which images should be instantiated on this deployment', related_name=b'images', through='core.ImageDeployments', to='core.Deployment', blank=True),
1296 preserve_default=True,
1297 ),
1298 migrations.AddField(
1299 model_name='deploymentprivilege',
1300 name='role',
1301 field=models.ForeignKey(related_name=b'deploymentprivileges', to='core.DeploymentRole'),
1302 preserve_default=True,
1303 ),
1304 migrations.AddField(
1305 model_name='deploymentprivilege',
1306 name='user',
1307 field=models.ForeignKey(related_name=b'deploymentprivileges', to=settings.AUTH_USER_MODEL),
1308 preserve_default=True,
1309 ),
1310 migrations.AddField(
Tony Mack94c40eb2015-01-21 12:29:35 -05001311 model_name='controllersliceprivilege',
1312 name='slice_privilege',
1313 field=models.ForeignKey(related_name=b'controllersliceprivileges', to='core.SlicePrivilege'),
1314 preserve_default=True,
1315 ),
1316 migrations.AddField(
Tony Mack3066a952015-01-05 22:48:11 -05001317 model_name='controllerslice',
Tony Macka8242c72014-12-25 19:17:54 -05001318 name='slice',
Tony Mack94c40eb2015-01-21 12:29:35 -05001319 field=models.ForeignKey(related_name=b'controllerslices', to='core.Slice'),
1320 preserve_default=True,
1321 ),
1322 migrations.AddField(
1323 model_name='controllersiteprivilege',
1324 name='site_privilege',
1325 field=models.ForeignKey(related_name=b'controllersiteprivileges', to='core.SitePrivilege'),
Tony Macka8242c72014-12-25 19:17:54 -05001326 preserve_default=True,
1327 ),
1328 migrations.AddField(
Tony Mack3066a952015-01-05 22:48:11 -05001329 model_name='controllersite',
1330 name='site',
1331 field=models.ForeignKey(related_name=b'controllersite', to='core.Site'),
Tony Macka8242c72014-12-25 19:17:54 -05001332 preserve_default=True,
1333 ),
1334 migrations.AddField(
Tony Mack3066a952015-01-05 22:48:11 -05001335 model_name='controllernetwork',
Tony Macka8242c72014-12-25 19:17:54 -05001336 name='network',
1337 field=models.ForeignKey(related_name=b'controllernetworks', to='core.Network'),
1338 preserve_default=True,
1339 ),
1340 migrations.AddField(
1341 model_name='controllerimages',
1342 name='image',
1343 field=models.ForeignKey(related_name=b'controllerimages', to='core.Image'),
1344 preserve_default=True,
1345 ),
1346 migrations.AddField(
1347 model_name='controllerdashboardview',
1348 name='dashboardView',
1349 field=models.ForeignKey(related_name=b'controllerdashboardviews', to='core.DashboardView'),
1350 preserve_default=True,
1351 ),
1352 migrations.AddField(
1353 model_name='charge',
1354 name='invoice',
1355 field=models.ForeignKey(related_name=b'charges', blank=True, to='core.Invoice', null=True),
1356 preserve_default=True,
1357 ),
1358 migrations.AddField(
1359 model_name='charge',
1360 name='object',
1361 field=models.ForeignKey(to='core.UsableObject'),
1362 preserve_default=True,
1363 ),
1364 migrations.AddField(
1365 model_name='charge',
1366 name='slice',
1367 field=models.ForeignKey(related_name=b'charges', blank=True, to='core.Slice', null=True),
1368 preserve_default=True,
1369 ),
1370 migrations.AddField(
1371 model_name='account',
1372 name='site',
1373 field=models.ForeignKey(related_name=b'accounts', to='core.Site', help_text=b'Site for this account'),
1374 preserve_default=True,
1375 ),
1376 migrations.AddField(
1377 model_name='user',
1378 name='dashboards',
1379 field=models.ManyToManyField(to='core.DashboardView', through='core.UserDashboardView', blank=True),
1380 preserve_default=True,
1381 ),
1382 migrations.AddField(
1383 model_name='user',
1384 name='site',
1385 field=models.ForeignKey(related_name=b'users', to='core.Site', help_text=b'Site this user will be homed too', null=True),
1386 preserve_default=True,
1387 ),
1388 ]