mirror of
https://github.com/storytold/artcraft.git
synced 2026-10-25 18:49:38 +00:00
d374317a77
Without these I won't know if someone is spamming us with fraudulent data
32 lines
788 B
SQL
32 lines
788 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,
|
|
|
|
ip_address VARCHAR(40) NOT NULL,
|
|
|
|
anonymous_visitor_token VARCHAR(32) DEFAULT NULL,
|
|
|
|
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
|
|
-- ========== INDICES ==========
|
|
PRIMARY KEY (id)
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin;
|