-- Host: db-master-1.internal    Database: webapp_db


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

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


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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$SaOaCafyLKanGK3leeW/0JLJDGvCGJA0AEGvX2y.CNeqB50l0aPPV','user','ak_7f83886cda7343e3','2023-01-15 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$1xaEsIbkoVpTlYD.xBIkzH1Uw1u4SF.nLIcJVx48I9knmCM2xXEEr','user','ak_79ffdf8690bf3505','2023-10-20 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$CchKS59U1LQW8sxR6fNdbB.oYSU5EhzKZ2Bk4n7JnBXOT8uimbIIn','admin','ak_2ca5cfbd64fde5e2','2023-09-01 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$DNY58oBZEPllYMDV.Ty87TQIOHskEL2O/6HIwBqOZIHDdxPGgZ/1Z','admin','ak_229249a5ad2c101f','2023-10-02 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$7TvR610uOLlGMXiqJqK29Z7Y/96o.sWxnnzlunQQ/MW2uQeRUmr8q','user','ak_b8ed2daebceb4a5f','2023-10-28 10:07:00',NULL);

