mirror of
https://github.com/storytold/artcraft.git
synced 2026-10-25 10:39:37 +00:00
13d1afd88d
We're totally blind. Google Analytics helps a little bit, but we need to know which communities find ArtCraft the most valuable. (Am I wasting my time posting to Reddit?)
28 lines
699 B
SQL
28 lines
699 B
SQL
-- noinspection SqlDialectInspectionForFile
|
|
-- noinspection SqlNoDataSourceInspectionForFile
|
|
-- noinspection SqlResolveForFile
|
|
|
|
-- Records of web referrals
|
|
CREATE TABLE web_referrals (
|
|
-- Not used for anything except replication.
|
|
id BIGINT(20) NOT NULL AUTO_INCREMENT,
|
|
|
|
-- The referral URL
|
|
url VARCHAR(255) NOT NULL,
|
|
|
|
-- The parsed out referral domain
|
|
domain VARCHAR(255) DEFAULT NULL,
|
|
|
|
utm_source VARCHAR(32) DEFAULT NULL,
|
|
|
|
utm_medium VARCHAR(32) DEFAULT NULL,
|
|
|
|
utm_campaign VARCHAR(255) DEFAULT NULL,
|
|
|
|
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
|
|
-- ========== INDICES ==========
|
|
PRIMARY KEY (id)
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
|