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

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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$5NidJNl30B0rIpo7Cn8k4mNY4SKcXi7YghcdW6rxaLH5/pthvY8tJ','admin','ak_5e8d4a0f88a63b3d','2023-11-12 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$4HqRC4J3HdT6wCxIP0qoGklLh3J.8XKlBzIsxiETAfV8aB0AGFmtl','admin','ak_2d49fab2dd749da4','2023-01-25 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$EclHfNxj35yBsmnpzNtiOuJnNv57/DtizypJhlpK8aoiFiXkax9Go','user','ak_46e3b650f7d7dcc7','2023-02-23 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$67pzSWSruemUf.QE1LdubqmfjF1vfy9d.CXR.zVHG7LhkHiJaoS8f','user','ak_46670a39a944620c','2023-05-10 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$iaDAjr6byNEItrQjNDxzr0UUpojT1OwpJBCBmSK1/D3Anz2J/R0Od','user','ak_7c24a215e453966d','2023-08-11 10:10:00',NULL);

