update
This commit is contained in:
82
analytics/migrations/0001_initial.py
Normal file
82
analytics/migrations/0001_initial.py
Normal file
@@ -0,0 +1,82 @@
|
||||
# Generated by Django 5.2.8 on 2025-11-26 13:41
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
initial = True
|
||||
|
||||
dependencies = [
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='OSINTStatistic',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('date', models.DateField(unique=True)),
|
||||
('total_tasks', models.IntegerField(default=0)),
|
||||
('completed_tasks', models.IntegerField(default=0)),
|
||||
('failed_tasks', models.IntegerField(default=0)),
|
||||
('average_confidence', models.FloatField(default=0.0, help_text='Average confidence score')),
|
||||
('created_at', models.DateTimeField(auto_now_add=True)),
|
||||
('updated_at', models.DateTimeField(auto_now=True)),
|
||||
],
|
||||
options={
|
||||
'verbose_name': 'OSINT Statistic',
|
||||
'verbose_name_plural': 'OSINT Statistics',
|
||||
'db_table': 'analytics_osintstatistic',
|
||||
'ordering': ['-date'],
|
||||
},
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='UserStatistic',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('date', models.DateField(unique=True)),
|
||||
('total_users', models.IntegerField(default=0)),
|
||||
('new_users', models.IntegerField(default=0)),
|
||||
('active_users', models.IntegerField(default=0, help_text='Users who logged in')),
|
||||
('moderators', models.IntegerField(default=0)),
|
||||
('admins', models.IntegerField(default=0)),
|
||||
('created_at', models.DateTimeField(auto_now_add=True)),
|
||||
('updated_at', models.DateTimeField(auto_now=True)),
|
||||
],
|
||||
options={
|
||||
'verbose_name': 'User Statistic',
|
||||
'verbose_name_plural': 'User Statistics',
|
||||
'db_table': 'analytics_userstatistic',
|
||||
'ordering': ['-date'],
|
||||
},
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='ReportStatistic',
|
||||
fields=[
|
||||
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('date', models.DateField(unique=True)),
|
||||
('total_reports', models.IntegerField(default=0)),
|
||||
('pending_reports', models.IntegerField(default=0)),
|
||||
('verified_reports', models.IntegerField(default=0)),
|
||||
('rejected_reports', models.IntegerField(default=0)),
|
||||
('phishing_count', models.IntegerField(default=0)),
|
||||
('fake_website_count', models.IntegerField(default=0)),
|
||||
('romance_scam_count', models.IntegerField(default=0)),
|
||||
('investment_scam_count', models.IntegerField(default=0)),
|
||||
('tech_support_scam_count', models.IntegerField(default=0)),
|
||||
('identity_theft_count', models.IntegerField(default=0)),
|
||||
('fake_product_count', models.IntegerField(default=0)),
|
||||
('advance_fee_count', models.IntegerField(default=0)),
|
||||
('other_count', models.IntegerField(default=0)),
|
||||
('created_at', models.DateTimeField(auto_now_add=True)),
|
||||
('updated_at', models.DateTimeField(auto_now=True)),
|
||||
],
|
||||
options={
|
||||
'verbose_name': 'Report Statistic',
|
||||
'verbose_name_plural': 'Report Statistics',
|
||||
'db_table': 'analytics_reportstatistic',
|
||||
'ordering': ['-date'],
|
||||
'indexes': [models.Index(fields=['date'], name='analytics_r_date_0bacbd_idx')],
|
||||
},
|
||||
),
|
||||
]
|
||||
0
analytics/migrations/__init__.py
Normal file
0
analytics/migrations/__init__.py
Normal file
Reference in New Issue
Block a user