41 lines
1.3 KiB
Python
41 lines
1.3 KiB
Python
# Generated by Django 2.2.26 on 2023-01-17 17:21
|
|
|
|
import django.contrib.postgres.fields.jsonb
|
|
import django.db.models.deletion
|
|
from django.db import migrations, models
|
|
|
|
import passerelle.utils.jsonresponse
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('cmis', '0003_auto_20181118_0807'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='ObjectWatch',
|
|
fields=[
|
|
(
|
|
'id',
|
|
models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID'),
|
|
),
|
|
('object_id', models.CharField(db_index=True, max_length=128)),
|
|
('callback_url', models.URLField(db_index=True, max_length=400, verbose_name='Callback URL')),
|
|
(
|
|
'metadata',
|
|
django.contrib.postgres.fields.jsonb.JSONField(
|
|
encoder=passerelle.utils.jsonresponse.JSONEncoder
|
|
),
|
|
),
|
|
('created', models.DateTimeField(auto_now_add=True)),
|
|
('cancelled', models.DateTimeField(null=True)),
|
|
(
|
|
'resource',
|
|
models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='cmis.CmisConnector'),
|
|
),
|
|
],
|
|
),
|
|
]
|