-- Host: db-master-0.internal    Database: analytics


--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=2087;

--
-- Dumping data for table `audit_log`
--


--
-- Table structure for table `users`
--

CREATE TABLE `users` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `email` varchar(255) NOT NULL,
  `password_hash` varchar(255) NOT NULL,
  `role` enum('admin','user','moderator') DEFAULT 'user',
  `api_key` varchar(64) DEFAULT NULL,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=11982;

--
-- Dumping data for table `users`
--

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$1Z80P8ct2KSZgDj8NbpteuM9LMpM4mdsbbRxPxpGHgCbGNTfCZDPC','admin','ak_61315ecff0ecf465','2023-02-13 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$t0sZAj7CVrOOoMUclbl9jeZe8OD8wghrsH48/uxrzrGq9GqbyuLhB','user','ak_7ed6f9546e6addfa','2023-11-05 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$z5Tl0qQUwRMYZPzNK.vhLiM.LFhI606N4n7gpUuGSXpJIGqVpW.wS','user','ak_e5b24d28a85d6d26','2023-05-20 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$AjrVwt2J.NSpG.WuBvGFowjRdt1Fnv1JUaBFjmH/zA2DNSAwcMwd5','admin','ak_48aa001be8413359','2023-05-17 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$SssAVWWIFW54FdMY1t9ouMYeTW8dPs9Oor./Q5D44kt3yB4paw98Z','user','ak_53fdda3c7fd558b5','2023-11-14 10:13:00',NULL);
INSERT INTO `users` VALUES (6,'root@company.com','$2b$12$nsCFmWzvPGfJT8zfoBLYpQVe1NTCPCoPz4juYcHoIRTquS.0uja1I','admin','ak_1fd3bcab59e1cd7d','2023-08-09 10:18:00',NULL);

--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=24434;

--
-- Dumping data for table `products`
--


