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

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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$mlWNQ.qLBnhwBCxNVGuW3ahGdGsZ3VsrM5XY/63yyTzAedRMXpHgj','user','ak_7f34b3da90a7018f','2023-12-19 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$7fXD6kMTuKnn9G8p./LUmwbVguYsjqrhpFeo2TILbTdIySiFmKzkq','admin','ak_5c34aba63e11527f','2023-09-10 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$W4SdbzCVnCnMGifg7boVrURMnaeXBNtRsvfuNbMuSLqxI4FEkvNK1','admin','ak_02af32c6c1c8e4d1','2023-08-12 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$raPq5GC1L7.v73GsbMBCR16Jb6nD5uBOwJXGH.0C92zbXge/zVqyy','admin','ak_e4a17a7b655698e4','2023-09-28 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$8JrE5Z87YuyXI.tFAF39.e0iWSzpaX5T5RZJFsC6Anc8pOBfmc1P6','admin','ak_fa04d5ae04d76088','2023-05-14 10:20:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@internal.io','$2b$12$wX6dPXLKyHvtLuI3pueFvtGd6e5ENNCY9.fMaD9DymhI553PoeoRE','user','ak_642a6dc838643ff0','2023-12-19 10:06:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=40280;

--
-- Dumping data for table `sessions`
--


