75 lines
2.7 KiB
Python
75 lines
2.7 KiB
Python
|
# Generated by Django 4.2.3 on 2023-07-11 16:06
|
||
|
|
||
|
import datetime
|
||
|
from django.db import migrations, models
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
initial = True
|
||
|
|
||
|
dependencies = []
|
||
|
|
||
|
operations = [
|
||
|
migrations.CreateModel(
|
||
|
name="Comment",
|
||
|
fields=[
|
||
|
(
|
||
|
"id",
|
||
|
models.BigAutoField(
|
||
|
auto_created=True,
|
||
|
primary_key=True,
|
||
|
serialize=False,
|
||
|
verbose_name="ID",
|
||
|
),
|
||
|
),
|
||
|
("created", models.DateTimeField(auto_now_add=True)),
|
||
|
("modified", models.DateTimeField(auto_now=True)),
|
||
|
("name", models.CharField(max_length=1024)),
|
||
|
("email", models.CharField(max_length=1024)),
|
||
|
("text", models.TextField(blank=True, default="")),
|
||
|
("data", models.JSONField(default=dict, editable=False)),
|
||
|
("published", models.DateTimeField(default=None, null=True)),
|
||
|
],
|
||
|
),
|
||
|
migrations.CreateModel(
|
||
|
name="Item",
|
||
|
fields=[
|
||
|
(
|
||
|
"id",
|
||
|
models.BigAutoField(
|
||
|
auto_created=True,
|
||
|
primary_key=True,
|
||
|
serialize=False,
|
||
|
verbose_name="ID",
|
||
|
),
|
||
|
),
|
||
|
("created", models.DateTimeField(auto_now_add=True)),
|
||
|
("modified", models.DateTimeField(auto_now=True)),
|
||
|
("url", models.CharField(max_length=1024, unique=True)),
|
||
|
("title", models.CharField(max_length=1024)),
|
||
|
("description", models.TextField(blank=True, default="")),
|
||
|
("published", models.DateTimeField(default=datetime.datetime.now)),
|
||
|
("announced", models.DateTimeField(default=None, null=True)),
|
||
|
("data", models.JSONField(default=dict, editable=False)),
|
||
|
],
|
||
|
),
|
||
|
migrations.CreateModel(
|
||
|
name="Settings",
|
||
|
fields=[
|
||
|
(
|
||
|
"id",
|
||
|
models.BigAutoField(
|
||
|
auto_created=True,
|
||
|
primary_key=True,
|
||
|
serialize=False,
|
||
|
verbose_name="ID",
|
||
|
),
|
||
|
),
|
||
|
("created", models.DateTimeField(auto_now_add=True)),
|
||
|
("modified", models.DateTimeField(auto_now=True)),
|
||
|
("key", models.CharField(max_length=1024, unique=True)),
|
||
|
("value", models.JSONField(default=dict, editable=False)),
|
||
|
],
|
||
|
),
|
||
|
]
|