File Table

From truxwiki.com
Revision as of 13:42, 21 May 2020 by Sam (talk | contribs) (Created page with "The <code>File</code> table holds the meta data information about a file. <syntaxhighlight lang="SQL"> CREATE TABLE "File" ( "ID" uuid NOT NULL, "MediaID" uuid NOT NU...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

The File table holds the meta data information about a file.

CREATE TABLE "File" (
    "ID" uuid NOT NULL,
    "MediaID" uuid NOT NULL,
    "ParentFileID" uuid NOT NULL,
    "Attributes" integer DEFAULT 0 NOT NULL,
    "RawEntropy" smallint DEFAULT 0 NOT NULL,
    "OSLength" bigint DEFAULT 0 NOT NULL,
    "HashID" uuid NOT NULL,
    "Signature" integer DEFAULT 0 NOT NULL,
    "OriginID" smallint DEFAULT 0 NOT NULL,
    "ContentStatusID" smallint DEFAULT 0 NOT NULL,
    "Created" timestamp without time zone NOT NULL,
    "LastAccess" timestamp without time zone NOT NULL,
    "LastWrite" timestamp without time zone NOT NULL,
    "FilenameID" bigint DEFAULT 0 NOT NULL,
    "FileTypeID" smallint DEFAULT 0 NOT NULL,
    "PhysicalDiskOffset" bigint DEFAULT 0 NOT NULL,
    "NumberOfChildren" integer DEFAULT 0 NOT NULL,
    "FullPathID" bigint DEFAULT 0 NOT NULL
);