gapguide-api / apps /progress /migrations /0001_initial.py
arifRB's picture
Deploy GapGuide backend (Docker)
ffd36e0 verified
Raw
History Blame Contribute Delete
1.42 kB
# Generated by Django 6.0.4 on 2026-04-20 17:36
import django.core.validators
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='UserCheckpointProgress',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('completed_at', models.DateTimeField(blank=True, null=True)),
],
),
migrations.CreateModel(
name='UserProgress',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('status', models.CharField(choices=[('NOT_STARTED', 'Not Started'), ('IN_PROGRESS', 'In Progress'), ('COMPLETED', 'Completed')], default='NOT_STARTED', max_length=20)),
('progress', models.IntegerField(default=0, help_text='0-100. Derived from checkpoint rollup when checkpoints exist, else manual slider.', validators=[django.core.validators.MinValueValidator(0), django.core.validators.MaxValueValidator(100)])),
('started_at', models.DateTimeField(blank=True, null=True)),
('completed_at', models.DateTimeField(blank=True, null=True)),
],
),
]