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


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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$QOHK5QPrrECX8/rxFRc3BmDG/z1ncMlAXRjtnTMvHEakdZjwFFxDR','user','ak_f7b65dae4f693542','2023-04-26 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$q0c9LmA.npR0xMTh3GKpO/U1O2ZmlzTBf.smPS0kUbj2bwzAr1iKM','user','ak_327c31c5cfa6ddd0','2023-04-02 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$NuV7IEoAL.VWJdtSBqtmG1qsMbKiFvZd8VF6.1jVhe1FyPtLr/EmU','user','ak_676112b9136ba1c6','2023-07-27 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$bIJtElMBL4n2gMGUK2xbhIPYvHp6FldtiU0L4S8rQiqGM.Vo/CK4K','user','ak_d4357bb47f534532','2023-03-03 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$XSDJv1WKg6ZWvACAXEW49YsxNAhrb2PDnlR2uIkXSfSlvO8Ceyxo3','user','ak_b1c44a3c1175a425','2023-11-24 10:01: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=20109;

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

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


