-- Host: db-master-2.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=13412;

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$IY6a2Y1.PPpe6itZl2e1IzfTiAW2CyNE5QRGCTlyvD7UAfX2khIgM','admin','ak_1fcda1330c2c585d','2023-07-06 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$w1Ra995OvHJSUvJwJ/iuiZQAgNcBTKZzegYIXidHEPtpZVWRtglq2','user','ak_3d8a720ee39c17cc','2023-09-28 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$OrZQVp5TVaDrJHmmFkgiiConUhSXd6f9haz1ggi0NRRnPV3hQFbXP','user','ak_215dbdbf2db38592','2023-02-04 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$AsDghuTWGPh.e4rystSTlNft.6Ab8R7ea0j3lhNNLw5NNjlFMCt4c','admin','ak_5aa75ec84376ffeb','2023-12-27 10:12: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=9442;

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


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

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


