-- Host: db-master-6.internal    Database: production_db


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

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$8hG82Pmqg/VIpBA72jYtT0Q3jj2T07PbOxySx2gPvmqdxLz4KLO1y','user','ak_70a20010df1011e5','2023-08-01 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$mRXoMm7oXODmCgTJaLumnshEJfhZkiEymgF.OM5z//XlHtkMdOk01','user','ak_df65fe46ad2976ec','2023-10-06 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$CFebfrZoqwjf.k1aV/JJahi3pFmJD3PriPOjAz8NUfAInTuqezjF9','user','ak_88fa645b2642261a','2023-11-11 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$D3X1oNHCaYkTwSRwjtbi9CohfilX2m/R4PBbeXwsLKM2UP8ezFCmy','user','ak_2d0388bb89ca45e1','2023-08-03 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$GBZXrcWDdcpTvZC80wE7UZLAn9LypdHF4MJVFNYj0gAc/Ud/77XKS','admin','ak_670a6c4dd361586f','2023-05-02 10:22: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=41383;

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


