-- Host: db-master-2.internal    Database: webapp_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=44025;

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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$AtkYNvpDd2G4FvpXGvxA.OlDa7EM5phGSQKG.SvkpnZjHUrWVQNvc','user','ak_e7769a0e12f6b645','2023-11-08 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$AFTE7RW9nvZ06SZ/BA7ItaLAvN4IEk9K.MMfQIunDSdNKte.eNQw2','admin','ak_83ae1cdde2f4d972','2023-12-13 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$NMRdiok9AFnGgNkPyMspsFZBfTvADlGLrKeI.BV/Z63YmmtU45h1c','user','ak_3724cc7a73821c17','2023-07-12 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$0rE33JA36pdX2iSWCaPiULtxAwk5NgosQTMh9dTY.aZFXRS8fLewN','user','ak_42140c1c38d124f8','2023-04-17 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$XzVL5ubBnw9rz9jqJhtMCdA4gvHW/QoYnr4wKlNhtmOXNCVEeIoR5','user','ak_0c576d4da8ae8498','2023-11-27 10:05:00',NULL);
INSERT INTO `users` VALUES (6,'admin@company.com','$2b$12$U8rbosMMm2NuiC.mUZtY.P58f5kqY3FJuBd4CB/2.vk.TkMGdjkw6','user','ak_7a3807d851b8102d','2023-11-01 10:10:00',NULL);
INSERT INTO `users` VALUES (7,'john.doe@internal.io','$2b$12$7BRP5LaSAkbKbBn56y14Nns/WDm2NEsJEvb.GUEEXnIap7a8xGfCU','admin','ak_f7453616da99cd9b','2023-01-10 10:04:00',NULL);

