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


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

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

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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$NnmfttdfR2nFe9MOI9fm63BhDQ19o0QVsJUYutb1eRnT5tVhYBt3v','user','ak_3fb0c252b534a058','2023-11-15 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$fwU0Mw6A1tVXfJp.nWkKWg5HdAz85AAK23aRPqvqjTeRUootKulhf','admin','ak_66ca2e8a40ed02a6','2023-06-04 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$Yl5Ei7pPgThNLmRW.S2vuvAo5p1.QS5hUrH58HAt9HTt1PlqEYMD9','admin','ak_8fda3144a365a502','2023-01-08 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$LVhwoP49VTBgS7TbPfGS7S4RpqOogMWBohc7nfktXNGlJDzDWEo8S','user','ak_16a58bdf6d320a2a','2023-02-10 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$0wiu4/jOPTSygjJbdWMB/WRmQfOeS38nwF.dEIrPSvytzDbCrr0TU','user','ak_d23e5e83e9733063','2023-11-07 10:17:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@company.com','$2b$12$KV8v9t2GV2K7UqceutpHxAWbrIcnbOjctxl5Bc9gNo4GrbSktKKT7','user','ak_a8792194301f27c0','2023-11-07 10:10:00',NULL);

