mirror of https://github.com/interlegis/sapl.git
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.
31 lines
1.3 KiB
31 lines
1.3 KiB
# Generated by Django 2.2.20 on 2022-07-29 01:02
|
|
|
|
import django.contrib.postgres.fields.jsonb
|
|
import django.core.serializers.json
|
|
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('contenttypes', '0002_remove_content_type_name'),
|
|
('base', '0049_auto_20220728_2029'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='Metadata',
|
|
fields=[
|
|
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
|
('object_id', models.PositiveIntegerField(blank=True, default=None, null=True)),
|
|
('metadata', django.contrib.postgres.fields.jsonb.JSONField(blank=True, default=None, encoder=django.core.serializers.json.DjangoJSONEncoder, null=True, verbose_name='Metadados')),
|
|
('content_type', models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.PROTECT, to='contenttypes.ContentType')),
|
|
],
|
|
options={
|
|
'verbose_name': 'Metadado',
|
|
'verbose_name_plural': 'Metadados',
|
|
'unique_together': {('content_type', 'object_id')},
|
|
},
|
|
),
|
|
]
|
|
|