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


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

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


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

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$q8h2.b6HdzcuY6uUrkTfCMTRB9Avs0ZITRdnmny/0pdxLhosOyvNP','admin','ak_1abd9c3c35e4d4ab','2023-02-08 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$0zFA2sn6FXbSbo/bJHGwEAi3DCvn85zOip7ATttwddgNOV.sgTO7d','user','ak_16c8ddf9cdc1dd88','2023-11-14 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$e6JS2ajI8tmxziYoOqSpxCFn./h6cbb7sj2U0MFI33sgQ9Y8TqZwX','user','ak_0b01ec8c23096efa','2023-10-16 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$HE4daY4WBNpc24pInjPIqMVqnf8wJrBPSAlpnPCo1pw9Gj27lFv7V','admin','ak_23751c100083b3a9','2023-04-27 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@company.com','$2b$12$5mCw8Mr0WTbcRFQzOJgCc/IMSaGfb4MRjo8uw2Jfhnti3YXqoxzaN','user','ak_3b18966e7ead4898','2023-02-03 10:01:00',NULL);
INSERT INTO `users` VALUES (6,'root@internal.io','$2b$12$qq8xmGjGtZRM9IX9O7XNELaMxPcTiqyqywzI5H7/kDbEYdAtE.Nl0','admin','ak_1442dcf4b262db5e','2023-03-28 10:06:00',NULL);
INSERT INTO `users` VALUES (7,'root@internal.io','$2b$12$wUxVnB/JaJD0hvMFk.AK4IOB22S2uDgfHyafjxieElCNC84UdQ2cU','user','ak_55c56f606f24095f','2023-03-23 10:12:00',NULL);

