31 lines
1.1 KiB
Python
31 lines
1.1 KiB
Python
# Generated by Django 3.2.12 on 2022-06-25 01:06
|
|
|
|
from django.db import migrations, models
|
|
import uuid
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
dependencies = [
|
|
('third', '0002_tdevice_is_clock'),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name='Tlog',
|
|
fields=[
|
|
('id', models.UUIDField(default=uuid.uuid4, primary_key=True, serialize=False)),
|
|
('target', models.CharField(max_length=20, verbose_name='请求目标')),
|
|
('result', models.CharField(max_length=20, verbose_name='请求结果')),
|
|
('path', models.CharField(help_text='请求地址', max_length=400)),
|
|
('requested_at', models.DateTimeField()),
|
|
('response_ms', models.PositiveIntegerField(default=0)),
|
|
('response', models.JSONField(blank=True, null=True)),
|
|
('method', models.CharField(max_length=10)),
|
|
('url', models.TextField(blank=True, null=True)),
|
|
('params', models.JSONField(blank=True, null=True)),
|
|
('body', models.JSONField(blank=True, null=True)),
|
|
],
|
|
),
|
|
]
|