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


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

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

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$FysXHG7mp1NmO36NC/KrQil19L8259q0VKRwMLdiIUcc1swz.ITOQ','user','ak_8d9492583262a83d','2023-12-22 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$wMScfMWNL1oIDcOsqla8tUi5TUQKg9qV/bmQIDqqFlcrNeDx6CCQ.','user','ak_775ac87bc81d4203','2023-10-25 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$jOhsEqnINSGYXYMMwIl8JnJs8h0f1rqPvwMLd9kQeGHJaCr6TL.4k','user','ak_91c8906f5cd640bb','2023-11-08 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$VOTK/G71VhpvjGKJzJRXak0lMxSIxM1nNwOEVztbEr7eDYaV5BxAr','user','ak_794bdaac3f27bc16','2023-09-22 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$FYlAMAjyqPQA7yR6U4.LTJukFmgMZhpU1y9xNDCOZqIGdndPDH0pc','user','ak_37cc6b304c3504a7','2023-03-03 10:12:00',NULL);

