class Migration(migrations.Migration):

    initial = True

    dependencies = [
    ]

    operations = [
        migrations.CreateModel(
            name='Clients',
            fields=[
                ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField(max_length=200, verbose_name='Nombre')),
                ('content', ckeditor.fields.RichTextField(verbose_name='Contenido')),
                ('image', models.ImageField(blank=True, null=True, upload_to=clients.models.custom_upload_to_portada, verbose_name='Portada')),
                ('order', models.SmallIntegerField(default=0, verbose_name='Orden')),
                ('created', models.DateTimeField(auto_now_add=True, verbose_name='Fecha de creación')),
                ('updated', models.DateTimeField(auto_now=True, verbose_name='Fecha de edición')),
            ],
            options={
                'verbose_name': 'cliente',
                'verbose_name_plural': 'clientes',
                'ordering': ['order', 'title'],
            },
        ),
    ]
Example #2
0
class Migration(migrations.Migration):

    dependencies = [
        ('clients', '0001_initial'),
    ]

    operations = [
        migrations.AlterField(
            model_name='projectinvoice',
            name='due_date',
            field=models.DateTimeField(verbose_name=datetime.datetime(
                2018, 8, 14, 14, 24, 13, 913279)),
        ),
        migrations.AlterField(
            model_name='projectinvoice',
            name='invoice_number',
            field=models.CharField(
                blank=True,
                default=clients.models.increment_invoice_number,
                max_length=500,
                null=True),
        ),
        migrations.AlterField(
            model_name='taxslab',
            name='tax_percent',
            field=models.CharField(default='5', max_length=100),
        ),
    ]
Example #3
0
class Migration(migrations.Migration):

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('clients', '0007_auto_20190911_2153'),
    ]

    operations = [
        migrations.CreateModel(
            name='CPCost',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('created_time',
                 models.DateTimeField(auto_now_add=True,
                                      verbose_name='Created Time')),
                ('cost',
                 models.DecimalField(decimal_places=2,
                                     max_digits=6,
                                     verbose_name='Cost(RMB)')),
                ('cbom',
                 models.ImageField(
                     upload_to=clients.models.cpcost_directory_path,
                     verbose_name='CBOM IMAGE')),
                ('cp',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='clients.ClientProduct',
                                   verbose_name='Product')),
                ('user',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to=settings.AUTH_USER_MODEL)),
            ],
        ),
    ]
