Difference between revisions of "WebsiteVisit Table"

From truxwiki.com
Jump to navigation Jump to search
(Created page with "This is how Truxton records website visits. <syntaxhighlight lang="SQL"> CREATE TABLE "WebsiteVisit" ( "ID" uuid NOT NULL, "URLTypeID" smallint, "URLID" bigint DEF...")
 
Line 1: Line 1:
 
This is how Truxton records website visits.
 
This is how Truxton records website visits.
<syntaxhighlight lang="SQL">
+
 
CREATE TABLE "WebsiteVisit" (
+
<source lang="SQL">
    "ID" uuid NOT NULL,
+
CREATE TABLE "WebsiteVisit"
    "URLTypeID" smallint,
+
(
    "URLID" bigint DEFAULT 0 NOT NULL,
+
  "ID" uuid NOT NULL,
    "When" timestamp without time zone NOT NULL,
+
  "URLTypeID" smallint,
    "AccountID" bigint DEFAULT 0 NOT NULL,
+
  "URLID" bigint DEFAULT 0 NOT NULL,
    "WebsiteMethodID" smallint DEFAULT 0 NOT NULL,
+
  "When" timestamp without time zone NOT NULL,
    "FileID" uuid DEFAULT '00000000-0000-0000-0000-000000000000'::uuid NOT NULL,
+
  "AccountID" bigint DEFAULT 0 NOT NULL,
    "MediaID" uuid DEFAULT '00000000-0000-0000-0000-000000000000'::uuid NOT NULL,
+
  "WebsiteMethodID" smallint DEFAULT 0 NOT NULL,
    "LocalFilename" text DEFAULT ''::text NOT NULL,
+
  "FileID" uuid DEFAULT '00000000-0000-0000-0000-000000000000'::uuid NOT NULL,
    "Offset" bigint DEFAULT (-1) NOT NULL,
+
  "MediaID" uuid DEFAULT '00000000-0000-0000-0000-000000000000'::uuid NOT NULL,
    "DomainID" bigint DEFAULT 0 NOT NULL,
+
  "LocalFilename" text DEFAULT ''::text NOT NULL,
    "LocalFileID" uuid DEFAULT '00000000-0000-0000-0000-000000000000'::uuid NOT NULL
+
  "Offset" bigint DEFAULT (-1) NOT NULL,
 +
  "DomainID" bigint DEFAULT 0 NOT NULL,
 +
  "LocalFileID" uuid DEFAULT '00000000-0000-0000-0000-000000000000'::uuid NOT NULL
 
);
 
);
</syntaxhighlight>
+
</source>

Revision as of 08:55, 8 December 2020

This is how Truxton records website visits.

CREATE TABLE "WebsiteVisit"
(
  "ID" uuid NOT NULL,
  "URLTypeID" smallint,
  "URLID" bigint DEFAULT 0 NOT NULL,
  "When" timestamp without time zone NOT NULL,
  "AccountID" bigint DEFAULT 0 NOT NULL,
  "WebsiteMethodID" smallint DEFAULT 0 NOT NULL,
  "FileID" uuid DEFAULT '00000000-0000-0000-0000-000000000000'::uuid NOT NULL,
  "MediaID" uuid DEFAULT '00000000-0000-0000-0000-000000000000'::uuid NOT NULL,
  "LocalFilename" text DEFAULT ''::text NOT NULL,
  "Offset" bigint DEFAULT (-1) NOT NULL,
  "DomainID" bigint DEFAULT 0 NOT NULL,
  "LocalFileID" uuid DEFAULT '00000000-0000-0000-0000-000000000000'::uuid NOT NULL
);