📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
CREATE TABLE IF NOT EXISTS `payout` (
`id` varchar(36) NOT NULL,
`created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`amount` decimal(10,0) NOT NULL,
`currency` varchar(3) NOT NULL,
`referralId` varchar(36) NOT NULL,
`status` enum('processing','pending','paid','suspended') DEFAULT 'pending',
`paidAt` timestamp NULL DEFAULT NULL,
`transactionId` varchar(50) DEFAULT NULL,
`userId` varchar(36) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
alter table user add column `referrerID` varchar(255) DEFAULT NULL after `receiveLoginNotifications`;
alter table user add column `paypalPaymentsEmail` varchar(254) DEFAULT NULL after `referrerID`;
alter table user add column `refCode` varchar(8) DEFAULT NULL after `paypalPaymentsEmail`;