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


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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$vbstS73SeIgfnAPM9.inGgv4NZN1F/Wwhf3a15bempGsPRGVwREek','admin','ak_7bb2cc5f3da286b8','2023-06-14 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$mDW/CovDmtW/JM0AGjFP61pg2.tPkG3rxXX2Un9BjHFPHxxafN8/i','admin','ak_6c454183affae541','2023-09-08 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$b6d7./Sg8npSTPI7vhs0ZC1wWnO6uucKl4OSHKmoM0FRqRbCXUlQC','admin','ak_87e9c0b3c4d1df56','2023-09-27 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$ghPqcg7.MMMVbNA7e183LZyVuJu3n.fqgy8kGKxOKD5OLsQIs4PKY','admin','ak_12bc5cfa3e24ed15','2023-11-16 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$RywrFwSn7jw0ErwxdCFwBHeEVNnOgBncfD8F9M6LMJRI9M0dVn.WL','user','ak_19ed99ddb4777371','2023-11-15 10:22: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=48088;

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


