2023-09-25 21:09:31 +08:00
|
|
|
# Generated by Django 4.2.3 on 2023-09-25 13:07
|
2023-06-26 22:06:05 +08:00
|
|
|
|
|
|
|
from django.conf import settings
|
2023-07-09 19:00:47 +08:00
|
|
|
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 = [
|
2023-09-25 21:09:31 +08:00
|
|
|
('accounts', '0001_initial'),
|
|
|
|
('study_groups', '0001_initial'),
|
2023-08-06 14:19:55 +08:00
|
|
|
('landmarks', '0001_initial'),
|
2023-09-25 21:09:31 +08:00
|
|
|
('subjects', '0001_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)),
|
2023-07-09 19:00:47 +08:00
|
|
|
('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)),
|
2023-09-03 17:46:36 +08:00
|
|
|
('timestamp', models.DateTimeField(auto_now_add=True)),
|
2023-07-18 15:51:06 +08:00
|
|
|
('landmark', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='landmarks.landmark')),
|
2023-09-25 21:09:31 +08:00
|
|
|
('study_group', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='students', to='study_groups.studygroup')),
|
|
|
|
('subject', models.ForeignKey(null=True, on_delete=django.db.models.deletion.SET_NULL, to='subjects.subject', to_field='name')),
|
2023-06-26 22:06:05 +08:00
|
|
|
],
|
|
|
|
),
|
|
|
|
]
|