Files
PacketStation/server/packetstation/migrations/0009_drawing_revisions.sql
T

20 lines
675 B
SQL
Raw Normal View History

-- Other revs of a drawing that M-Files still holds (a Retired rev VISUAL calls), so Clerical can choose between
-- the rev VISUAL calls and the Effective one. One row per drawing number and rev. asset_id is the fetched copy.
CREATE TABLE drawing_revisions (
dwg text NOT NULL,
rev int NOT NULL,
checked_at timestamptz NOT NULL,
controlled text NOT NULL,
state text,
name text,
obj_id int,
obj_version int,
file_id int,
file_version int,
file_size bigint,
base text,
asset_id uuid REFERENCES assets (id),
sha256 bytea,
PRIMARY KEY (dwg, rev)
);