Skip to content

Commit

Permalink
add migration file
Browse files Browse the repository at this point in the history
  • Loading branch information
kwanok committed Mar 12, 2024
1 parent 560f84c commit a7ff312
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions web/project/app/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Generated by Django 5.0.2 on 2024-03-12 06:26

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


class Migration(migrations.Migration):

initial = True

dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]

operations = [
migrations.CreateModel(
name="UserActivity",
fields=[
(
"id",
models.BigAutoField(
auto_created=True,
primary_key=True,
serialize=False,
verbose_name="ID",
),
),
("path", models.CharField(max_length=255)),
("created_at", models.DateTimeField(auto_now_add=True)),
(
"user",
models.ForeignKey(
on_delete=django.db.models.deletion.CASCADE,
to=settings.AUTH_USER_MODEL,
),
),
],
),
]

0 comments on commit a7ff312

Please sign in to comment.