1
0
mirror of https://github.com/daniviga/bite.git synced 2024-12-25 17:41:23 +01:00
bite/beer/telemetry/migrations/0001_initial.py

27 lines
794 B
Python
Raw Normal View History

2020-06-02 00:57:20 +02:00
# Generated by Django 3.0.6 on 2020-06-01 14:45
import django.contrib.postgres.fields.jsonb
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('api', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Telemetry',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('time', models.DateTimeField(auto_now_add=True)),
('payload', django.contrib.postgres.fields.jsonb.JSONField()),
('device', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.Device')),
],
),
]