2023-10-02 00:46:44 +08:00
|
|
|
# Generated by Django 4.2.5 on 2023-10-01 16:37
|
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-10-02 00:46:44 +08:00
|
|
|
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
|
2023-09-25 21:09:31 +08:00
|
|
|
('study_groups', '0001_initial'),
|
|
|
|
('subjects', '0001_initial'),
|
2023-10-02 00:46:44 +08:00
|
|
|
('landmarks', '0001_initial'),
|
2023-06-26 22:06:05 +08:00
|
|
|
]
|
|
|
|
|
|
|
|
operations = [
|
|
|
|
migrations.CreateModel(
|
|
|
|
name='StudentStatus',
|
|
|
|
fields=[
|
2023-10-02 00:46:44 +08:00
|
|
|
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
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-10-02 00:46:44 +08:00
|
|
|
('user', models.OneToOneField(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)),
|
2023-06-26 22:06:05 +08:00
|
|
|
],
|
|
|
|
),
|
|
|
|
]
|