Example #4
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('auth', '0011_update_proxy_permissions'),
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
        ('customers', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='Client',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('uuid', models.UUIDField(default=uuid.uuid4, editable=False)),
                ('first_name', models.CharField(max_length=50)),
                ('middle_name',
                 models.CharField(blank=True, max_length=50, null=True)),
                ('last_name', models.CharField(max_length=50)),
                ('suffix',
                 models.CharField(blank=True, max_length=10, null=True)),
                ('preferred_name',
                 models.CharField(blank=True, max_length=50, null=True)),
                ('age', models.IntegerField(blank=True, null=True)),
                ('dob', models.DateField(blank=True, null=True)),
                ('client_minor', models.BooleanField(blank=True,
                                                     default=False)),
                ('send_text_appointment_reminders',
                 models.BooleanField(blank=True, default=False)),
                ('send_email_appointment_reminders',
                 models.BooleanField(blank=True, default=False)),
                ('billing_type',
                 models.CharField(blank=True,
                                  choices=[('self', 'Self Pay'),
                                           ('insurance', 'Insurance')],
                                  default='self',
                                  max_length=15)),
                ('referred_by',
                 models.CharField(blank=True, max_length=50, null=True)),
                ('phone1',
                 models.CharField(blank=True, max_length=20, null=True)),
                ('text_message_consent_1',
                 models.BooleanField(blank=True, default=False)),
                ('phone2',
                 models.CharField(blank=True, max_length=20, null=True)),
                ('text_message_consent_2',
                 models.BooleanField(blank=True, default=False)),
                ('phone3',
                 models.CharField(blank=True, max_length=20, null=True)),
                ('text_message_consent_3',
                 models.BooleanField(blank=True, default=False)),
                ('primary_email', models.EmailField(max_length=50,
                                                    unique=True)),
                ('primary_email_consent',
                 models.BooleanField(blank=True, default=False)),
                ('secondary_email',
                 models.EmailField(blank=True, max_length=50, null=True)),
                ('secondary_email_consent',
                 models.BooleanField(blank=True, default=False)),
                ('access_client_portal',
                 models.BooleanField(blank=True, default=True)),
                ('sex', models.CharField(blank=True, max_length=20,
                                         null=True)),
                ('relationship_status',
                 models.CharField(blank=True, max_length=20, null=True)),
                ('address',
                 models.CharField(blank=True, max_length=500, null=True)),
                ('city', models.CharField(blank=True, max_length=50,
                                          null=True)),
                ('state', models.CharField(blank=True,
                                           max_length=50,
                                           null=True)),
                ('zip', models.CharField(blank=True, max_length=6, null=True)),
                ('emergency_first_name',
                 models.CharField(blank=True, max_length=50, null=True)),
                ('emergency_last_name',
                 models.CharField(blank=True, max_length=50, null=True)),
                ('emergency_relation',
                 models.CharField(blank=True, max_length=20, null=True)),
                ('emergency_phone',
                 models.CharField(blank=True, max_length=20, null=True)),
                ('emergency_email',
                 models.CharField(blank=True, max_length=50, null=True)),
                ('emergency_phone_type',
                 models.CharField(blank=True, max_length=20, null=True)),
                ('insurance_company',
                 models.CharField(blank=True, max_length=50, null=True)),
                ('group_id',
                 models.CharField(blank=True, max_length=50, null=True)),
                ('plan_id',
                 models.CharField(blank=True, max_length=50, null=True)),
                ('member_id',
                 models.CharField(blank=True, max_length=50, null=True)),
                ('client_relationship_to_insured',
                 models.CharField(blank=True, max_length=50, null=True)),
                ('insured_first_name',
                 models.CharField(blank=True, max_length=50, null=True)),
                ('insured_last_name',
                 models.CharField(blank=True, max_length=50, null=True)),
                ('insured_sex',
                 models.CharField(blank=True, max_length=20, null=True)),
                ('insured_birth_date',
                 models.CharField(blank=True, max_length=50, null=True)),
                ('insured_phone',
                 models.CharField(blank=True, max_length=50, null=True)),
                ('insured_address',
                 models.CharField(blank=True, max_length=500, null=True)),
                ('insured_city',
                 models.CharField(blank=True, max_length=50, null=True)),
                ('insured_state',
                 models.CharField(blank=True, max_length=50, null=True)),
                ('insured_zip',
                 models.CharField(blank=True, max_length=6, null=True)),
                ('created_datetime',
                 models.DateTimeField(default=django.utils.timezone.now)),
                ('created_by',
                 models.CharField(blank=True, max_length=50, null=True)),
                ('last_modified',
                 models.DateTimeField(default=django.utils.timezone.now)),
                ('last_modified_by',
                 models.CharField(blank=True, max_length=50, null=True)),
                ('client_user_obj',
                 django_multitenant.fields.TenantForeignKey(
                     blank=True,
                     null=True,
                     on_delete=django.db.models.deletion.SET_NULL,
                     to=settings.AUTH_USER_MODEL)),
                ('customer',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='customers.Customer')),
            ],
            options={
                'permissions':
                (('can_view', 'Can View'), ('can_edit', 'Can Edit'),
                 ('can_add', 'Can Add'), ('can_delete', 'Can Add'),
                 ('can_notes', 'Can View Notes')),
                'unique_together': {('id', 'customer')},
            },
            bases=(django_multitenant.mixins.TenantModelMixin, models.Model),
        ),
        migrations.CreateModel(
            name='EmailTemplates',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('appointment_reminder',
                 ckeditor.fields.RichTextField(
                     blank=True,
                     default=
                     '<p>Dear {{client_name}}</p>\n\n<p>This is just a reminder for\xa0appointment with {{assigned_clinician}}\xa0,\xa0 scheduled on {{appointment_date_time}}. Please be present at the clinic at least 15 minutes in advance to complete the appointment procedures.</p>\xa0\n\n<p>Warm Regards,</p>\n<p>{{your_name}}</p>',
                     max_length=10000,
                     null=True)),
                ('new_appointment',
                 ckeditor.fields.RichTextField(
                     blank=True,
                     default=
                     '<p>Dear {{client_name}}</p>\n\n<p>Your appointment with {{assigned_clinician}} is scheduled on {{appointment_date_time}}. Please be present at the clinic at least 15 minutes in advance to complete the appointment procedures.</p>\xa0\n\n<p>Warm Regards,</p>\n<p>{{your_name}}</p>',
                     max_length=10000,
                     null=True)),
                ('appointment_reschedule',
                 ckeditor.fields.RichTextField(
                     blank=True,
                     default=
                     '<p>Dear {{client_name}}</p>\n\n<p>Your appointment with {{assigned_clinician}}\xa0,\xa0 scheduled on {{old_appointment_date_time}}. Has been rescheduled to{{new_appointment_date_time}}.\xa0Please be present at the clinic at least 15 minutes in advance to complete the appointment procedures. Please dont hesitate to get in touch with us for more details.</p>\n\n\n\n<p>warm regards,</p>\n<p>{{your_name}}</p>',
                     max_length=10000,
                     null=True)),
                ('appointment_canceled',
                 ckeditor.fields.RichTextField(
                     blank=True,
                     default=
                     '<p>Dear {{client_name}}</p>\n\n<p>Your appointment with {{assigned_clinician}}\xa0,\xa0 scheduled on {{appointment_date_time}}. Has been canceled. Please dont hesitate to get in touch with us for more details.</p>\n\n\n\n<p>warm regards,</p>\n\n<p> {{your_name}} </p>',
                     max_length=10000,
                     null=True)),
                ('client_onboarding',
                 ckeditor.fields.RichTextField(
                     blank=True,
                     default=
                     '<p>Dear {{client_name}}</p>\n\n<p><br />\nYour registration with our practice is completed Your access to the client portal is<br />\n{{access_credential}}</p>\n\n<p><br />\nPlease log in to the portal and update your intake details, your onetime password will expire in 12 hours, you will be able to change your password during your first login.<br/>Please do not hesitate to contact us in case you face any issues.</p>\n\n<p>warm regards,</p>\n\n<p>{{your_name}}</p>',
                     max_length=10000,
                     null=True)),
                ('email_reminder_setting',
                 models.CharField(choices=[('12', '12 Hours'),
                                           ('24', '24 Hours'),
                                           ('48', '48 Hours'),
                                           ('None', 'Manually Send')],
                                  default='None',
                                  max_length=20)),
                ('user',
                 models.OneToOneField(
                     on_delete=django.db.models.deletion.CASCADE,
                     to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='ClientNote',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('uuid', models.UUIDField(default=uuid.uuid4, editable=False)),
                ('client_note_title', models.CharField(max_length=500)),
                ('client_note_body',
                 ckeditor.fields.RichTextField(blank=True,
                                               max_length=5000,
                                               null=True)),
                ('created_by',
                 models.CharField(blank=True, max_length=50, null=True)),
                ('created_datetime',
                 models.DateTimeField(default=django.utils.timezone.now)),
                ('last_modified_datetime',
                 models.DateTimeField(default=django.utils.timezone.now)),
                ('last_modified_by',
                 models.CharField(blank=True, max_length=50, null=True)),
                ('client',
                 django_multitenant.fields.TenantForeignKey(
                     on_delete=django.db.models.deletion.CASCADE,
                     to='clients.Client')),
                ('customer',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='customers.Customer')),
            ],
            options={
                'abstract': False,
            },
            bases=(django_multitenant.mixins.TenantModelMixin, models.Model),
        ),
        migrations.CreateModel(
            name='ClientFile',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('uuid', models.UUIDField(default=uuid.uuid4, editable=False)),
                ('file',
                 models.FileField(
                     upload_to=clients.models.upload_path,
                     validators=[
                         django_clamd.validators.validate_file_infection
                     ])),
                ('file_name', models.CharField(max_length=50)),
                ('uploaded_by', models.CharField(max_length=50)),
                ('created_datetime',
                 models.DateTimeField(default=django.utils.timezone.now)),
                ('client',
                 django_multitenant.fields.TenantForeignKey(
                     on_delete=django.db.models.deletion.CASCADE,
                     to='clients.Client')),
                ('customer',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='customers.Customer')),
            ],
            options={
                'abstract': False,
            },
            bases=(django_multitenant.mixins.TenantModelMixin, models.Model),
        ),
        migrations.CreateModel(
            name='ClientEmails',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('uuid', models.UUIDField(default=uuid.uuid4, editable=False)),
                ('subject', models.CharField(max_length=100)),
                ('email', models.CharField(max_length=1000)),
                ('sent_by', models.CharField(max_length=50)),
                ('sent_from_email', models.CharField(max_length=50)),
                ('sent_to_email', models.CharField(max_length=50)),
                ('sent_datetime',
                 models.DateTimeField(default=django.utils.timezone.now)),
                ('status', models.CharField(max_length=10)),
                ('customer',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='customers.Customer')),
            ],
            options={
                'abstract': False,
            },
            bases=(django_multitenant.mixins.TenantModelMixin, models.Model),
        ),
        migrations.CreateModel(
            name='ClientAdministrativeNote',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('uuid', models.UUIDField(default=uuid.uuid4, editable=False)),
                ('created_by',
                 models.CharField(blank=True, max_length=50, null=True)),
                ('administrative_note_body',
                 ckeditor.fields.RichTextField(blank=True,
                                               max_length=5000,
                                               null=True)),
                ('created_datetime',
                 models.DateTimeField(default=django.utils.timezone.now)),
                ('last_modified_datetime',
                 models.DateTimeField(default=django.utils.timezone.now)),
                ('last_modified_by',
                 models.CharField(blank=True, max_length=50, null=True)),
                ('client',
                 models.OneToOneField(
                     on_delete=django.db.models.deletion.CASCADE,
                     to='clients.Client')),
            ],
        ),
        migrations.CreateModel(
            name='ProjectUserObjectPermission',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('content_object',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='clients.Client')),
                ('permission',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='auth.Permission')),
                ('user',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to=settings.AUTH_USER_MODEL)),
            ],
            options={
                'abstract': False,
                'unique_together': {('user', 'permission', 'content_object')},
            },
        ),
        migrations.CreateModel(
            name='ProjectGroupObjectPermission',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('content_object',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='clients.Client')),
                ('group',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='auth.Group')),
                ('permission',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='auth.Permission')),
            ],
            options={
                'abstract': False,
                'unique_together': {('group', 'permission', 'content_object')},
            },
        ),
    ]
