-- Host: db-master-5.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=2509;

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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$gRKfxE6xnqM791W9314RS7PO.mnXoeYpy/3Uh1h/0G1vrIeehu5nW','user','ak_6145ccc471be639f','2023-12-20 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$pEq0clbY5mF4IrA6y4K76MIcm7DpWG/cu2wNzr/Vz/HhL8EMCoFL5','admin','ak_1c61d201c71f036f','2023-05-11 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$DAytvriBJ0b8bsV80Oe0EiYKQr2a4RB7.hr2NzdErq/rKpCjkEfa5','admin','ak_86dea18bddc3d242','2023-06-09 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$/GV339KZrF2hu60yP6hF9zwqUte6MnJTlz.A4Rec/aXveg4dNC.MY','user','ak_8ffe062701f2c511','2023-01-26 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$is9.Fm/XlRO9B9KDb1yj/JhsnNuPmGRajFXnUyPkMAZCoDr0gpuob','admin','ak_00bf691131efcef0','2023-09-07 10:06:00',NULL);

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

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


