StudE-Backend/stude/student_status/migrations/0001_initial.py

30 lines
1 KiB
Python
Raw Normal View History

# Generated by Django 4.2.3 on 2023-09-03 09:32
2023-06-26 22:06:05 +08:00
from django.conf import settings
import django.contrib.gis.db.models.fields
2023-06-26 22:06:05 +08:00
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('landmarks', '0001_initial'),
('accounts', '0002_initial'),
2023-06-26 22:06:05 +08:00
]
operations = [
migrations.CreateModel(
name='StudentStatus',
fields=[
('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, primary_key=True, serialize=False, to=settings.AUTH_USER_MODEL)),
('location', django.contrib.gis.db.models.fields.PointField(blank=True, null=True, srid=4326)),
2023-06-27 13:40:31 +08:00
('active', models.BooleanField(default=False)),
('timestamp', models.DateTimeField(auto_now_add=True)),
('landmark', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='landmarks.landmark')),
2023-06-26 22:06:05 +08:00
],
),
]