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.

112 lines
6.8 KiB

# -*- coding: utf-8 -*-
10 years ago
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('materia', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='AssuntoNorma',
fields=[
10 years ago
('id', models.AutoField(primary_key=True, verbose_name='ID', auto_created=True, serialize=False)),
10 years ago
('assunto', models.CharField(max_length=50, verbose_name='Assunto')),
10 years ago
('descricao', models.CharField(blank=True, max_length=250, null=True, verbose_name='Descrição')),
],
10 years ago
options={
'verbose_name_plural': 'Assuntos de Norma',
10 years ago
'verbose_name': 'Assunto de Norma',
10 years ago
},
),
migrations.CreateModel(
name='LegislacaoCitada',
fields=[
10 years ago
('id', models.AutoField(primary_key=True, verbose_name='ID', auto_created=True, serialize=False)),
('disposicoes', models.CharField(blank=True, max_length=15, null=True, verbose_name='Disposição')),
('parte', models.CharField(blank=True, max_length=8, null=True, verbose_name='Parte')),
('livro', models.CharField(blank=True, max_length=7, null=True, verbose_name='Livro')),
('titulo', models.CharField(blank=True, max_length=7, null=True, verbose_name='Título')),
('capitulo', models.CharField(blank=True, max_length=7, null=True, verbose_name='Capítulo')),
('secao', models.CharField(blank=True, max_length=7, null=True, verbose_name='Seção')),
('subsecao', models.CharField(blank=True, max_length=7, null=True, verbose_name='Subseção')),
('artigo', models.CharField(blank=True, max_length=4, null=True, verbose_name='Artigo')),
('paragrafo', models.CharField(blank=True, max_length=3, null=True, verbose_name='Parágrafo')),
('inciso', models.CharField(blank=True, max_length=10, null=True, verbose_name='Inciso')),
('alinea', models.CharField(blank=True, max_length=3, null=True, verbose_name='Alínea')),
('item', models.CharField(blank=True, max_length=3, null=True, verbose_name='Item')),
('materia', models.ForeignKey(to='materia.MateriaLegislativa')),
],
10 years ago
options={
10 years ago
'verbose_name_plural': 'Matérias Legislativas',
10 years ago
'verbose_name': 'Matéria Legislativa',
10 years ago
},
),
migrations.CreateModel(
name='NormaJuridica',
fields=[
10 years ago
('id', models.AutoField(primary_key=True, verbose_name='ID', auto_created=True, serialize=False)),
10 years ago
('numero', models.IntegerField(verbose_name='Número')),
10 years ago
('ano', models.SmallIntegerField(verbose_name='Ano')),
10 years ago
('esfera_federacao', models.CharField(choices=[('E', 'Estadual'), ('F', 'Federal'), ('M', 'Municipal')], max_length=1, verbose_name='Esfera Federação')),
('data', models.DateField(blank=True, null=True, verbose_name='Data')),
('data_publicacao', models.DateField(blank=True, null=True, verbose_name='Data Publicação')),
('veiculo_publicacao', models.CharField(blank=True, max_length=30, null=True, verbose_name='Veículo Publicação')),
('pagina_inicio_publicacao', models.IntegerField(blank=True, null=True, verbose_name='Pg. Início')),
('pagina_fim_publicacao', models.IntegerField(blank=True, null=True, verbose_name='Pg. Fim')),
10 years ago
('ementa', models.TextField(verbose_name='Ementa')),
10 years ago
('indexacao', models.TextField(blank=True, null=True, verbose_name='Indexação')),
('observacao', models.TextField(blank=True, null=True, verbose_name='Observação')),
10 years ago
('complemento', models.NullBooleanField(verbose_name='Complementar ?')),
10 years ago
('data_vigencia', models.DateField(blank=True, null=True)),
('timestamp', models.DateTimeField()),
('assunto', models.ForeignKey(to='norma.AssuntoNorma')),
10 years ago
('materia', models.ForeignKey(blank=True, null=True, to='materia.MateriaLegislativa')),
],
10 years ago
options={
10 years ago
'verbose_name_plural': 'Normas Jurídicas',
10 years ago
'verbose_name': 'Norma Jurídica',
10 years ago
},
),
migrations.CreateModel(
name='TipoNormaJuridica',
fields=[
10 years ago
('id', models.AutoField(primary_key=True, verbose_name='ID', auto_created=True, serialize=False)),
('equivalente_lexml', models.CharField(blank=True, max_length=50, null=True, verbose_name='Equivalente LexML', choices=[('constituicao', 'constituicao'), ('ementa.constitucional', 'ementa.constitucional'), ('lei.complementar', 'lei.complementar'), ('lei.delegada', 'lei.delegada'), ('lei', 'lei'), ('decreto.lei', 'decreto.lei'), ('medida.provisoria', 'medida.provisoria'), ('decreto', 'decreto'), ('lei.organica', 'lei.organica'), ('emenda.lei.organica', 'emenda.lei.organica'), ('decreto.legislativo', 'decreto.legislativo'), ('resolucao', 'resolucao'), ('regimento.interno', 'regimento.interno')])),
10 years ago
('sigla', models.CharField(max_length=3, verbose_name='Sigla')),
10 years ago
('descricao', models.CharField(max_length=50, verbose_name='Descrição')),
],
10 years ago
options={
10 years ago
'verbose_name_plural': 'Tipos de Norma Jurídica',
10 years ago
'verbose_name': 'Tipo de Norma Jurídica',
10 years ago
},
),
migrations.CreateModel(
name='VinculoNormaJuridica',
fields=[
10 years ago
('id', models.AutoField(primary_key=True, verbose_name='ID', auto_created=True, serialize=False)),
('tipo_vinculo', models.CharField(blank=True, max_length=1, null=True, choices=[('A', 'Altera a norma'), ('R', 'Revoga a norma'), ('P', 'Revoga parcialmente a norma'), ('T', 'Revoga por consolidação a norma'), ('C', 'Norma correlata'), ('I', 'Suspende a execução da norma'), ('G', 'Regulamenta a norma')])),
('norma_referente', models.ForeignKey(to='norma.NormaJuridica', related_name='+')),
('norma_referida', models.ForeignKey(to='norma.NormaJuridica', related_name='+')),
],
10 years ago
options={
10 years ago
'verbose_name_plural': 'Vínculos entre Normas Jurídicas',
10 years ago
'verbose_name': 'Vínculo entre Normas Jurídicas',
10 years ago
},
),
migrations.AddField(
model_name='normajuridica',
name='tipo',
10 years ago
field=models.ForeignKey(to='norma.TipoNormaJuridica', verbose_name='Tipo'),
),
migrations.AddField(
model_name='legislacaocitada',
name='norma',
field=models.ForeignKey(to='norma.NormaJuridica'),
),
]