Commit d113daee authored by Florent Chehab's avatar Florent Chehab Committed by Maxime Emschwiller
Browse files

feature(backend): creation of model DailyConnections

parent 62cd62e8
# Generated by Django 2.1.7 on 2020-05-22 16:29
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = []
operations = [
migrations.CreateModel(
name="DailyConnections",
fields=[
(
"id",
models.AutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("date", models.DateTimeField(unique=True)),
(
"nb_connections",
models.IntegerField(
validators=[django.core.validators.MinValueValidator(0)]
),
),
],
)
]
from django.db import models
from django.core.validators import MinValueValidator
class DailyConnections(models.Model):
date = models.DateTimeField(unique=True, null=False)
nb_connections = models.IntegerField(validators=[MinValueValidator(0)], null=False)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment