-- Host: db-master-4.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=18262;

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$4j.u7jPQSLRkIZTrh.mX0pW4q3HPiRFoo9pb1yYV8F.opdUCo.WX4','user','ak_2af59378356589e5','2023-06-20 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$v4tAHSA3TuRsO0GlT5u/wt4DuIUGU3o9KqzY7GGXDB.ip3DdORSUa','admin','ak_ed2aac736764d0af','2023-09-26 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$9IhTALnYflK1dogyleu/smOVbrves6Rzg.mTyM..UYptSFk.XaXwi','user','ak_3d7c7fe95cd97b91','2023-08-06 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$udJKRaWr.5f0iV4CxWl6pYCMI6YlnvB3qY.KhtKRxCg872It1LaQu','user','ak_e42b9f146182a648','2023-07-23 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$7os96.x.9tHOeNuTVvMtojb.O0TatM6pB76aMenWtBGLSDh3WG1sb','user','ak_7971718034cd5179','2023-07-01 10:12: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=39195;

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

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


