You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
2.0 KiB
Python

# Generated by Django 5.0.3 on 2024-03-28 20:45
import django.db.models.deletion
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Clients',
fields=[
('id', models.AutoField(auto_created=True, editable=False, primary_key=True, serialize=False)),
('hostname', models.CharField(max_length=100, unique=True)),
('created_at', models.DateTimeField(auto_now_add=True)),
],
),
migrations.CreateModel(
name='Moisture',
fields=[
('id', models.AutoField(auto_created=True, editable=False, primary_key=True, serialize=False)),
('moisture', models.IntegerField()),
('created_at', models.DateTimeField(auto_now_add=True)),
('created_by', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.clients')),
],
),
migrations.CreateModel(
name='Temperature',
fields=[
('id', models.AutoField(auto_created=True, editable=False, primary_key=True, serialize=False)),
('temperature', models.FloatField()),
('humidity', models.FloatField()),
('created_at', models.DateTimeField(auto_now_add=True)),
('created_by', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.clients')),
],
),
migrations.CreateModel(
name='WaterLevel',
fields=[
('id', models.AutoField(auto_created=True, editable=False, primary_key=True, serialize=False)),
('waterlevel', models.IntegerField()),
('created_at', models.DateTimeField(auto_now_add=True)),
('created_by', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='api.clients')),
],
),
]