mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-04-06 07:47:53 +10:00
31 lines
1.1 KiB
Python
31 lines
1.1 KiB
Python
# Generated by Django 6.0 on 2025-12-31 09:06
|
|
|
|
import archivebox.base_models.models
|
|
from archivebox.uuid_compat import uuid7
|
|
import django.db.models.deletion
|
|
import django.utils.timezone
|
|
from django.conf import settings
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = [
|
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='Persona',
|
|
fields=[
|
|
('id', models.UUIDField(primary_key=True, default=uuid7, editable=False, unique=True)),
|
|
('config', models.JSONField(blank=True, default=dict, null=True)),
|
|
('name', models.CharField(max_length=64, unique=True)),
|
|
('created_at', models.DateTimeField(db_index=True, default=django.utils.timezone.now)),
|
|
('created_by', models.ForeignKey(default=archivebox.base_models.models.get_or_create_system_user_pk, on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
|
|
],
|
|
),
|
|
]
|