class Migration(migrations.Migration):

    dependencies = [
        ('clients', '0001_initial'),
    ]

    operations = [
        migrations.RemoveField(
            model_name='client',
            name='author',
        ),
        migrations.AlterField(
            model_name='client',
            name='acct_number',
            field=models.CharField(default=clients.models.random_string,
                                   max_length=50,
                                   null=True,
                                   verbose_name='Account Number'),
        ),
        migrations.AlterField(
            model_name='client',
            name='client_address_city',
            field=models.CharField(blank=True,
                                   default=' ',
                                   max_length=50,
                                   null=True,
                                   verbose_name='City'),
        ),
        migrations.AlterField(
            model_name='client',
            name='client_address_line_1',
            field=models.CharField(blank=True,
                                   default=' ',
                                   max_length=50,
                                   null=True,
                                   verbose_name='Address Line 1'),
        ),
        migrations.AlterField(
            model_name='client',
            name='client_address_line_2',
            field=models.CharField(blank=True,
                                   default=' ',
                                   max_length=50,
                                   null=True,
                                   verbose_name='Address Line 2'),
        ),
        migrations.AlterField(
            model_name='client',
            name='client_address_state',
            field=models.CharField(blank=True,
                                   default=' ',
                                   max_length=50,
                                   null=True,
                                   verbose_name='State'),
        ),
        migrations.AlterField(
            model_name='client',
            name='client_address_zip',
            field=models.CharField(blank=True,
                                   default=' ',
                                   max_length=50,
                                   null=True,
                                   verbose_name='Zip'),
        ),
        migrations.AlterField(
            model_name='client',
            name='client_cell_phone',
            field=models.CharField(default=' ',
                                   max_length=50,
                                   null=True,
                                   verbose_name='Cell Phone'),
        ),
        migrations.AlterField(
            model_name='client',
            name='client_email',
            field=models.EmailField(default=' ',
                                    max_length=100,
                                    verbose_name='Email'),
        ),
        migrations.AlterField(
            model_name='client',
            name='client_fname',
            field=models.CharField(default=' ',
                                   max_length=50,
                                   null=True,
                                   verbose_name='First Name'),
        ),
        migrations.AlterField(
            model_name='client',
            name='client_lname',
            field=models.CharField(default=' ',
                                   max_length=50,
                                   null=True,
                                   verbose_name='Last Name'),
        ),
        migrations.AlterField(
            model_name='client',
            name='date',
            field=models.DateTimeField(auto_now_add=True, verbose_name='Date'),
        ),
        migrations.CreateModel(
            name='Vehicle',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('vehicle_vin',
                 models.CharField(max_length=140, verbose_name='VIN Number')),
                ('vehicle_year',
                 models.CharField(max_length=4, verbose_name='Year')),
                ('vehicle_make',
                 models.CharField(max_length=50, verbose_name='Make')),
                ('vehicle_model',
                 models.CharField(max_length=50, verbose_name='Model')),
                ('vehicle_owner',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='vehicle',
                                   to='clients.Client')),
            ],
        ),
        migrations.CreateModel(
            name='ServiceRecord',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('service_date',
                 models.DateTimeField(auto_now_add=True, verbose_name='Date')),
                ('service_amount',
                 models.CharField(max_length=4, verbose_name='Amount')),
                ('service_details',
                 models.CharField(max_length=140,
                                  verbose_name='Service Details')),
                ('service_vehicle',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='service_record',
                                   to='clients.Vehicle')),
                ('vehicle_owner',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   related_name='record_owner',
                                   to='clients.Client')),
            ],
        ),
    ]
