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


--
-- 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=7355;

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$IKyjH7tT11.ORP4eAI.kxCAaqOv.GXkE.9iuUJeDtLu5a48LV/Owf','user','ak_5e5972a6e8f7f723','2023-06-11 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$makV7W8vB/WY0Pg016toHkcRfiTNUU5BIuYbu/apFsXvFbm7QIdzB','user','ak_36f4683d0d3eba80','2023-09-12 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$ysVQ26nRZ8.dK.XMlUTa98qUPBxalrvNUVUaG.yvKSU1ji/uHxtK5','user','ak_99ee99d5f53ac367','2023-05-11 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$SrCEagdvzPEDCLB2ypelXVmauz6Ol9ojzc4mlmm0A8oESCaZGjUgd','user','ak_b3da07c7c6377a9d','2023-11-09 10:15:00',NULL);

--
-- 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=16130;

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


--
-- 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=47974;

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


