index.community/scraper/migrations/0001_initial.py

29 lines
1 KiB
Python
Raw Normal View History

2018-08-29 17:58:06 +00:00
# Generated by Django 2.1 on 2018-08-29 17:37
2018-08-26 00:32:55 +00:00
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Instance',
fields=[
2018-08-26 18:15:50 +00:00
('name', models.CharField(max_length=200, primary_key=True, serialize=False)),
2018-08-29 17:58:06 +00:00
('domain_count', models.IntegerField(blank=True, null=True)),
('status_count', models.IntegerField(blank=True, null=True)),
('user_count', models.IntegerField(blank=True, null=True)),
2018-08-26 18:15:50 +00:00
('version', models.CharField(blank=True, max_length=1000)),
2018-08-26 00:32:55 +00:00
('status', models.CharField(max_length=100)),
2018-08-29 17:58:06 +00:00
('first_seen', models.DateTimeField(auto_now_add=True)),
('last_updated', models.DateTimeField(auto_now=True)),
('peers', models.ManyToManyField(related_name='_instance_peers_+', to='scraper.Instance')),
2018-08-26 00:32:55 +00:00
],
),
]