Example #6
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='Union',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('union_name', models.CharField(max_length=100)),
                ('union_number', models.IntegerField()),
                ('help_info',
                 models.CharField(blank=True, max_length=200, null=True)),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
            ],
        ),
        migrations.CreateModel(
            name='Word',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('word_name', models.CharField(max_length=100)),
                ('word_number', models.IntegerField()),
                ('created_at', models.DateTimeField(auto_now_add=True)),
                ('updated_at', models.DateTimeField(auto_now=True)),
                ('union',
                 models.OneToOneField(
                     null=True,
                     on_delete=django.db.models.deletion.SET_NULL,
                     to='clients.Union')),
            ],
        ),
        migrations.CreateModel(
            name='Client',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('client_id',
                 models.CharField(blank=True,
                                  default=clients.models.create_client_id,
                                  max_length=10,
                                  unique=True,
                                  verbose_name='Client ID')),
                ('name', models.CharField(max_length=200,
                                          verbose_name='Name')),
                ('mobile_number',
                 models.PositiveIntegerField(unique=True,
                                             verbose_name='Mobile Number')),
                ('others_number',
                 models.PositiveIntegerField(verbose_name="Other's Number")),
                ('gender',
                 models.CharField(choices=[('M', 'Male'), ('F', 'Female')],
                                  default='M',
                                  max_length=10,
                                  verbose_name='Gender')),
                ('address', models.TextField(blank=True, null=True)),
                ('created_time', models.DateTimeField(auto_now_add=True)),
                ('updated_time', models.DateTimeField(auto_now=True)),
                ('created_by',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to=settings.AUTH_USER_MODEL)),
                ('word_union',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='clients.Word')),
            ],
        ),
    ]
