Sistema de Apoio ao Processo Legislativo
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

148 lines
8.1 KiB

# -*- coding: utf-8 -*-
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('materia', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='DocumentoAcessorioAdministrativo',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('nome', models.CharField(max_length=30, verbose_name='Nome')),
('arquivo', models.CharField(max_length=100, verbose_name='Arquivo')),
('data', models.DateField(null=True, verbose_name='Data', blank=True)),
('autor', models.CharField(max_length=50, null=True, verbose_name='Autor', blank=True)),
10 years ago
('assunto', models.TextField(null=True, verbose_name='Assunto', blank=True)),
('indexacao', models.TextField(null=True, blank=True)),
],
10 years ago
options={
'verbose_name': 'Documento Acess\xf3rio',
'verbose_name_plural': 'Documentos Acess\xf3rios',
},
),
migrations.CreateModel(
name='DocumentoAdministrativo',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('numero', models.IntegerField(verbose_name='N\xfamero')),
('ano', models.SmallIntegerField(verbose_name='Ano')),
('data', models.DateField(verbose_name='Data')),
10 years ago
('numero_protocolo', models.IntegerField(null=True, verbose_name='N\xfam. Protocolo', blank=True)),
10 years ago
('interessado', models.CharField(max_length=50, null=True, verbose_name='Interessado', blank=True)),
('dias_prazo', models.IntegerField(null=True, verbose_name='Dias Prazo', blank=True)),
10 years ago
('data_fim_prazo', models.DateField(null=True, verbose_name='Data Fim Prazo', blank=True)),
('tramitacao', models.BooleanField(verbose_name='Em Tramita\xe7\xe3o?')),
10 years ago
('assunto', models.TextField(verbose_name='Assunto')),
('observacao', models.TextField(null=True, verbose_name='Observa\xe7\xe3o', blank=True)),
('autor', models.ForeignKey(blank=True, to='materia.Autor', null=True)),
],
10 years ago
options={
'verbose_name': 'Documento Administrativo',
'verbose_name_plural': 'Documentos Administrativos',
},
),
migrations.CreateModel(
name='Protocolo',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('numero', models.IntegerField(null=True, verbose_name='N\xfamero do Protocolo', blank=True)),
('ano', models.SmallIntegerField()),
('data', models.DateField()),
('hora', models.TimeField()),
('timestamp', models.DateTimeField()),
10 years ago
('tipo_protocolo', models.IntegerField(verbose_name='Tipo de Protocolo')),
('tipo_processo', models.IntegerField()),
10 years ago
('interessado', models.CharField(max_length=60, null=True, verbose_name='Interessado', blank=True)),
('assunto_ementa', models.TextField(null=True, blank=True)),
('numero_paginas', models.IntegerField(null=True, verbose_name='N\xfamero de P\xe1ginas', blank=True)),
10 years ago
('observacao', models.TextField(null=True, verbose_name='Observa\xe7\xe3o', blank=True)),
('anulado', models.BooleanField()),
10 years ago
('user_anulacao', models.CharField(max_length=20, null=True, blank=True)),
('ip_anulacao', models.CharField(max_length=15, null=True, blank=True)),
('justificativa_anulacao', models.CharField(max_length=60, null=True, blank=True)),
('timestamp_anulacao', models.DateTimeField(null=True, blank=True)),
('autor', models.ForeignKey(blank=True, to='materia.Autor', null=True)),
],
10 years ago
options={
'verbose_name': 'Protocolo',
'verbose_name_plural': 'Protocolos',
},
),
migrations.CreateModel(
name='StatusTramitacaoAdministrativo',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('sigla', models.CharField(max_length=10, verbose_name='Sigla')),
('descricao', models.CharField(max_length=60, verbose_name='Descri\xe7\xe3o')),
('indicador', models.CharField(max_length=1, verbose_name='Indicador da Tramita\xe7\xe3o', choices=[(b'F', 'Fim'), (b'R', 'Retorno')])),
],
10 years ago
options={
'verbose_name': 'Status de Tramita\xe7\xe3o',
'verbose_name_plural': 'Status de Tramita\xe7\xe3o',
},
),
migrations.CreateModel(
name='TipoDocumentoAdministrativo',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
('sigla', models.CharField(max_length=5, verbose_name='Sigla')),
('descricao', models.CharField(max_length=50, verbose_name='Descri\xe7\xe3o')),
],
10 years ago
options={
'verbose_name': 'Tipo de Documento Administrativo',
'verbose_name_plural': 'Tipos de Documento Administrativo',
},
),
migrations.CreateModel(
name='TramitacaoAdministrativo',
fields=[
('id', models.AutoField(verbose_name='ID', serialize=False, auto_created=True, primary_key=True)),
10 years ago
('data_tramitacao', models.DateField(null=True, verbose_name='Data Tramita\xe7\xe3o', blank=True)),
('data_encaminhamento', models.DateField(null=True, verbose_name='Data Encaminhamento', blank=True)),
('ultima', models.BooleanField()),
('texto', models.TextField(null=True, verbose_name='Texto da A\xe7\xe3o', blank=True)),
10 years ago
('data_fim_prazo', models.DateField(null=True, verbose_name='Data Fim do Prazo', blank=True)),
('documento', models.ForeignKey(to='protocoloadm.DocumentoAdministrativo')),
10 years ago
('status', models.ForeignKey(verbose_name='Status', blank=True, to='protocoloadm.StatusTramitacaoAdministrativo', null=True)),
('unidade_tramitacao_destino', models.ForeignKey(related_name='+', verbose_name='Unidade Destino', blank=True, to='materia.UnidadeTramitacao', null=True)),
('unidade_tramitacao_local', models.ForeignKey(related_name='+', verbose_name='Unidade Local', blank=True, to='materia.UnidadeTramitacao', null=True)),
],
10 years ago
options={
'verbose_name': 'Tramita\xe7\xe3o de Documento Administrativo',
'verbose_name_plural': 'Tramita\xe7\xf5es de Documento Administrativo',
},
),
migrations.AddField(
model_name='protocolo',
name='tipo_documento',
10 years ago
field=models.ForeignKey(verbose_name='Tipo de documento', blank=True, to='protocoloadm.TipoDocumentoAdministrativo', null=True),
),
migrations.AddField(
model_name='protocolo',
name='tipo_materia',
10 years ago
field=models.ForeignKey(verbose_name='Tipo Mat\xe9ria', blank=True, to='materia.TipoMateriaLegislativa', null=True),
),
migrations.AddField(
model_name='documentoadministrativo',
name='tipo',
10 years ago
field=models.ForeignKey(verbose_name='Tipo Documento', to='protocoloadm.TipoDocumentoAdministrativo'),
),
migrations.AddField(
model_name='documentoacessorioadministrativo',
name='documento',
field=models.ForeignKey(to='protocoloadm.DocumentoAdministrativo'),
),
migrations.AddField(
model_name='documentoacessorioadministrativo',
name='tipo',
10 years ago
field=models.ForeignKey(verbose_name='Tipo', to='protocoloadm.TipoDocumentoAdministrativo'),
),
]