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

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


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

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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$CC2j4Z49ChIcArI6V5aEQ64Nz66fYVxz3sb0PREazcbOclv52XERP','admin','ak_c1d6a967d29a066a','2023-10-19 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$72Dm1KruQLOPYntu.CEaSAAelq1gRjMCK0KckLBaN/2Mkx/9Enthy','user','ak_73a3999c0dbe5110','2023-12-11 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$9kVUdef107/ROVnsMDY1UyrH1LXYZpjsx9M/DaCWxDQGTVX.srfol','user','ak_b7b78b39b597a002','2023-05-20 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$XUhgafHlPdUwmVD.2rUGvuZExAxlRsf6nQ/lVgHHH/ABPM0xwa7xL','admin','ak_e7fb57daf925bccc','2023-02-10 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$avGSRR.QdCzavkbyseWIyfwv2dak5H4TWRCuixh8jFXUaILHgwFaH','user','ak_c7ba0e3e1c02ee39','2023-12-19 10:05:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@internal.io','$2b$12$CWcZYW17S18Zb8p0Rr/U00m595qscNHUErRDj5FM3pbbMl3axyVsF','admin','ak_136b3b0cd020750b','2023-09-10 10:09:00',NULL);

