jumpserver/apps/audits/migrations/0021_auto_20230207_0857.py

43 lines
1.6 KiB
Python
Raw Normal View History

2023-02-07 00:58:14 +00:00
# Generated by Django 3.2.16 on 2023-02-07 00:57
from django.db import migrations, models
import uuid
class Migration(migrations.Migration):
dependencies = [
('audits', '0020_auto_20230117_1004'),
]
operations = [
migrations.CreateModel(
name='ActivityLog',
fields=[
('org_id', models.CharField(blank=True, db_index=True, default='', max_length=36, verbose_name='Organization')),
('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False)),
('type', models.CharField(choices=[('O', 'Operate log'), ('S', 'Session log'), ('L', 'Login log'), ('T', 'Task')], default=None, max_length=2, null=True, verbose_name='Activity type')),
('resource_id', models.CharField(blank=True, db_index=True, default='', max_length=36, verbose_name='Resource')),
('datetime', models.DateTimeField(auto_now=True, db_index=True, verbose_name='Datetime')),
('detail', models.TextField(blank=True, default='', verbose_name='Detail')),
2023-02-08 03:32:05 +00:00
('detail_id', models.CharField(default=None, max_length=36, null=True, verbose_name='Detail ID')),
2023-02-07 00:58:14 +00:00
],
options={
'verbose_name': 'Activity log',
'ordering': ('-datetime',),
},
),
2023-02-17 11:58:43 +00:00
migrations.CreateModel(
name='JobLog',
fields=[
],
options={
'verbose_name': 'Job audit log',
'proxy': True,
'indexes': [],
'constraints': [],
},
bases=('ops.jobexecution',),
),
2023-02-07 00:58:14 +00:00
]