123456789101112131415161718192021222324252627282930313233343536373839404142 |
- # Generated by Django 4.1.3 on 2022-12-12 22:08
- import django.db.models.deletion
- from django.db import migrations, models
- class Migration(migrations.Migration):
- dependencies = [
- (
- "projects",
- "0001_squashed_0009_alter_project_id_alter_projectcounter_id_and_more",
- ),
- ]
- operations = [
- migrations.CreateModel(
- name="EventProjectHourlyStatistic",
- fields=[
- (
- "id",
- models.BigAutoField(
- auto_created=True,
- primary_key=True,
- serialize=False,
- verbose_name="ID",
- ),
- ),
- ("date", models.DateTimeField()),
- ("count", models.PositiveIntegerField()),
- (
- "project",
- models.ForeignKey(
- on_delete=django.db.models.deletion.CASCADE,
- to="projects.project",
- ),
- ),
- ],
- options={
- "unique_together": {("project", "date")},
- },
- ),
- ]
|