Skip to content

Commit

Permalink
migration
Browse files Browse the repository at this point in the history
  • Loading branch information
longhotsummer committed Oct 10, 2024
1 parent ec01047 commit e730901
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions peachjam/migrations/0165_editactivity.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Generated by Django 4.2.14 on 2024-10-10 13:20

import django.db.models.deletion
from django.conf import settings
from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
("peachjam", "0164_peachjamsettings_robots_txt"),
]

operations = [
migrations.CreateModel(
name="EditActivity",
fields=[
(
"id",
models.BigAutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("start", models.DateTimeField()),
("end", models.DateTimeField()),
("seconds", models.IntegerField()),
(
"stage",
models.CharField(
choices=[
("initial", "initial"),
("corrections", "corrections"),
],
default="initial",
max_length=255,
),
),
(
"document",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
to="peachjam.coredocument",
),
),
(
"user",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
to=settings.AUTH_USER_MODEL,
),
),
],
options={
"ordering": ("start",),
},
),
]

0 comments on commit e730901

Please sign in to comment.