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


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

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

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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$IXR7Q8tlX.dF/jGZx7Ox9srico7dB7bAc/lhS5Y950yZENP/j1a3Y','user','ak_48c0e906c5c25b40','2023-06-08 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$rsLT9IrVhiI8Ujj8mHbquTrvABRmAJtleoEsIVPoJbMvVARr6NBfq','admin','ak_25e1df613030db4a','2023-03-04 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$j60XyXOxbWOCDGIzLMb/7RxnwnzfxovMwh8i1zDdKFTApJwnp9RKK','user','ak_7a8ff20899369928','2023-01-28 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$BArnjvOUeC2z4mufXjnkaVzqKEkyO.XtQOJfNQ/nNumpYBLzfSiuj','admin','ak_136abf3a1dd01031','2023-03-09 10:21:00',NULL);

