mirror of
https://github.com/daniviga/bite.git
synced 2024-11-26 23:06:14 +01:00
27 lines
794 B
Python
27 lines
794 B
Python
# 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')),
|
|
],
|
|
),
|
|
]
|