Skip to content

Commit

Permalink
feat: add model project metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
Bidaya0 committed Aug 1, 2023
1 parent e6e4083 commit 24b3692
Showing 1 changed file with 28 additions and 13 deletions.
41 changes: 28 additions & 13 deletions dongtai_common/migrations/0005_iastprojectmetadata.py
Original file line number Diff line number Diff line change
@@ -1,30 +1,45 @@
# Generated by Django 3.2.20 on 2023-08-01 11:33

from django.db import migrations, models
import django.db.models.deletion
from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('dongtai_common', '0004_auto_20230731_1556'),
("dongtai_common", "0004_auto_20230731_1556"),
]

operations = [
migrations.CreateModel(
name='IastProjectMetaData',
name="IastProjectMetaData",
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('api_count', models.IntegerField(default=0, help_text='API数量统计')),
('vul_api_count', models.IntegerField(default=0, help_text='漏洞API数量统计')),
('create_at', models.DateTimeField(auto_now_add=True, null=True)),
('update_at', models.DateTimeField(auto_now=True, null=True)),
('project', models.ForeignKey(db_constraint=False, on_delete=django.db.models.deletion.CASCADE, to='dongtai_common.iastproject')),
('project_version', models.ForeignKey(blank=True, db_constraint=False, default=-1, on_delete=django.db.models.deletion.DO_NOTHING, to='dongtai_common.iastprojectversion')),
("id", models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name="ID")),
("api_count", models.IntegerField(default=0, help_text="API数量统计")),
("vul_api_count", models.IntegerField(default=0, help_text="漏洞API数量统计")),
("create_at", models.DateTimeField(auto_now_add=True, null=True)),
("update_at", models.DateTimeField(auto_now=True, null=True)),
(
"project",
models.ForeignKey(
db_constraint=False,
on_delete=django.db.models.deletion.CASCADE,
to="dongtai_common.iastproject",
),
),
(
"project_version",
models.ForeignKey(
blank=True,
db_constraint=False,
default=-1,
on_delete=django.db.models.deletion.DO_NOTHING,
to="dongtai_common.iastprojectversion",
),
),
],
options={
'db_table': 'iast_project_meta_data',
'managed': True,
"db_table": "iast_project_meta_data",
"managed": True,
},
),
]

0 comments on commit 24b3692

Please sign in to comment.