class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Profile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('photo', models.FileField( blank=True, null=True, upload_to=common.models.user_directory_path)), ('bio', models.TextField(blank=True, max_length=500, null=True)), ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], options={ 'verbose_name_plural': 'User Profiles', }, ), ]
class Migration(migrations.Migration): dependencies = [ ('common', '0002_auto_20190128_1237'), ] operations = [ migrations.CreateModel( name='Document', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(blank=True, max_length=1000, null=True)), ('document_file', models.FileField(max_length=5000, upload_to=common.models.document_path)), ('created_on', models.DateTimeField(auto_now_add=True)), ('created_by', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='document_uploaded', to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): dependencies = [ ('common', '0004_auto_20191022_1153'), ] operations = [ migrations.AlterField( model_name='uploadfile', name='file', field=models.FileField(max_length=10000, storage=common.models.OverwriteStorage(), upload_to=''), ), ]
class Migration(migrations.Migration): dependencies = [ ('common', '0002_file'), ] operations = [ migrations.AlterField( model_name='file', name='file_data', field=models.FileField(upload_to=common.models.get_file_path), ), ]
class Migration(migrations.Migration): dependencies = [ ('common', '0003_user_role'), ] operations = [ migrations.AddField( model_name='user', name='profile_pic', field=models.FileField(blank=True, max_length=1000, null=True, upload_to=common.models.img_url), ), ]
class Migration(migrations.Migration): dependencies = [ ('common', '0009_auto_20180402_0339'), ] operations = [ migrations.AlterField( model_name='shareduploadedfile', name='file', field=models.FileField( storage=django.core.files.storage.FileSystemStorage( location=b'mayan/media/shared_files'), upload_to=common.models.upload_to, verbose_name='File'), ), ]
class Migration(migrations.Migration): dependencies = [ ("common", "0002_auto_20190128_1237"), ] operations = [ migrations.CreateModel( name="Document", fields=[ ( "id", models.AutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID", ), ), ("title", models.CharField(blank=True, max_length=1000, null=True)), ( "document_file", models.FileField(max_length=5000, upload_to=common.models.document_path), ), ("created_on", models.DateTimeField(auto_now_add=True)), ( "created_by", models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name="document_uploaded", to=settings.AUTH_USER_MODEL, ), ), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('accounts', '0001_initial'), ('cases', '0001_initial'), ] operations = [ migrations.CreateModel( name='User', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField( default=False, help_text= 'Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('username', models.CharField(max_length=100, unique=True)), ('first_name', models.CharField(blank=True, max_length=150)), ('last_name', models.CharField(blank=True, max_length=150)), ('email', models.EmailField(max_length=255, unique=True)), ('is_active', models.BooleanField(default=True)), ('is_admin', models.BooleanField(default=False)), ('is_staff', models.BooleanField(default=False)), ('date_joined', models.DateTimeField(auto_now_add=True, verbose_name='date joined')), ('role', models.CharField(choices=[('ADMIN', 'ADMIN'), ('USER', 'USER'), ('SALES', 'SALES'), ('MANAGER', 'MANAGER'), ('SALES MANAGER', 'SALES MANAGER')], max_length=50)), ('profile_pic', models.FileField(blank=True, max_length=1000, null=True, upload_to=common.models.img_url)), ('has_sales_access', models.BooleanField(default=False)), ('has_marketing_access', models.BooleanField(default=False)), ], options={ 'ordering': ['-is_active'], }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Address', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('address_line', models.CharField(blank=True, max_length=255, null=True, verbose_name='Address')), ('street', models.CharField(blank=True, max_length=55, null=True, verbose_name='Street')), ('city', models.CharField(blank=True, max_length=255, null=True, verbose_name='City')), ('state', models.CharField(blank=True, max_length=255, null=True, verbose_name='State')), ('postcode', models.CharField(blank=True, max_length=64, null=True, verbose_name='Post/Zip-code')), ('country', models.CharField( blank=True, choices=[('GB', 'United Kingdom'), ('AF', 'Afghanistan'), ('AX', 'Aland Islands'), ('AL', 'Albania'), ('DZ', 'Algeria'), ('AS', 'American Samoa'), ('AD', 'Andorra'), ('AO', 'Angola'), ('AI', 'Anguilla'), ('AQ', 'Antarctica'), ('AG', 'Antigua and Barbuda'), ('AR', 'Argentina'), ('AM', 'Armenia'), ('AW', 'Aruba'), ('AU', 'Australia'), ('AT', 'Austria'), ('AZ', 'Azerbaijan'), ('BS', 'Bahamas'), ('BH', 'Bahrain'), ('BD', 'Bangladesh'), ('BB', 'Barbados'), ('BY', 'Belarus'), ('BE', 'Belgium'), ('BZ', 'Belize'), ('BJ', 'Benin'), ('BM', 'Bermuda'), ('BT', 'Bhutan'), ('BO', 'Bolivia'), ('BA', 'Bosnia and Herzegovina'), ('BW', 'Botswana'), ('BV', 'Bouvet Island'), ('BR', 'Brazil'), ('IO', 'British Indian Ocean Territory'), ('BN', 'Brunei Darussalam'), ('BG', 'Bulgaria'), ('BF', 'Burkina Faso'), ('BI', 'Burundi'), ('KH', 'Cambodia'), ('CM', 'Cameroon'), ('CA', 'Canada'), ('CV', 'Cape Verde'), ('KY', 'Cayman Islands'), ('CF', 'Central African Republic'), ('TD', 'Chad'), ('CL', 'Chile'), ('CN', 'China'), ('CX', 'Christmas Island'), ('CC', 'Cocos (Keeling) Islands'), ('CO', 'Colombia'), ('KM', 'Comoros'), ('CG', 'Congo'), ('CD', 'Congo, The Democratic Republic of the'), ('CK', 'Cook Islands'), ('CR', 'Costa Rica'), ('CI', "Cote d'Ivoire"), ('HR', 'Croatia'), ('CU', 'Cuba'), ('CY', 'Cyprus'), ('CZ', 'Czech Republic'), ('DK', 'Denmark'), ('DJ', 'Djibouti'), ('DM', 'Dominica'), ('DO', 'Dominican Republic'), ('EC', 'Ecuador'), ('EG', 'Egypt'), ('SV', 'El Salvador'), ('GQ', 'Equatorial Guinea'), ('ER', 'Eritrea'), ('EE', 'Estonia'), ('ET', 'Ethiopia'), ('FK', 'Falkland Islands (Malvinas)'), ('FO', 'Faroe Islands'), ('FJ', 'Fiji'), ('FI', 'Finland'), ('FR', 'France'), ('GF', 'French Guiana'), ('PF', 'French Polynesia'), ('TF', 'French Southern Territories'), ('GA', 'Gabon'), ('GM', 'Gambia'), ('GE', 'Georgia'), ('DE', 'Germany'), ('GH', 'Ghana'), ('GI', 'Gibraltar'), ('GR', 'Greece'), ('GL', 'Greenland'), ('GD', 'Grenada'), ('GP', 'Guadeloupe'), ('GU', 'Guam'), ('GT', 'Guatemala'), ('GG', 'Guernsey'), ('GN', 'Guinea'), ('GW', 'Guinea-Bissau'), ('GY', 'Guyana'), ('HT', 'Haiti'), ('HM', 'Heard Island and McDonald Islands'), ('VA', 'Holy See (Vatican City State)'), ('HN', 'Honduras'), ('HK', 'Hong Kong'), ('HU', 'Hungary'), ('IS', 'Iceland'), ('IN', 'India'), ('ID', 'Indonesia'), ('IR', 'Iran, Islamic Republic of'), ('IQ', 'Iraq'), ('IE', 'Ireland'), ('IM', 'Isle of Man'), ('IL', 'Israel'), ('IT', 'Italy'), ('JM', 'Jamaica'), ('JP', 'Japan'), ('JE', 'Jersey'), ('JO', 'Jordan'), ('KZ', 'Kazakhstan'), ('KE', 'Kenya'), ('KI', 'Kiribati'), ('KP', "Korea, Democratic People's Republic of"), ('KR', 'Korea, Republic of'), ('KW', 'Kuwait'), ('KG', 'Kyrgyzstan'), ('LA', "Lao People's Democratic Republic"), ('LV', 'Latvia'), ('LB', 'Lebanon'), ('LS', 'Lesotho'), ('LR', 'Liberia'), ('LY', 'Libyan Arab Jamahiriya'), ('LI', 'Liechtenstein'), ('LT', 'Lithuania'), ('LU', 'Luxembourg'), ('MO', 'Macao'), ('MK', 'Macedonia, The Former Yugoslav Republic of'), ('MG', 'Madagascar'), ('MW', 'Malawi'), ('MY', 'Malaysia'), ('MV', 'Maldives'), ('ML', 'Mali'), ('MT', 'Malta'), ('MH', 'Marshall Islands'), ('MQ', 'Martinique'), ('MR', 'Mauritania'), ('MU', 'Mauritius'), ('YT', 'Mayotte'), ('MX', 'Mexico'), ('FM', 'Micronesia, Federated States of'), ('MD', 'Moldova'), ('MC', 'Monaco'), ('MN', 'Mongolia'), ('ME', 'Montenegro'), ('MS', 'Montserrat'), ('MA', 'Morocco'), ('MZ', 'Mozambique'), ('MM', 'Myanmar'), ('NA', 'Namibia'), ('NR', 'Nauru'), ('NP', 'Nepal'), ('NL', 'Netherlands'), ('AN', 'Netherlands Antilles'), ('NC', 'New Caledonia'), ('NZ', 'New Zealand'), ('NI', 'Nicaragua'), ('NE', 'Niger'), ('NG', 'Nigeria'), ('NU', 'Niue'), ('NF', 'Norfolk Island'), ('MP', 'Northern Mariana Islands'), ('NO', 'Norway'), ('OM', 'Oman'), ('PK', 'Pakistan'), ('PW', 'Palau'), ('PS', 'Palestinian Territory, Occupied'), ('PA', 'Panama'), ('PG', 'Papua New Guinea'), ('PY', 'Paraguay'), ('PE', 'Peru'), ('PH', 'Philippines'), ('PN', 'Pitcairn'), ('PL', 'Poland'), ('PT', 'Portugal'), ('PR', 'Puerto Rico'), ('QA', 'Qatar'), ('RE', 'Reunion'), ('RO', 'Romania'), ('RU', 'Russian Federation'), ('RW', 'Rwanda'), ('BL', 'Saint Barthelemy'), ('SH', 'Saint Helena'), ('KN', 'Saint Kitts and Nevis'), ('LC', 'Saint Lucia'), ('MF', 'Saint Martin'), ('PM', 'Saint Pierre and Miquelon'), ('VC', 'Saint Vincent and the Grenadines'), ('WS', 'Samoa'), ('SM', 'San Marino'), ('ST', 'Sao Tome and Principe'), ('SA', 'Saudi Arabia'), ('SN', 'Senegal'), ('RS', 'Serbia'), ('SC', 'Seychelles'), ('SL', 'Sierra Leone'), ('SG', 'Singapore'), ('SK', 'Slovakia'), ('SI', 'Slovenia'), ('SB', 'Solomon Islands'), ('SO', 'Somalia'), ('ZA', 'South Africa'), ('GS', 'South Georgia and the South Sandwich Islands'), ('ES', 'Spain'), ('LK', 'Sri Lanka'), ('SD', 'Sudan'), ('SR', 'Suriname'), ('SJ', 'Svalbard and Jan Mayen'), ('SZ', 'Swaziland'), ('SE', 'Sweden'), ('CH', 'Switzerland'), ('SY', 'Syrian Arab Republic'), ('TW', 'Taiwan, Province of China'), ('TJ', 'Tajikistan'), ('TZ', 'Tanzania, United Republic of'), ('TH', 'Thailand'), ('TL', 'Timor-Leste'), ('TG', 'Togo'), ('TK', 'Tokelau'), ('TO', 'Tonga'), ('TT', 'Trinidad and Tobago'), ('TN', 'Tunisia'), ('TR', 'Turkey'), ('TM', 'Turkmenistan'), ('TC', 'Turks and Caicos Islands'), ('TV', 'Tuvalu'), ('UG', 'Uganda'), ('UA', 'Ukraine'), ('AE', 'United Arab Emirates'), ('US', 'United States'), ('UM', 'United States Minor Outlying Islands'), ('UY', 'Uruguay'), ('UZ', 'Uzbekistan'), ('VU', 'Vanuatu'), ('VE', 'Venezuela'), ('VN', 'Viet Nam'), ('VG', 'Virgin Islands, British'), ('VI', 'Virgin Islands, U.S.'), ('WF', 'Wallis and Futuna'), ('EH', 'Western Sahara'), ('YE', 'Yemen'), ('ZM', 'Zambia'), ('ZW', 'Zimbabwe')], max_length=3, null=True)), ], ), migrations.CreateModel( name='APISettings', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=1000)), ('apikey', models.CharField(blank=True, max_length=16)), ('website', models.URLField(default='', max_length=255)), ('created_on', models.DateTimeField(auto_now_add=True)), ], options={ 'ordering': ('-created_on', ), }, ), migrations.CreateModel( name='Attachments', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('file_name', models.CharField(max_length=60)), ('created_on', models.DateTimeField(auto_now_add=True, verbose_name='Created on')), ('attachment', models.FileField(max_length=1001, upload_to='attachments/%Y/%m/')), ], ), migrations.CreateModel( name='Comment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('comment', models.CharField(max_length=255)), ('commented_on', models.DateTimeField(auto_now_add=True)), ('account', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='accounts_comments', to='accounts.Account')), ('case', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='cases', to='cases.Case')), ('commented_by', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Profile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('activation_key', models.CharField(max_length=50)), ('key_expires', models.DateTimeField()), ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, related_name='profile', to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Google', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('google_id', models.CharField(default='', max_length=200)), ('google_url', models.CharField(default='', max_length=1000)), ('verified_email', models.CharField(default='', max_length=200)), ('family_name', models.CharField(default='', max_length=200)), ('name', models.CharField(default='', max_length=200)), ('gender', models.CharField(default='', max_length=10)), ('dob', models.CharField(default='', max_length=50)), ('given_name', models.CharField(default='', max_length=200)), ('email', models.CharField(db_index=True, default='', max_length=200)), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='google', to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Document', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(blank=True, max_length=1000, null=True)), ('document_file', models.FileField(max_length=5000, upload_to=common.models.document_path)), ('created_on', models.DateTimeField(auto_now_add=True)), ('status', models.CharField(choices=[('active', 'active'), ('inactive', 'inactive')], default='active', max_length=64)), ('created_by', models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='document_uploaded', to=settings.AUTH_USER_MODEL)), ('shared_to', models.ManyToManyField(related_name='document_shared_to', to=settings.AUTH_USER_MODEL)), ], options={ 'ordering': ('-created_on', ), }, ), migrations.CreateModel( name='Comment_Files', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('updated_on', models.DateTimeField(auto_now_add=True)), ('comment_file', models.FileField(default='', upload_to='comment_files', verbose_name='File')), ('comment', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='common.Comment')), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='BroadcastAsset', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', models.DateTimeField(auto_now_add=True, verbose_name='created')), ('modified', models.DateTimeField(auto_now=True, verbose_name='last modified')), ('title', common.models.TruncatingCharField( blank=True, db_index=True, help_text= "If left empty, a title will be generated from the file's metadata.", max_length=255, verbose_name='title')), ('file_basename', models.CharField(max_length=512)), ('file', models.FileField( blank=True, help_text= 'You can provide either an uploaded audio file or a URL to an external asset.', max_length=512, upload_to=common.models.audio_asset_file_upload_to, verbose_name='audio file')), ('duration', models.DurationField(default=datetime.timedelta(0), verbose_name='Audio duration')), ('fingerprint', models.UUIDField(db_index=True, null=True)), ('status', models.CharField( choices=[('-', 'processing queued'), ('p', 'processing'), ('f', 'processing failed'), ('r', 'ready for play')], db_index=True, default='-', help_text= 'You will be able to edit this asset when status is "ready for play."', max_length=1, verbose_name='status')), ('task_id', models.UUIDField(null=True)), ('uploader', models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL, verbose_name='uploader')), ], options={ 'verbose_name': 'scheduled broadcast asset', 'verbose_name_plural': 'scheduled broadcast assets', 'ordering': ('title', 'id'), }, bases=(dirtyfields.dirtyfields.DirtyFieldsMixin, models.Model), ), migrations.CreateModel( name='Broadcast', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', models.DateTimeField(auto_now_add=True, verbose_name='created')), ('modified', models.DateTimeField(auto_now=True, verbose_name='last modified')), ('scheduled_time', models.DateTimeField()), ('status', models.CharField(choices=[('-', 'to be queued'), ('q', 'queued for play'), ('p', 'played'), ('f', 'failed to play')], default='-', max_length=1)), ('task_id', models.UUIDField(null=True)), ('asset', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='broadcasts', to='broadcast.broadcastasset', verbose_name='broadcast asset')), ('creator', models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL, verbose_name='creator')), ], options={ 'verbose_name': 'scheduled broadcast', 'verbose_name_plural': 'scheduled broadcasts', 'ordering': ('-scheduled_time', ), }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ("accounts", "0001_initial"), ("cases", "0001_initial"), ] operations = [ migrations.CreateModel( name="User", fields=[ ( "id", models.AutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID", ), ), ("password", models.CharField(max_length=128, verbose_name="password")), ( "last_login", models.DateTimeField(blank=True, null=True, verbose_name="last login"), ), ( "is_superuser", models.BooleanField( default=False, help_text= "Designates that this user has all permissions without explicitly assigning them.", verbose_name="superuser status", ), ), ("username", models.CharField(max_length=100, unique=True)), ("first_name", models.CharField(blank=True, max_length=150)), ("last_name", models.CharField(blank=True, max_length=150)), ("email", models.EmailField(max_length=255, unique=True)), ("is_active", models.BooleanField(default=True)), ("is_admin", models.BooleanField(default=False)), ("is_staff", models.BooleanField(default=False)), ( "date_joined", models.DateTimeField(auto_now_add=True, verbose_name="date joined"), ), ( "role", models.CharField(choices=[("ADMIN", "ADMIN"), ("USER", "USER")], max_length=50), ), ( "profile_pic", models.FileField( blank=True, max_length=1000, null=True, upload_to=common.models.img_url, ), ), ], options={ "abstract": False, }, managers=[ ("objects", django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name="Address", fields=[ ( "id", models.AutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID", ), ), ( "address_line", models.CharField(blank=True, max_length=255, null=True, verbose_name="Address"), ), ( "street", models.CharField(blank=True, max_length=55, null=True, verbose_name="Street"), ), ( "city", models.CharField(blank=True, max_length=255, null=True, verbose_name="City"), ), ( "state", models.CharField(blank=True, max_length=255, null=True, verbose_name="State"), ), ( "postcode", models.CharField( blank=True, max_length=64, null=True, verbose_name="Post/Zip-code", ), ), ( "country", models.CharField( blank=True, choices=[ ("GB", "United Kingdom"), ("AF", "Afghanistan"), ("AX", "Aland Islands"), ("AL", "Albania"), ("DZ", "Algeria"), ("AS", "American Samoa"), ("AD", "Andorra"), ("AO", "Angola"), ("AI", "Anguilla"), ("AQ", "Antarctica"), ("AG", "Antigua and Barbuda"), ("AR", "Argentina"), ("AM", "Armenia"), ("AW", "Aruba"), ("AU", "Australia"), ("AT", "Austria"), ("AZ", "Azerbaijan"), ("BS", "Bahamas"), ("BH", "Bahrain"), ("BD", "Bangladesh"), ("BB", "Barbados"), ("BY", "Belarus"), ("BE", "Belgium"), ("BZ", "Belize"), ("BJ", "Benin"), ("BM", "Bermuda"), ("BT", "Bhutan"), ("BO", "Bolivia"), ("BA", "Bosnia and Herzegovina"), ("BW", "Botswana"), ("BV", "Bouvet Island"), ("BR", "Brazil"), ("IO", "British Indian Ocean Territory"), ("BN", "Brunei Darussalam"), ("BG", "Bulgaria"), ("BF", "Burkina Faso"), ("BI", "Burundi"), ("KH", "Cambodia"), ("CM", "Cameroon"), ("CA", "Canada"), ("CV", "Cape Verde"), ("KY", "Cayman Islands"), ("CF", "Central African Republic"), ("TD", "Chad"), ("CL", "Chile"), ("CN", "China"), ("CX", "Christmas Island"), ("CC", "Cocos (Keeling) Islands"), ("CO", "Colombia"), ("KM", "Comoros"), ("CG", "Congo"), ("CD", "Congo, The Democratic Republic of the"), ("CK", "Cook Islands"), ("CR", "Costa Rica"), ("CI", "Cote d'Ivoire"), ("HR", "Croatia"), ("CU", "Cuba"), ("CY", "Cyprus"), ("CZ", "Czech Republic"), ("DK", "Denmark"), ("DJ", "Djibouti"), ("DM", "Dominica"), ("DO", "Dominican Republic"), ("EC", "Ecuador"), ("EG", "Egypt"), ("SV", "El Salvador"), ("GQ", "Equatorial Guinea"), ("ER", "Eritrea"), ("EE", "Estonia"), ("ET", "Ethiopia"), ("FK", "Falkland Islands (Malvinas)"), ("FO", "Faroe Islands"), ("FJ", "Fiji"), ("FI", "Finland"), ("FR", "France"), ("GF", "French Guiana"), ("PF", "French Polynesia"), ("TF", "French Southern Territories"), ("GA", "Gabon"), ("GM", "Gambia"), ("GE", "Georgia"), ("DE", "Germany"), ("GH", "Ghana"), ("GI", "Gibraltar"), ("GR", "Greece"), ("GL", "Greenland"), ("GD", "Grenada"), ("GP", "Guadeloupe"), ("GU", "Guam"), ("GT", "Guatemala"), ("GG", "Guernsey"), ("GN", "Guinea"), ("GW", "Guinea-Bissau"), ("GY", "Guyana"), ("HT", "Haiti"), ("HM", "Heard Island and McDonald Islands"), ("VA", "Holy See (Vatican City State)"), ("HN", "Honduras"), ("HK", "Hong Kong"), ("HU", "Hungary"), ("IS", "Iceland"), ("IN", "India"), ("ID", "Indonesia"), ("IR", "Iran, Islamic Republic of"), ("IQ", "Iraq"), ("IE", "Ireland"), ("IM", "Isle of Man"), ("IL", "Israel"), ("IT", "Italy"), ("JM", "Jamaica"), ("JP", "Japan"), ("JE", "Jersey"), ("JO", "Jordan"), ("KZ", "Kazakhstan"), ("KE", "Kenya"), ("KI", "Kiribati"), ("KP", "Korea, Democratic People's Republic of"), ("KR", "Korea, Republic of"), ("KW", "Kuwait"), ("KG", "Kyrgyzstan"), ("LA", "Lao People's Democratic Republic"), ("LV", "Latvia"), ("LB", "Lebanon"), ("LS", "Lesotho"), ("LR", "Liberia"), ("LY", "Libyan Arab Jamahiriya"), ("LI", "Liechtenstein"), ("LT", "Lithuania"), ("LU", "Luxembourg"), ("MO", "Macao"), ("MK", "Macedonia, The Former Yugoslav Republic of"), ("MG", "Madagascar"), ("MW", "Malawi"), ("MY", "Malaysia"), ("MV", "Maldives"), ("ML", "Mali"), ("MT", "Malta"), ("MH", "Marshall Islands"), ("MQ", "Martinique"), ("MR", "Mauritania"), ("MU", "Mauritius"), ("YT", "Mayotte"), ("MX", "Mexico"), ("FM", "Micronesia, Federated States of"), ("MD", "Moldova"), ("MC", "Monaco"), ("MN", "Mongolia"), ("ME", "Montenegro"), ("MS", "Montserrat"), ("MA", "Morocco"), ("MZ", "Mozambique"), ("MM", "Myanmar"), ("NA", "Namibia"), ("NR", "Nauru"), ("NP", "Nepal"), ("NL", "Netherlands"), ("AN", "Netherlands Antilles"), ("NC", "New Caledonia"), ("NZ", "New Zealand"), ("NI", "Nicaragua"), ("NE", "Niger"), ("NG", "Nigeria"), ("NU", "Niue"), ("NF", "Norfolk Island"), ("MP", "Northern Mariana Islands"), ("NO", "Norway"), ("OM", "Oman"), ("PK", "Pakistan"), ("PW", "Palau"), ("PS", "Palestinian Territory, Occupied"), ("PA", "Panama"), ("PG", "Papua New Guinea"), ("PY", "Paraguay"), ("PE", "Peru"), ("PH", "Philippines"), ("PN", "Pitcairn"), ("PL", "Poland"), ("PT", "Portugal"), ("PR", "Puerto Rico"), ("QA", "Qatar"), ("RE", "Reunion"), ("RO", "Romania"), ("RU", "Russian Federation"), ("RW", "Rwanda"), ("BL", "Saint Barthelemy"), ("SH", "Saint Helena"), ("KN", "Saint Kitts and Nevis"), ("LC", "Saint Lucia"), ("MF", "Saint Martin"), ("PM", "Saint Pierre and Miquelon"), ("VC", "Saint Vincent and the Grenadines"), ("WS", "Samoa"), ("SM", "San Marino"), ("ST", "Sao Tome and Principe"), ("SA", "Saudi Arabia"), ("SN", "Senegal"), ("RS", "Serbia"), ("SC", "Seychelles"), ("SL", "Sierra Leone"), ("SG", "Singapore"), ("SK", "Slovakia"), ("SI", "Slovenia"), ("SB", "Solomon Islands"), ("SO", "Somalia"), ("ZA", "South Africa"), ("GS", "South Georgia and the South Sandwich Islands"), ("ES", "Spain"), ("LK", "Sri Lanka"), ("SD", "Sudan"), ("SR", "Suriname"), ("SJ", "Svalbard and Jan Mayen"), ("SZ", "Swaziland"), ("SE", "Sweden"), ("CH", "Switzerland"), ("SY", "Syrian Arab Republic"), ("TW", "Taiwan, Province of China"), ("TJ", "Tajikistan"), ("TZ", "Tanzania, United Republic of"), ("TH", "Thailand"), ("TL", "Timor-Leste"), ("TG", "Togo"), ("TK", "Tokelau"), ("TO", "Tonga"), ("TT", "Trinidad and Tobago"), ("TN", "Tunisia"), ("TR", "Turkey"), ("TM", "Turkmenistan"), ("TC", "Turks and Caicos Islands"), ("TV", "Tuvalu"), ("UG", "Uganda"), ("UA", "Ukraine"), ("AE", "United Arab Emirates"), ("US", "United States"), ("UM", "United States Minor Outlying Islands"), ("UY", "Uruguay"), ("UZ", "Uzbekistan"), ("VU", "Vanuatu"), ("VE", "Venezuela"), ("VN", "Viet Nam"), ("VG", "Virgin Islands, British"), ("VI", "Virgin Islands, U.S."), ("WF", "Wallis and Futuna"), ("EH", "Western Sahara"), ("YE", "Yemen"), ("ZM", "Zambia"), ("ZW", "Zimbabwe"), ], max_length=3, null=True, ), ), ], ), migrations.CreateModel( name="Attachments", fields=[ ( "id", models.AutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID", ), ), ("file_name", models.CharField(max_length=60)), ( "created_on", models.DateTimeField(auto_now_add=True, verbose_name="Created on"), ), ( "attachment", models.FileField(max_length=1001, upload_to="attachments/%Y/%m/"), ), ], ), migrations.CreateModel( name="Comment", fields=[ ( "id", models.AutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID", ), ), ("comment", models.CharField(max_length=255)), ("commented_on", models.DateTimeField(auto_now_add=True)), ( "account", models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name="accounts_comments", to="accounts.Account", ), ), ( "case", models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, related_name="cases", to="cases.Case", ), ), ( "commented_by", models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, ), ), ], ), migrations.CreateModel( name="Comment_Files", fields=[ ( "id", models.AutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID", ), ), ("updated_on", models.DateTimeField(auto_now_add=True)), ( "comment_file", models.FileField(default="", upload_to="comment_files", verbose_name="File"), ), ( "comment", models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to="common.Comment"), ), ], ), migrations.CreateModel( name="Team", fields=[ ( "id", models.AutoField( auto_created=True, primary_key=True, serialize=False, verbose_name="ID", ), ), ("name", models.CharField(max_length=55)), ("members", models.ManyToManyField(to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='AudioAsset', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', models.DateTimeField(auto_now_add=True, verbose_name='created')), ('modified', models.DateTimeField(auto_now=True, verbose_name='last modified')), ('title', common.models.TruncatingCharField( blank=True, db_index=True, help_text= "If left empty, a title will be generated from the file's metadata.", max_length=255, verbose_name='title')), ('file_basename', models.CharField(max_length=512)), ('file', models.FileField( blank=True, help_text= 'You can provide either an uploaded audio file or a URL to an external asset.', max_length=512, upload_to=common.models.audio_asset_file_upload_to, verbose_name='audio file')), ('duration', models.DurationField(default=datetime.timedelta(0), verbose_name='Audio duration')), ('fingerprint', models.UUIDField(db_index=True, null=True)), ('status', models.CharField( choices=[('-', 'processing queued'), ('p', 'processing'), ('f', 'processing failed'), ('r', 'ready for play')], db_index=True, default='-', help_text= 'You will be able to edit this asset when status is "ready for play."', max_length=1, verbose_name='status')), ('task_id', models.UUIDField(null=True)), ('artist', common.models.TruncatingCharField( blank=True, help_text= "If left empty, an artist will be generated from the file's metadata.", max_length=255, verbose_name='artist')), ('album', common.models.TruncatingCharField( blank=True, help_text= "If left empty, an album will be generated from the file's metadata.", max_length=255, verbose_name='album')), ('title_normalized', common.models.TruncatingCharField(db_index=True, max_length=255)), ('artist_normalized', common.models.TruncatingCharField(db_index=True, max_length=255)), ('album_normalized', common.models.TruncatingCharField(db_index=True, max_length=255)), ('uploader', models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL, verbose_name='uploader')), ], options={ 'verbose_name': 'audio asset', 'verbose_name_plural': 'audio assets', 'ordering': ('title', 'artist', 'album', 'id'), }, bases=(dirtyfields.dirtyfields.DirtyFieldsMixin, models.Model), ), migrations.CreateModel( name='Rotator', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=100, unique=True, verbose_name='name')), ], options={ 'ordering': ('name', ), }, ), migrations.CreateModel( name='Stopset', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=100, unique=True, verbose_name='name')), ('weight', models.FloatField( default=1.0, help_text= "The weight (ie selection bias) for how likely random selection from this playlist/stopset occurs, eg '1.0' is just as likely as all others, '2.0' is 2x as likely, '3.0' is 3x as likely, '0.5' half as likely, and so on. If unsure, leave as '1.0'.", validators=[ django.core.validators.MinValueValidator(0.0) ], verbose_name='random weight')), ('is_active', models.BooleanField( default=True, help_text= 'Whether tracks from this playlist/stopset will be selected. You may want to enable special playlists/stopsets at certain times, for example during the holidays.', verbose_name='currently active')), ], options={ 'ordering': ('name', ), 'abstract': False, }, ), migrations.CreateModel( name='StopsetRotator', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('rotator', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='stopset_rotators', to='autodj.rotator')), ('stopset', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='stopset_rotators', to='autodj.stopset')), ], options={ 'verbose_name': 'rotator in stop set relationship', 'verbose_name_plural': 'rotator in stop set relationships', 'ordering': ('id', ), }, ), migrations.CreateModel( name='RotatorAsset', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created', models.DateTimeField(auto_now_add=True, verbose_name='created')), ('modified', models.DateTimeField(auto_now=True, verbose_name='last modified')), ('title', common.models.TruncatingCharField( blank=True, db_index=True, help_text= "If left empty, a title will be generated from the file's metadata.", max_length=255, verbose_name='title')), ('file_basename', models.CharField(max_length=512)), ('file', models.FileField( blank=True, help_text= 'You can provide either an uploaded audio file or a URL to an external asset.', max_length=512, upload_to=common.models.audio_asset_file_upload_to, verbose_name='audio file')), ('duration', models.DurationField(default=datetime.timedelta(0), verbose_name='Audio duration')), ('fingerprint', models.UUIDField(db_index=True, null=True)), ('status', models.CharField( choices=[('-', 'processing queued'), ('p', 'processing'), ('f', 'processing failed'), ('r', 'ready for play')], db_index=True, default='-', help_text= 'You will be able to edit this asset when status is "ready for play."', max_length=1, verbose_name='status')), ('task_id', models.UUIDField(null=True)), ('uploader', models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL, verbose_name='uploader')), ], options={ 'verbose_name': 'rotator asset', 'verbose_name_plural': 'rotator assets', 'ordering': ('title', 'id'), }, bases=(dirtyfields.dirtyfields.DirtyFieldsMixin, models.Model), ), migrations.AddField( model_name='rotator', name='rotator_assets', field=models.ManyToManyField(blank=True, db_index=True, related_name='rotators', to='autodj.RotatorAsset', verbose_name='rotator assets'), ), migrations.CreateModel( name='Playlist', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=100, unique=True, verbose_name='name')), ('weight', models.FloatField( default=1.0, help_text= "The weight (ie selection bias) for how likely random selection from this playlist/stopset occurs, eg '1.0' is just as likely as all others, '2.0' is 2x as likely, '3.0' is 3x as likely, '0.5' half as likely, and so on. If unsure, leave as '1.0'.", validators=[ django.core.validators.MinValueValidator(0.0) ], verbose_name='random weight')), ('is_active', models.BooleanField( default=True, help_text= 'Whether tracks from this playlist/stopset will be selected. You may want to enable special playlists/stopsets at certain times, for example during the holidays.', verbose_name='currently active')), ('audio_assets', models.ManyToManyField(blank=True, db_index=True, related_name='playlists', to='autodj.AudioAsset', verbose_name='audio assets')), ], options={ 'ordering': ('name', ), 'abstract': False, }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='City', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('create_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')), ('update_time', models.DateTimeField(auto_now=True, verbose_name='更新时间')), ('is_deleted', models.BooleanField(default=False, editable=False, verbose_name='是否已删除')), ('name', models.CharField(max_length=255, verbose_name='名称')), ('short_name', models.CharField(blank=True, max_length=255, verbose_name='简称')), ('lng', models.CharField(blank=True, max_length=255, verbose_name='经度')), ('lat', models.CharField(blank=True, max_length=255, verbose_name='纬度')), ('pinyin', models.CharField(blank=True, max_length=255, verbose_name='拼音')), ('zip_code', models.CharField(blank=True, max_length=255, verbose_name='邮编')), ('area_code', models.CharField(blank=True, max_length=255, verbose_name='区域编码')), ('merger_name', models.CharField(blank=True, max_length=255, verbose_name='合并名称')), ('city_code', models.CharField(blank=True, max_length=255, verbose_name='城市编码')), ], options={ 'verbose_name': '市', 'verbose_name_plural': '市', }, ), migrations.CreateModel( name='County', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('create_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')), ('update_time', models.DateTimeField(auto_now=True, verbose_name='更新时间')), ('is_deleted', models.BooleanField(default=False, editable=False, verbose_name='是否已删除')), ('name', models.CharField(blank=True, max_length=255, verbose_name='名称')), ('short_name', models.CharField(blank=True, max_length=255, verbose_name='简称')), ('lng', models.CharField(blank=True, max_length=255, verbose_name='经度')), ('lat', models.CharField(blank=True, max_length=255, verbose_name='纬度')), ('pinyin', models.CharField(blank=True, max_length=255, verbose_name='拼音')), ('zip_code', models.CharField(blank=True, max_length=255, verbose_name='邮编')), ('area_code', models.CharField(blank=True, max_length=255, verbose_name='区域编码')), ('merger_name', models.CharField(blank=True, max_length=255, verbose_name='合并名称')), ('city_code', models.CharField(blank=True, max_length=255, verbose_name='城市编码')), ('city', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, related_name='counties', to='common.City', verbose_name='市')), ], options={ 'verbose_name': '区县', 'verbose_name_plural': '区县', }, ), migrations.CreateModel( name='File', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('create_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')), ('update_time', models.DateTimeField(auto_now=True, verbose_name='更新时间')), ('is_deleted', models.BooleanField(default=False, editable=False, verbose_name='是否已删除')), ('file', models.FileField(upload_to=common.models.upload_path, verbose_name='文件')), ('category', models.CharField(max_length=100, verbose_name='文件类别')), ], options={ 'verbose_name': '文件上传', 'verbose_name_plural': '文件上传', }, ), migrations.CreateModel( name='Province', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('create_time', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')), ('update_time', models.DateTimeField(auto_now=True, verbose_name='更新时间')), ('is_deleted', models.BooleanField(default=False, editable=False, verbose_name='是否已删除')), ('name', models.CharField(max_length=255, verbose_name='名称')), ('short_name', models.CharField(blank=True, max_length=255, verbose_name='简称')), ('lng', models.CharField(blank=True, max_length=255, verbose_name='经度')), ('lat', models.CharField(blank=True, max_length=255, verbose_name='纬度')), ('pinyin', models.CharField(blank=True, max_length=255, verbose_name='拼音')), ('zip_code', models.CharField(blank=True, max_length=255, verbose_name='邮编')), ('area_code', models.CharField(blank=True, max_length=255, verbose_name='区域编码')), ('merger_name', models.CharField(blank=True, max_length=255, verbose_name='合并名称')), ('city_code', models.CharField(blank=True, max_length=255, verbose_name='城市编码')), ], options={ 'verbose_name': '省', 'verbose_name_plural': '省', }, ), migrations.AddField( model_name='city', name='province', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name='cities', to='common.Province', verbose_name='省'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='User', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('password', models.CharField(max_length=128, verbose_name='password')), ('last_login', models.DateTimeField(blank=True, null=True, verbose_name='last login')), ('is_superuser', models.BooleanField( default=False, help_text= 'Designates that this user has all permissions without explicitly assigning them.', verbose_name='superuser status')), ('username', models.CharField(max_length=100, unique=True)), ('first_name', models.CharField(blank=True, max_length=150)), ('last_name', models.CharField(blank=True, max_length=150)), ('email', models.EmailField(max_length=255, unique=True)), ('is_active', models.BooleanField(default=True)), ('is_admin', models.BooleanField(default=False)), ('is_staff', models.BooleanField(default=False)), ('date_joined', models.DateTimeField(auto_now_add=True, verbose_name='date joined')), ('role', models.CharField(choices=[('ADMIN', 'ADMIN'), ('CONSULTANT', 'CONSULTANT'), ('USER', 'USER')], max_length=50)), ('profile_pic', models.FileField(blank=True, max_length=1000, null=True, upload_to=common.models.img_url)), ('has_sales_access', models.BooleanField(default=False)), ('has_marketing_access', models.BooleanField(default=False)), ], options={ 'ordering': ['-is_active'], }, managers=[ ('objects', django.contrib.auth.models.UserManager()), ], ), migrations.CreateModel( name='Address', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('address_line', models.CharField(blank=True, max_length=255, null=True, verbose_name='Address')), ('street', models.CharField(blank=True, max_length=55, null=True, verbose_name='Street')), ('city', models.CharField(blank=True, max_length=255, null=True, verbose_name='City')), ('state', models.CharField(blank=True, max_length=255, null=True, verbose_name='State')), ('postcode', models.CharField(blank=True, max_length=64, null=True, verbose_name='Post/Zip-code')), ('country', models.CharField(blank=True, choices=[('Botswana', 'Botswana')], max_length=20, null=True)), ], ), migrations.CreateModel( name='APISettings', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(max_length=1000)), ('apikey', models.CharField(blank=True, max_length=16)), ('website', models.URLField(default='', max_length=255)), ('created_on', models.DateTimeField(auto_now_add=True)), ], options={ 'ordering': ('-created_on', ), }, ), migrations.CreateModel( name='Attachments', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('file_name', models.CharField(max_length=60)), ('created_on', models.DateTimeField(auto_now_add=True, verbose_name='Created on')), ('attachment', models.FileField(max_length=1001, upload_to='attachments/%Y/%m/')), ], ), migrations.CreateModel( name='Comment', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('comment', models.CharField(max_length=255)), ('commented_on', models.DateTimeField(auto_now_add=True)), ], ), migrations.CreateModel( name='Comment_Files', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('updated_on', models.DateTimeField(auto_now_add=True)), ('comment_file', models.FileField(default='', upload_to='comment_files', verbose_name='File')), ], ), migrations.CreateModel( name='Profile', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('activation_key', models.CharField(max_length=50)), ('key_expires', models.DateTimeField()), ('user', models.OneToOneField( on_delete=django.db.models.deletion.CASCADE, related_name='profile', to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Google', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('google_id', models.CharField(default='', max_length=200)), ('google_url', models.CharField(default='', max_length=1000)), ('verified_email', models.CharField(default='', max_length=200)), ('family_name', models.CharField(default='', max_length=200)), ('name', models.CharField(default='', max_length=200)), ('gender', models.CharField(default='', max_length=10)), ('dob', models.CharField(default='', max_length=50)), ('given_name', models.CharField(default='', max_length=200)), ('email', models.CharField(db_index=True, default='', max_length=200)), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='google', to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Document', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('title', models.CharField(blank=True, max_length=1000, null=True)), ('document_file', models.FileField(max_length=5000, upload_to=common.models.document_path)), ('created_on', models.DateTimeField(auto_now_add=True)), ('status', models.CharField(choices=[('active', 'active'), ('inactive', 'inactive')], default='active', max_length=64)), ('created_by', models.ForeignKey( null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='document_uploaded', to=settings.AUTH_USER_MODEL)), ('shared_to', models.ManyToManyField(related_name='document_shared_to', to=settings.AUTH_USER_MODEL)), ], options={ 'ordering': ('-created_on', ), }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='AssignedTask', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('assigned', models.DateTimeField()), ('deadline', models.DateTimeField()), ('max_points', models.IntegerField()), ], ), migrations.CreateModel( name='Task', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('name', models.CharField(max_length=60)), ('code', models.CharField(max_length=60)), ], ), migrations.CreateModel( name='Submit', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('submit_num', models.IntegerField()), ('source', models.FileField()), ('result', models.TextField(default='')), ('points', models.IntegerField(null=True)), ('max_points', models.IntegerField(null=True)), ('created_at', models.DateTimeField(auto_now_add=True)), ('assignment', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='common.AssignedTask')), ('student', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Class', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('code', models.CharField(max_length=5)), ('year', models.IntegerField()), ('winter', models.BooleanField()), ('day', models.CharField(max_length=5)), ('time', models.TimeField()), ('students', models.ManyToManyField(related_name='students', to=settings.AUTH_USER_MODEL)), ('tasks', models.ManyToManyField(through='common.AssignedTask', to='common.Task')), ('teacher', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.AddField( model_name='assignedtask', name='clazz', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='common.Class'), ), migrations.AddField( model_name='assignedtask', name='task', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, to='common.Task'), ), ]