0001_initial.py 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # -*- coding: utf-8 -*-
  2. # Generated by Django 1.11.6 on 2017-11-01 02:22
  3. from __future__ import unicode_literals
  4. from django.conf import settings
  5. from django.db import migrations, models
  6. import django.db.models.deletion
  7. class Migration(migrations.Migration):
  8. initial = True
  9. dependencies = [
  10. migrations.swappable_dependency(settings.AUTH_USER_MODEL),
  11. ]
  12. operations = [
  13. migrations.CreateModel(
  14. name='Quote',
  15. fields=[
  16. ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
  17. ('name', models.CharField(max_length=100)),
  18. ('position', models.CharField(blank=True, max_length=60)),
  19. ('company', models.CharField(blank=True, max_length=60)),
  20. ('address', models.CharField(blank=True, max_length=200)),
  21. ('phone', models.CharField(blank=True, max_length=30)),
  22. ('email', models.EmailField(max_length=254)),
  23. ('web', models.URLField(blank=True)),
  24. ('description', models.TextField()),
  25. ('sitestatus', models.CharField(choices=[('NEW', 'New Site'), ('EX', 'Existing Site')], max_length=20)),
  26. ('priority', models.CharField(choices=[('U', 'Urgent - 1 week or less'), ('N', 'Normal - 2 to 4 weeks'), ('L', 'Low - Still Researching')], max_length=40)),
  27. ('jobfile', models.FileField(blank=True, upload_to='uploads/')),
  28. ('submitted', models.DateField(auto_now_add=True)),
  29. ('quotedate', models.DateField(blank=True, null=True)),
  30. ('quoteprice', models.DecimalField(blank=True, decimal_places=2, default=0, max_digits=7)),
  31. ('username', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
  32. ],
  33. ),
  34. ]