Skip to content

Instantly share code, notes, and snippets.

@PaulieScanlon
Created May 13, 2024 19:04
Show Gist options
  • Save PaulieScanlon/1278421844461c170884439218c32e4a to your computer and use it in GitHub Desktop.
Save PaulieScanlon/1278421844461c170884439218c32e4a to your computer and use it in GitHub Desktop.
Schema for analytics table
CREATE TABLE analytics (
id SERIAL PRIMARY KEY,
date TIMESTAMP WITH TIME ZONE NOT NULL,
slug VARCHAR NOT NULL,
referrer VARCHAR,
flag VARCHAR,
country VARCHAR,
city VARCHAR,
latitude DECIMAL,
longitude DECIMAL
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment