e702eb8d9e
Universal: PR Check / Branch Policy (pull_request) Successful in 2s
Branch Cleanup / Delete merged branch (pull_request) Failing after 1s
RC Revert / Rename rc/ back to dev/ (pull_request) Has been skipped
Universal: PR Check / Validate PR (pull_request) Failing after 6s
Universal: PR Check / Secret Scan (pull_request) Successful in 6s
Generic: Project CI / Lint & Validate (pull_request) Successful in 20s
Universal: Auto Version Bump / Version Bump (push) Successful in 11s
Joomla: Metadata Validation / Validate Joomla Metadata (pull_request) Successful in 40s
Generic: Project CI / Tests (pull_request) Has been cancelled
Universal: PR Check / Build RC Package (pull_request) Has been cancelled
Universal: PR Check / Report Issues (pull_request) Has been cancelled
Authored-by: Moko Consulting
24 lines
1.0 KiB
SQL
24 lines
1.0 KiB
SQL
-- MokoSuiteCross 01.08.54 -- Best time to post analytics
|
|
-- Copyright (C) 2026 Moko Consulting. All rights reserved.
|
|
-- SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
CREATE TABLE IF NOT EXISTS `#__mokosuitecross_analytics` (
|
|
`id` int unsigned NOT NULL AUTO_INCREMENT,
|
|
`post_id` int unsigned NOT NULL,
|
|
`service_id` int unsigned NOT NULL,
|
|
`service_type` varchar(50) NOT NULL DEFAULT '',
|
|
`posted_at` datetime DEFAULT NULL,
|
|
`day_of_week` tinyint unsigned NOT NULL DEFAULT 0,
|
|
`hour_of_day` tinyint unsigned NOT NULL DEFAULT 0,
|
|
`impressions` int unsigned NOT NULL DEFAULT 0,
|
|
`engagements` int unsigned NOT NULL DEFAULT 0,
|
|
`clicks` int unsigned NOT NULL DEFAULT 0,
|
|
`shares` int unsigned NOT NULL DEFAULT 0,
|
|
`engagement_rate` decimal(5,2) NOT NULL DEFAULT 0.00,
|
|
`created` datetime NOT NULL,
|
|
PRIMARY KEY (`id`),
|
|
KEY `idx_service_type` (`service_type`),
|
|
KEY `idx_day_hour` (`day_of_week`, `hour_of_day`),
|
|
KEY `idx_post` (`post_id`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|