class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Pessoa', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('nome', models.CharField(max_length=255)), ('cpf', cpf_field.models.CPFField(max_length=14, verbose_name='CPF')), ('data_de_nascimento', models.DateField()), ('phone', phone_field.models.PhoneField( blank=True, help_text='Contact phone number', max_length=31)), ('sexo', models.CharField(choices=[('Masculino', 'Masculino'), ('Feminino', 'Feminino')], max_length=9)), ('data', models.DateTimeField(auto_now=True)), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Revendedor', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('nome', models.CharField(max_length=60, verbose_name='Nome')), ('cpf', cpf_field.models.CPFField(max_length=14, unique=True, verbose_name='cpf')), ('email', models.EmailField(max_length=60, unique=True, verbose_name='Email')), ('senha', models.CharField(max_length=100, verbose_name='Senha')), ], options={ 'verbose_name': 'Revendedor', 'verbose_name_plural': 'Revendedores', 'db_table': 'revendedor', 'ordering': ['nome'], }, ), ]
class Migration(migrations.Migration): dependencies = [ ('web', '0007_remove_tb_estoque_tx_lucro'), ] operations = [ migrations.CreateModel( name='Tb_cliente', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('nome', models.CharField(max_length=100, verbose_name='Nome')), ('cpf', cpf_field.models.CPFField(max_length=14, verbose_name='cpf')), ('cep', models.IntegerField(max_length=8, verbose_name='CEP')), ('endereco', models.CharField(max_length=200, verbose_name='Endereço')), ('bairro', models.CharField(max_length=50, verbose_name='Bairro')), ('uf', models.CharField(max_length=2, verbose_name='Uf')), ('dt_nascimento', models.DateField(verbose_name='Data de nascimento')), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Farmer', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('cpf', cpf_field.models.CPFField(max_length=14, verbose_name='cpf')), ('email', models.EmailField(max_length=254)), ('name', models.CharField(max_length=255)), ], options={ 'db_table': 'farmer', }, ), migrations.CreateModel( name='Tillage', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('location', django.contrib.gis.db.models.fields.PointField(srid=4326)), ('type', models.CharField(max_length=255)), ('harvest_date', models.DateField()), ], options={ 'db_table': 'tillage', }, ), migrations.CreateModel( name='LossCommunication', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('loss_cause', models.CharField(choices=[('EXCESSIVE_RAIN', 'Chuva excessiva'), ('FROST', 'Geada'), ('FROZEN_RAIN', 'Granizo'), ('DRY', 'Seca'), ('GALE', 'Vendaval'), ('THUNDER', 'Raio')], max_length=255)), ('farmer', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='loss_communication.farmer')), ('tillage', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='loss_communication.tillage')), ], options={ 'db_table': 'loss_communication', }, ), ]
class Migration(migrations.Migration): dependencies = [ ('web', '0011_tb_fornecedor'), ] operations = [ migrations.CreateModel( name='Tb_vendas', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('nome', models.CharField(max_length=100, verbose_name='Nome do cliente')), ('cpf', cpf_field.models.CPFField(max_length=14, verbose_name='cpf')), ('valor', models.DecimalField(decimal_places=2, max_digits=15, null=True, verbose_name='Valor do pedido')), ('cep', models.IntegerField(verbose_name='CEP')), ('endereco', models.CharField(max_length=200, verbose_name='Endereço do cliente')), ('dt', models.DateField(verbose_name='Data do pedido')), ('codigo', models.IntegerField(verbose_name='Codigo do produto')), ('status', models.CharField( max_length=45, verbose_name= 'Status: Separando / Processando / Entregue / Cancelado') ), ], ), ]
class Migration(migrations.Migration): dependencies = [ ('web', '0009_auto_20201208_1223'), ] operations = [ migrations.CreateModel( name='Tb_usuario', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('nome', models.CharField(max_length=100, verbose_name='Nome')), ('cpf', cpf_field.models.CPFField(max_length=14, verbose_name='cpf')), ('cep', models.IntegerField(verbose_name='CEP')), ('endereco', models.CharField(max_length=200, verbose_name='Endereço')), ('email', models.EmailField(max_length=254)), ('telefone', phone_field.models.PhoneField(blank=True, help_text='Contact phone number', max_length=31)), ('dt_nascimento', models.DateField(verbose_name='Data de nascimento')), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Revendedor', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('nome', models.CharField(max_length=60)), ('cpf', cpf_field.models.CPFField(max_length=14, verbose_name='cpf')), ('email', models.EmailField(max_length=60)), ('senha', models.CharField(max_length=60)), ], ), ]
class Migration(migrations.Migration): dependencies = [ ('comuns', '0003_pessoa'), ] operations = [ migrations.RemoveField( model_name='pessoa', name='id', ), migrations.AlterField( model_name='pessoa', name='cpf', field=cpf_field.models.CPFField(max_length=14, primary_key=True, serialize=False, unique=True), ), migrations.CreateModel( name='Funcionario', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('funcao', models.CharField(max_length=50)), ('cpf', models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to='comuns.Pessoa')), ('departamento', models.ForeignKey( blank=True, null=True, on_delete=django.db.models.deletion.SET_NULL, to='comuns.Departamento')), ], ), ]
class Migration(migrations.Migration): dependencies = [ ('comuns', '0002_projeto'), ] operations = [ migrations.CreateModel( name='Pessoa', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('cpf', cpf_field.models.CPFField(max_length=14, unique=True)), ('nome', models.CharField(max_length=80, null=True)), ('email', models.EmailField(blank=True, max_length=254, null=True)), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Visitante', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('nome', models.CharField(help_text='Nome do Visitante', max_length=150)), ('cpf', cpf_field.models.CPFField(max_length=14, verbose_name='cpf')), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Cadastrar_produto', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('nome_produto', models.CharField(max_length=255, verbose_name='Nome do produto')), ('valor', models.DecimalField(decimal_places=2, max_digits=6, verbose_name='Valor do produto')), ('qtd', models.IntegerField(blank=True, default=0, verbose_name='Quantidade de produtos')), ('status', models.BooleanField(default=False)), ('data_hora_cadastro', models.DateTimeField(auto_now_add=True)), ], ), migrations.CreateModel( name='Cliente', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('nome', models.CharField(max_length=255, verbose_name='Nome completo')), ('cpf', cpf_field.models.CPFField(max_length=14, verbose_name='CPF')), ('email_cliente', models.EmailField(blank=True, max_length=254, null=True, verbose_name='E-mail')), ], ), migrations.CreateModel( name='Despesa', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('nome_despesa', models.CharField(max_length=255, verbose_name='Nome da despesa')), ('valor', models.DecimalField(decimal_places=2, max_digits=12, verbose_name='Valor total da despesa')), ('observacao', models.TextField(blank=True, null=True, verbose_name='Observação')), ('data_hora', models.DateTimeField(auto_now_add=True)), ], ), migrations.CreateModel( name='Endereco', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('nome_rua', models.CharField(max_length=255, verbose_name='Nome da rua')), ('numero_casa', models.CharField(max_length=6, verbose_name='Número da residência')), ('bairro', models.CharField(max_length=255, verbose_name='Bairro')), ('cep', models.CharField(max_length=8, verbose_name='CEP')), ('complemento', models.CharField(blank=True, max_length=255, verbose_name='Complemento')), ], ), migrations.CreateModel( name='Funcao', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('cargo', models.CharField(max_length=255, verbose_name='Cargo')), ], ), migrations.CreateModel( name='Venda', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('qtd_itens', models.IntegerField( blank=True, default=0, verbose_name='Quantidade de Itens Vendidos')), ('observacao', models.CharField(max_length=255, verbose_name='Descrição da venda')), ('data_hora_venda', models.DateTimeField(auto_now_add=True)), ('fk_cadastrar_produto', models.ManyToManyField(to='GDS.Cadastrar_produto', verbose_name='Produtos')), ('fk_comprador', models.ManyToManyField(to='GDS.Cliente', verbose_name='Clientes')), ], ), migrations.CreateModel( name='Funcionario', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('nome_funcionario', models.CharField(max_length=255, verbose_name='Nome completo')), ('cpf_funcionario', cpf_field.models.CPFField(max_length=14, verbose_name='CPF')), ('email_funcionario', models.EmailField(blank=True, max_length=254, null=True, verbose_name='E-mail')), ('codigo_de_contrato', models.CharField(max_length=11, verbose_name='Código do contrato')), ('status', models.BooleanField(default=False, verbose_name='Situação')), ('fk_funcao', models.ForeignKey( default=1, on_delete=django.db.models.deletion.DO_NOTHING, to='GDS.funcao', verbose_name='Cargo')), ], ), migrations.CreateModel( name='Fornecedore', fields=[ ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('nome_fantasia', models.CharField(max_length=255, verbose_name='Nome fantasia')), ('razao_social', models.CharField(max_length=255, verbose_name='Razão social')), ('cnpj', models.CharField(max_length=18, verbose_name='Nome completo')), ('email_fornecedo', models.EmailField(blank=True, max_length=254, null=True, verbose_name='E-mail')), ('observacao', models.TextField(blank=True, max_length=255, null=True, verbose_name='Observação')), ('fk_endereco', models.ManyToManyField( to='GDS.Endereco', verbose_name='Nome da rua e número da empresa')), ], ), migrations.AddField( model_name='cliente', name='fk_endereco', field=models.ManyToManyField( to='GDS.Endereco', verbose_name='Nome da rua e número da casa'), ), ]
class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name='Endereco', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('bairro', models.CharField(max_length=100)), ('rua', models.CharField(max_length=200)), ('numero', models.IntegerField()), ('complemento', models.CharField(blank=True, max_length=200)), ], ), migrations.CreateModel( name='SolicitacaoEducacao', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('cadastro_pf', cpf_field.models.CPFField(max_length=14, verbose_name='CPF')), ('rg', models.CharField(max_length=15, validators=[requests.models.only_int])), ('data_criacao', models.DateTimeField(default=django.utils.timezone.now)), ('escola', models.CharField(max_length=100)), ], ), migrations.CreateModel( name='SolicitacaoIluminacao', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('conta_luz', models.FileField(upload_to='arquivos/')), ('rg', models.CharField(max_length=15, validators=[requests.models.only_int])), ('data_criacao', models.DateTimeField(default=django.utils.timezone.now)), ('comentario', models.CharField(max_length=100)), ], ), migrations.CreateModel( name='SolicitacaoMeioAmbiente', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('data_criacao', models.DateTimeField(default=django.utils.timezone.now)), ], ), migrations.CreateModel( name='SolicitacaoTransito', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('tipo', models.CharField(choices=[ ('Defeito No Semáforo', 'Defeito no Semáforo'), ('Estacionamento Irregular', 'Estacionamento Irregular'), ('Sinalização Irregular', 'Sinalização Irregular') ], max_length=100)), ('data_criacao', models.DateTimeField(default=django.utils.timezone.now)), ('imagem', models.ImageField(upload_to='imagens/')), ('comentario', models.TextField(blank=True, default='')), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0012_alter_user_first_name_max_length'), ] operations = [ migrations.CreateModel( name='Usuario', 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')), ('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')), ('email', models.EmailField(max_length=254, unique=True, verbose_name='E-mail')), ('data_nascimento', models.DateField(blank=True, null=True)), ('celular', models.CharField(blank=True, max_length=50, null=True)), ('cpf', cpf_field.models.CPFField(max_length=14, verbose_name='cpf')), ('is_staff', models.BooleanField(default=True, verbose_name='Membro da equipe')), ('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={ 'db_table': 'usuario', }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Aula', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(auto_now_add=True)), ('modified_at', models.DateTimeField(auto_now=True)), ('status', models.IntegerField(choices=[(1, 'Ativo'), (0, 'Inativo')], default=1)), ('nome', models.CharField(max_length=100, verbose_name='Nome')), ('description', models.TextField(blank=True, verbose_name='Descrição')), ('ordem', models.IntegerField(blank=True, default=0, verbose_name='Número (Ordem)')), ('data_liberacao', models.DateField(blank=True, null=True, verbose_name='Data de Liberação')), ('slug', models.SlugField(max_length=255, unique=True, verbose_name='Slug')), ('created_by', models.ForeignKey(editable=False, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='aula_created', to=settings.AUTH_USER_MODEL)), ], options={ 'verbose_name_plural': 'Aulas', 'db_table': 'aula', }, ), migrations.CreateModel( name='Curso', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(auto_now_add=True)), ('modified_at', models.DateTimeField(auto_now=True)), ('status', models.IntegerField(choices=[(1, 'Ativo'), (0, 'Inativo')], default=1)), ('nome', models.CharField(max_length=255, verbose_name='Nome do Curso')), ('description', models.TextField(blank=True, verbose_name='Descrição Simples')), ('about', models.TextField(blank=True, verbose_name='Sobre o Curso')), ('data_inicio', models.DateField(blank=True, null=True, verbose_name='Data de Início')), ('image', models.ImageField(blank=True, null=True, upload_to='courses/images', verbose_name='Imagem do Curso')), ('slug', models.SlugField(max_length=255, unique=True, verbose_name='Slug')), ('created_by', models.ForeignKey(editable=False, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='curso_created', to=settings.AUTH_USER_MODEL)), ('modified_by', models.ForeignKey(editable=False, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='curso_modified', to=settings.AUTH_USER_MODEL)), ('professor', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='Usuário')), ], options={ 'verbose_name_plural': 'Cursos', 'db_table': 'curso', }, ), migrations.CreateModel( name='Setor', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(auto_now_add=True)), ('modified_at', models.DateTimeField(auto_now=True)), ('status', models.IntegerField(choices=[(1, 'Ativo'), (0, 'Inativo')], default=1)), ('secretaria', models.CharField(max_length=255, verbose_name='Secretaria')), ('diretoria', models.CharField(max_length=255, verbose_name='Diretoria')), ('divisao', models.CharField(max_length=255, verbose_name='Divisão')), ('setor', models.CharField(max_length=255, verbose_name='Setor')), ('slug', models.SlugField(max_length=255, unique=True, verbose_name='Slug')), ('created_by', models.ForeignKey(editable=False, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='setor_created', to=settings.AUTH_USER_MODEL)), ('modified_by', models.ForeignKey(editable=False, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='setor_modified', to=settings.AUTH_USER_MODEL)), ], options={ 'verbose_name_plural': 'Setores', 'db_table': 'setor', }, ), migrations.CreateModel( name='Pessoa', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(auto_now_add=True)), ('modified_at', models.DateTimeField(auto_now=True)), ('status', models.IntegerField(choices=[(1, 'Ativo'), (0, 'Inativo')], default=1)), ('acesso', models.IntegerField(blank=True, choices=[(1, 'Professor'), (0, 'Aluno')], null=True, verbose_name='Tipo de Acesso')), ('nome', models.CharField(max_length=255, verbose_name='Nome')), ('data_nascimento', models.DateTimeField(verbose_name='Data de Nascimento')), ('cpf', cpf_field.models.CPFField(max_length=14, verbose_name='CPF')), ('email', models.EmailField(max_length=254, verbose_name='Email')), ('whats', models.CharField(max_length=15, verbose_name='WhatsApp')), ('slug', models.SlugField(max_length=255, unique=True, verbose_name='Slug')), ('created_by', models.ForeignKey(editable=False, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='pessoa_created', to=settings.AUTH_USER_MODEL)), ('modified_by', models.ForeignKey(editable=False, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='pessoa_modified', to=settings.AUTH_USER_MODEL)), ('setor', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='ead.setor', verbose_name='Setor')), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL, verbose_name='Usuário')), ], options={ 'verbose_name_plural': 'Pessoas', 'db_table': 'pessoa', }, ), migrations.CreateModel( name='Material', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(auto_now_add=True)), ('modified_at', models.DateTimeField(auto_now=True)), ('status', models.IntegerField(choices=[(1, 'Ativo'), (0, 'Inativo')], default=1)), ('nome', models.CharField(max_length=100, verbose_name='Nome')), ('embedded', models.TextField(blank=True, verbose_name='Vídeo embedded')), ('file', models.FileField(blank=True, null=True, upload_to='aulas/materiais')), ('slug', models.SlugField(max_length=255, unique=True, verbose_name='Slug')), ('aula', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='materiais', to='ead.aula', verbose_name='Aula')), ('created_by', models.ForeignKey(editable=False, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='material_created', to=settings.AUTH_USER_MODEL)), ('modified_by', models.ForeignKey(editable=False, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='material_modified', to=settings.AUTH_USER_MODEL)), ], options={ 'verbose_name_plural': 'Materiais', 'db_table': 'material', }, ), migrations.CreateModel( name='Inscricao', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('created_at', models.DateTimeField(auto_now_add=True)), ('modified_at', models.DateTimeField(auto_now=True)), ('status', models.IntegerField(choices=[(1, 'Ativo'), (0, 'Inativo')], default=1)), ('situacao', models.IntegerField(blank=True, choices=[(0, 'Pendente'), (1, 'Aprovado'), (2, 'Cancelado')], default=1, verbose_name='Situação')), ('slug', models.SlugField(max_length=255, unique=True, verbose_name='Slug')), ('course', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='inscritos', to='ead.curso', verbose_name='Curso')), ('created_by', models.ForeignKey(editable=False, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='inscricao_created', to=settings.AUTH_USER_MODEL)), ('modified_by', models.ForeignKey(editable=False, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='inscricao_modified', to=settings.AUTH_USER_MODEL)), ('user', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='inscritos', to=settings.AUTH_USER_MODEL, verbose_name='Usuário')), ], options={ 'verbose_name_plural': 'Inscrições', 'db_table': 'inscricao', }, ), migrations.AddField( model_name='aula', name='curso', field=models.ForeignKey( on_delete=django.db.models.deletion.CASCADE, related_name='aulas', to='ead.curso', verbose_name='Curso'), ), migrations.AddField( model_name='aula', name='modified_by', field=models.ForeignKey( editable=False, null=True, on_delete=django.db.models.deletion.CASCADE, related_name='aula_modified', to=settings.AUTH_USER_MODEL), ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Dados_usuario', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('cpf', cpf_field.models.CPFField(blank=True, max_length=14, null=True, verbose_name='cpf')), ('nome', models.CharField(blank=True, max_length=255, null=True)), ('sobrenome', models.CharField(blank=True, max_length=255, null=True)), ('data_nascimento', models.DateField(blank=True, null=True, verbose_name='Data de Nascimento')), ('telefone', models.CharField(blank=True, max_length=12, null=True)), ('cep', models.CharField(blank=True, max_length=8, null=True, unique=True)), ('cidade', models.CharField(blank=True, max_length=255, null=True)), ('estado', models.CharField(blank=True, max_length=2, null=True)), ('rua', models.CharField(blank=True, max_length=255, null=True)), ('bairro', models.CharField(blank=True, max_length=255, null=True)), ('complemento', models.CharField(blank=True, max_length=255, null=True)), ('foto', models.ImageField(blank=True, null=True, upload_to='', verbose_name='Imagem')), ('user', models.OneToOneField( blank=True, null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), ]
class Migration(migrations.Migration): initial = True dependencies = [ ('requests', '0001_initial'), ] operations = [ migrations.CreateModel( name='EnviarEmailEducacao', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('nome', models.EmailField(max_length=150)), ('email', models.EmailField(max_length=254)), ('cadastro_pf', cpf_field.models.CPFField(max_length=14, verbose_name='CPF')), ('rg', models.CharField(max_length=15)), ('escola', models.EmailField(max_length=100)), ], ), migrations.CreateModel( name='EnviarEmailIluminacao', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('nome', models.EmailField(max_length=150)), ('email', models.EmailField(max_length=254)), ('rg', models.CharField(max_length=15)), ('conta_luz', models.FileField(upload_to='arquivos/')), ], ), migrations.CreateModel( name='EnviarEmailTransito', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('nome', models.EmailField(max_length=150)), ('email', models.EmailField(max_length=254)), ('tipo', models.CharField(max_length=50)), ('imagem', models.ImageField(blank=True, upload_to='imagens/')), ('endereco', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='requests.endereco')), ], ), migrations.CreateModel( name='EnviarEmailMeioAmbiente', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('nome', models.EmailField(max_length=150)), ('email', models.EmailField(max_length=254)), ('endereco', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='requests.endereco')), ], ), ]
class Migration(migrations.Migration): dependencies = [ ('api', '0001_initial'), ] operations = [ migrations.CreateModel( name='CashBack', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('valor_min', models.DecimalField(blank=True, decimal_places=2, max_digits=10, null=True, verbose_name='Valor Mínimo')), ('valor_max', models.DecimalField(blank=True, decimal_places=2, max_digits=10, null=True, verbose_name='Valor Máximo')), ('percentual', models.DecimalField(blank=True, decimal_places=2, max_digits=10, null=True, verbose_name='Percentual')), ], options={ 'verbose_name': 'CashBack', }, ), migrations.CreateModel( name='Status', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('status', models.CharField(max_length=60, verbose_name='Status')), ], options={ 'verbose_name': 'Status', }, ), migrations.AlterModelOptions( name='revendedor', options={'verbose_name': 'Revendedor', 'verbose_name_plural': 'Revendedores'}, ), migrations.AlterField( model_name='revendedor', name='cpf', field=cpf_field.models.CPFField(max_length=14, unique=True, verbose_name='cpf'), ), migrations.AlterField( model_name='revendedor', name='email', field=models.EmailField(max_length=60, unique=True, verbose_name='Email'), ), migrations.AlterField( model_name='revendedor', name='nome', field=models.CharField(max_length=60, verbose_name='Nome'), ), migrations.AlterField( model_name='revendedor', name='senha', field=models.CharField(max_length=60, verbose_name='Senha'), ), migrations.AlterModelTable( name='revendedor', table='revendedor', ), migrations.CreateModel( name='Pedido', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('numero', models.CharField(max_length=60, verbose_name='Número')), ('valor', models.DecimalField(blank=True, decimal_places=6, max_digits=10, null=True, verbose_name='Valor')), ('data', models.DateTimeField(blank=True, null=True, verbose_name='Data/Hora Pedido')), ('revendedor', models.ForeignKey(on_delete=django.db.models.deletion.RESTRICT, related_name='revendedor_pedido', to='api.revendedor', verbose_name='Revendedor')), ('status', models.ForeignKey(on_delete=django.db.models.deletion.RESTRICT, related_name='status_pedido', to='api.status', verbose_name='Status')), ], options={ 'verbose_name': 'Pedido', }, ), migrations.CreateModel( name='CashBackRevendedor', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('valor', models.DecimalField(blank=True, decimal_places=2, max_digits=10, null=True, verbose_name='Valor CashBack')), ('data', models.DateTimeField(blank=True, null=True, verbose_name='Data/Hora Pedido')), ('pedido', models.ForeignKey(on_delete=django.db.models.deletion.RESTRICT, related_name='cashback_pedido', to='api.pedido', verbose_name='Pedido')), ('revendedor', models.ForeignKey(on_delete=django.db.models.deletion.RESTRICT, related_name='revendedor_cashback_pedido', to='api.revendedor', verbose_name='Revendedor')), ], options={ 'verbose_name': 'CashBack Revendedor', }, ), ]
class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name='Profile_user', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('autor', models.CharField(max_length=50)), ('CRM', models.IntegerField()), ('Estado_CRM', models.CharField(choices=[('A', 'Acre (AC)'), ('B', 'Alagoas (AL)'), ('C', 'Amapá (AP)'), ('D', 'Amazonas (AM)'), ('E', 'Bahia (BA'), ('F', 'Ceará (CE)'), ('G', 'Distrito Federal (DF)'), ('H', 'Espírito Santo (ES)'), ('I', 'Goiás (GO)'), ('J', 'Maranhão (MA)'), ('K', 'Mato Grosso (MT)'), ('L', 'Mato Grosso do Sul (MS)'), ('M', 'Minas Gerais (MG)'), ('N', 'Pará (PA)'), ('O', 'Paraíba (PB)'), ('P', 'Paraná (PR)'), ('Q', 'Pernambuco (PE)'), ('R', 'Piauí (PI)'), ('S', 'Rio de Janeiro (RJ)'), ('T', 'Rio Grande do Norte (RN)'), ('U', 'Rio Grande do Sul (RS)'), ('V', 'Rondônia (RO)'), ('X', 'Roraima (RR)'), ('Y', 'Santa Catarina (SC)'), ('Z', 'São Paulo (SP)'), ('W', 'Sergipe (SE)'), ('Ç', 'Tocantin (TO)')], max_length=1)), ('user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), migrations.CreateModel( name='Post', fields=[ ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), ('Exame', models.CharField(choices=[('Covid-19', 'Covid-19'), ('Leishmaniose', 'Leishmaniose')], max_length=20)), ('Nome_do_paciente', models.CharField(max_length=50)), ('Cpf_paciente', cpf_field.models.CPFField(max_length=14, verbose_name='cpf')), ('Sexo', models.CharField(max_length=10)), ('Data_de_nascimento', models.DateField()), ('created_date', models.DateTimeField(default=django.utils.timezone.now)), ('published_date', models.DateTimeField(blank=True, null=True)), ('four_digit_code', models.IntegerField(null=True)), ('author', models.TextField()), ('user', models.ForeignKey(null=True, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), ], ), ]