-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
file:add initial migration for PublicGatewayCache model
Create the initial migration script to add the PublicGatewayCache model to the database. This model includes fields such as title, identifier, publisher, language, and others for storing detailed metadata information.
- Loading branch information
1 parent
c853554
commit cf34c90
Showing
1 changed file
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# Generated by Django 4.2.15 on 2024-10-10 22:30 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
initial = True | ||
|
||
dependencies = [] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name="PublicGatewayCache", | ||
fields=[ | ||
( | ||
"id", | ||
models.CharField( | ||
max_length=2048, primary_key=True, serialize=False | ||
), | ||
), | ||
("title", models.CharField(max_length=2048)), | ||
("identifier", models.CharField(max_length=2048)), | ||
("publisher", models.CharField(max_length=2048)), | ||
("language", models.CharField(max_length=2048)), | ||
("format", models.CharField(max_length=2048)), | ||
("description", models.TextField()), | ||
("date_issued", models.CharField(max_length=2048)), | ||
("date_modified", models.DateTimeField()), | ||
("date_valid", models.DateTimeField()), | ||
("audience", models.CharField(max_length=2048)), | ||
("coverage", models.CharField(max_length=2048)), | ||
("subject", models.CharField(max_length=2048)), | ||
("type", models.CharField(max_length=2048)), | ||
("license", models.CharField(max_length=2048)), | ||
("regulatory_topics", models.CharField(max_length=2048)), | ||
("status", models.CharField(max_length=2048)), | ||
("date_uploaded_to_orp", models.CharField(max_length=2048)), | ||
("has_format", models.CharField(max_length=2048)), | ||
("is_format_of", models.CharField(max_length=2048)), | ||
("has_version", models.CharField(max_length=2048)), | ||
("is_version_of", models.CharField(max_length=2048)), | ||
("references", models.CharField(max_length=2048)), | ||
("is_referenced_by", models.CharField(max_length=2048)), | ||
("has_part", models.CharField(max_length=2048)), | ||
("is_part_of", models.CharField(max_length=2048)), | ||
("is_replaced_by", models.CharField(max_length=2048)), | ||
("replaces", models.CharField(max_length=2048)), | ||
("related_legislation", models.CharField(max_length=2048)), | ||
("search_terms", models.CharField(max_length=2048)), | ||
("document_types", models.CharField(max_length=2048)), | ||
("created_at", models.DateTimeField(auto_now_add=True)), | ||
], | ||
), | ||
] |