Merged in feature/part (pull request #113)

Size Import Parts

* parts

* think

* workingpart

* textout
This commit is contained in:
Michael McGuinness
2025-04-08 12:44:09 +00:00
parent 60812aba91
commit edc50c7510
21 changed files with 873 additions and 66 deletions
@@ -27,8 +27,11 @@ CREATE FUNCTION isInVersion(
RETURNS boolean as $$
BEGIN
RETURN _version is null OR (
_version >= _addedVersion AND
_version >= _addedVersion AND
(_removedVersion is null OR _version < _removedVersion)
);
END;
$$ LANGUAGE plpgsql;
$$ LANGUAGE plpgsql;
CREATE DOMAIN unsignedsmallint AS SMALLINT
CHECK (VALUE >= 0);
@@ -54,6 +54,8 @@ CREATE TABLE documentTextTriggerExtractions (
id uuid primary key DEFAULT uuid_generate_v7(),
cleanId uuid not null,
version bigint not null,
createdAt timestamp not null,
part unsignedsmallint not null,
textractJobId text,
foreign key (cleanId) references documentCleans(id)
);
@@ -62,7 +64,9 @@ CREATE TABLE documentTextExtractions (
id uuid primary key DEFAULT uuid_generate_v7(),
bucket text not null,
key text not null,
hash text not null
hash text not null,
createdAt timestamp not null,
part unsignedsmallint not null
);
CREATE TABLE documentTextExtractionEntries (