Example #7
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        ('auth', '0012_alter_user_first_name_max_length'),
    ]

    operations = [
        migrations.CreateModel(
            name='Client',
            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(
                     error_messages={
                         'unique': 'A user with that username already exists.'
                     },
                     help_text=
                     'Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.',
                     max_length=150,
                     unique=True,
                     validators=[
                         django.contrib.auth.validators.
                         UnicodeUsernameValidator()
                     ],
                     verbose_name='username')),
                ('first_name',
                 models.CharField(blank=True,
                                  max_length=150,
                                  verbose_name='first name')),
                ('last_name',
                 models.CharField(blank=True,
                                  max_length=150,
                                  verbose_name='last name')),
                ('email',
                 models.EmailField(blank=True,
                                   max_length=254,
                                   verbose_name='email address')),
                ('is_staff',
                 models.BooleanField(
                     default=False,
                     help_text=
                     'Designates whether the user can log into this admin site.',
                     verbose_name='staff status')),
                ('is_active',
                 models.BooleanField(
                     default=True,
                     help_text=
                     'Designates whether this user should be treated as active. Unselect this instead of deleting accounts.',
                     verbose_name='active')),
                ('date_joined',
                 models.DateTimeField(default=django.utils.timezone.now,
                                      verbose_name='date joined')),
                ('patronymic', models.CharField(blank=True, max_length=190)),
                ('phone_number', models.CharField(max_length=15, unique=True)),
                ('passport_number', models.CharField(max_length=10,
                                                     unique=True)),
                ('groups',
                 models.ManyToManyField(
                     blank=True,
                     help_text=
                     'The groups this user belongs to. A user will get all permissions granted to each of their groups.',
                     related_name='user_set',
                     related_query_name='user',
                     to='auth.Group',
                     verbose_name='groups')),
                ('user_permissions',
                 models.ManyToManyField(
                     blank=True,
                     help_text='Specific permissions for this user.',
                     related_name='user_set',
                     related_query_name='user',
                     to='auth.Permission',
                     verbose_name='user permissions')),
            ],
            options={
                'verbose_name': 'user',
                'verbose_name_plural': 'users',
                'abstract': False,
            },
            managers=[
                ('objects', clients.models.ClientManager()),
            ],
        ),
    ]
Example #8
0
class Migration(migrations.Migration):

    initial = True

    dependencies = [
        migrations.swappable_dependency(settings.AUTH_USER_MODEL),
    ]

    operations = [
        migrations.CreateModel(
            name='addons',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('addon_name', models.CharField(default='', max_length=1000)),
                ('monthly_price', models.CharField(default='',
                                                   max_length=1000)),
                ('view_stat',
                 models.CharField(choices=[('active', 'active'),
                                           ('hidden', 'hidden')],
                                  max_length=1000)),
                ('addon_description', models.TextField(default='')),
                ('date_time', models.DateTimeField(auto_now_add=True,
                                                   null=True)),
            ],
        ),
        migrations.CreateModel(
            name='invoiceItems',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('item_type', models.TextField(default='')),
                ('item_name', models.TextField(default='')),
                ('item_description', models.TextField(default='')),
                ('item_quantity', models.CharField(default='',
                                                   max_length=100)),
                ('item_cost', models.CharField(default='', max_length=1000)),
                ('item_total_cost',
                 models.CharField(default='', max_length=1000)),
            ],
        ),
        migrations.CreateModel(
            name='project_addons',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('addon_status',
                 models.CharField(choices=[('Deactivated', 'Deactivated'),
                                           ('Activated', 'Activated')],
                                  default='Deactivated',
                                  max_length=1000)),
                ('date_time', models.DateTimeField(auto_now_add=True,
                                                   null=True)),
                ('addons_id',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to='clients.addons')),
            ],
        ),
        migrations.CreateModel(
            name='projectFiles',
            fields=[
                ('id',
                 models.UUIDField(default=uuid.uuid4,
                                  editable=False,
                                  primary_key=True,
                                  serialize=False)),
                ('file_title', models.CharField(default='', max_length=1000)),
                ('document_file',
                 models.FileField(
                     upload_to=clients.models.get_project_document)),
                ('view_stat',
                 models.CharField(choices=[('show', 'show'), ('hide', 'hide')],
                                  default='show',
                                  max_length=500)),
                ('date_time', models.DateTimeField(auto_now_add=True,
                                                   null=True)),
            ],
        ),
        migrations.CreateModel(
            name='projectInvoice',
            fields=[
                ('id',
                 models.UUIDField(default=uuid.uuid4,
                                  editable=False,
                                  primary_key=True,
                                  serialize=False)),
                ('invoice_number',
                 models.CharField(default=b'AF0684CE',
                                  editable=False,
                                  max_length=200,
                                  unique=True)),
                ('created_date', models.DateField(auto_now_add=True,
                                                  null=True)),
                ('due_date',
                 models.DateField(verbose_name=datetime.datetime(
                     2018, 8, 14, 12, 48, 25, 786345))),
                ('notes', models.TextField(default='')),
                ('invoice_total_cost',
                 models.CharField(default='0', max_length=1000)),
                ('invoice_status',
                 models.CharField(choices=[('generating', 'generating'),
                                           ('pending', 'pending'),
                                           ('paid', 'paid'),
                                           ('failed', 'failed')],
                                  default='generating',
                                  max_length=1000)),
                ('invoice_type',
                 models.CharField(choices=[('online', 'online'),
                                           ('cash', 'cash')],
                                  default='online',
                                  max_length=1000)),
            ],
        ),
        migrations.CreateModel(
            name='projectPosts',
            fields=[
                ('id',
                 models.UUIDField(default=uuid.uuid4,
                                  editable=False,
                                  primary_key=True,
                                  serialize=False)),
                ('comment', models.TextField(default='')),
                ('date_time', models.DateTimeField(auto_now_add=True,
                                                   null=True)),
                ('posted_by',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='projectReports',
            fields=[
                ('id',
                 models.UUIDField(default=uuid.uuid4,
                                  editable=False,
                                  primary_key=True,
                                  serialize=False)),
                ('file_extension', models.CharField(default='',
                                                    max_length=1000)),
                ('file_title', models.CharField(default='', max_length=1000)),
                ('document_file',
                 models.FileField(
                     upload_to=clients.models.get_project_document)),
                ('view_stat',
                 models.CharField(choices=[('waiting', 'waiting'),
                                           ('approved', 'approved')],
                                  default='waiting',
                                  max_length=500)),
                ('date_time', models.DateTimeField(auto_now_add=True,
                                                   null=True)),
            ],
        ),
        migrations.CreateModel(
            name='projectReportType',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('report_type', models.CharField(default='', max_length=1000)),
            ],
        ),
        migrations.CreateModel(
            name='projects',
            fields=[
                ('id',
                 models.UUIDField(default=uuid.uuid4,
                                  editable=False,
                                  primary_key=True,
                                  serialize=False)),
                ('project_name', models.CharField(default='',
                                                  max_length=1000)),
                ('website_url', models.CharField(default='', max_length=1000)),
                ('project_description', models.TextField(default='')),
                ('project_status',
                 models.CharField(choices=[('Deactivated', 'Deactivated'),
                                           ('Activated', 'Activated'),
                                           ('Halted', 'Halted'),
                                           ('Completed', 'Completed')],
                                  default='Deactivated',
                                  max_length=1000)),
                ('subscription_plans_name',
                 models.CharField(default='', max_length=1000)),
                ('subscription_plans_monthly_price',
                 models.CharField(default='', max_length=1000)),
                ('subscription_plans_setup_fee',
                 models.CharField(default='', max_length=1000)),
                ('subscription_plans_description',
                 models.CharField(default='', max_length=1000)),
                ('subscription_plans_id',
                 models.CharField(default='', max_length=1000)),
                ('date_time', models.DateTimeField(auto_now_add=True,
                                                   null=True)),
                ('client_id',
                 models.ForeignKey(on_delete=django.db.models.deletion.CASCADE,
                                   to=settings.AUTH_USER_MODEL)),
            ],
        ),
        migrations.CreateModel(
            name='serviceItem',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('service_name', models.CharField(default='',
                                                  max_length=1000)),
                ('serivce_description',
                 models.CharField(default='', max_length=1000)),
                ('service_price', models.CharField(default='',
                                                   max_length=1000)),
            ],
        ),
        migrations.CreateModel(
            name='subscription_plans',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('plan_name', models.CharField(default='', max_length=1000)),
                ('monthly_price', models.CharField(default='',
                                                   max_length=1000)),
                ('setup_fee', models.CharField(default='', max_length=1000)),
                ('view_stat',
                 models.CharField(choices=[('active', 'active'),
                                           ('hidden', 'hidden')],
                                  max_length=1000)),
                ('plan_description', models.TextField(default='')),
                ('date_time', models.DateTimeField(auto_now_add=True,
                                                   null=True)),
            ],
        ),
        migrations.CreateModel(
            name='taxSlab',
            fields=[
                ('id',
                 models.AutoField(auto_created=True,
                                  primary_key=True,
                                  serialize=False,
                                  verbose_name='ID')),
                ('tax_name', models.CharField(default='', max_length=1000)),
                ('tax_percent', models.IntegerField(default=5)),
            ],
        ),
        migrations.AddField(
            model_name='projectreports',
            name='project_id',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                to='clients.projects'),
        ),
        migrations.AddField(
            model_name='projectreports',
            name='report_type',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                to='clients.projectReportType'),
        ),
        migrations.AddField(
            model_name='projectreports',
            name='uploaded_by',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                to=settings.AUTH_USER_MODEL),
        ),
        migrations.AddField(
            model_name='projectposts',
            name='project_id',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                to='clients.projects'),
        ),
        migrations.AddField(
            model_name='projectinvoice',
            name='project_id',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                to='clients.projects'),
        ),
        migrations.AddField(
            model_name='projectinvoice',
            name='taxable',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                to='clients.taxSlab'),
        ),
        migrations.AddField(
            model_name='projectfiles',
            name='project_id',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                to='clients.projects'),
        ),
        migrations.AddField(
            model_name='projectfiles',
            name='uploaded_by',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                to=settings.AUTH_USER_MODEL),
        ),
        migrations.AddField(
            model_name='project_addons',
            name='project_id',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                to='clients.projects'),
        ),
        migrations.AddField(
            model_name='invoiceitems',
            name='invoice_id',
            field=models.ForeignKey(
                on_delete=django.db.models.deletion.CASCADE,
                to='clients.projectInvoice'),
        ),
    ]