mirror of
https://github.com/lemeow125/DocManagerBackend.git
synced 2025-06-29 00:45:46 +08:00
Add OCR metadata field processing for documents
This commit is contained in:
parent
9b78fdd9ae
commit
b76adb3601
6 changed files with 87 additions and 8 deletions
|
@ -0,0 +1,25 @@
|
|||
# Generated by Django 5.1.3 on 2024-11-24 05:17
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("documents", "0001_initial"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name="document",
|
||||
name="metadata",
|
||||
field=models.TextField(null=True),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name="document",
|
||||
name="document_type",
|
||||
field=models.CharField(
|
||||
choices=[("memorandum", "Memorandum"), ("hoa", "HOA")], max_length=32
|
||||
),
|
||||
),
|
||||
]
|
|
@ -0,0 +1,22 @@
|
|||
# Generated by Django 5.1.3 on 2024-11-24 06:04
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
("documents", "0002_document_metadata_alter_document_document_type"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RemoveField(
|
||||
model_name="document",
|
||||
name="metadata",
|
||||
),
|
||||
migrations.AddField(
|
||||
model_name="document",
|
||||
name="ocr_metadata",
|
||||
field=models.TextField(blank=True, null=True),
|
||||
),
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue