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


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

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$QPN9RbfgYtF7UqQANjdb/3aALZX6mIVQkyGCbEQ5ohBk5WwV3QMnl','admin','ak_f14a0e26ec881bee','2023-11-15 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$R2tRRXEVqkA2YaiCrv0Xet30qu7DUgyE9bYrVvA97bJZbvjVXCWDy','user','ak_934c423a32d4749f','2023-09-22 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$Pf.0Q61ZWqLa.YdvElfe76reI1F4l6y.lsdg6G7qY00YOAT18aKI1','user','ak_4acfbab54f3a7950','2023-09-15 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$8NPe9kErHmWNNwMDQtK8fqYS6rYx.GP8ARoPDIvaX.BDIBkhhwJQt','user','ak_a5e142aa5446b273','2023-01-24 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$Ei4eBCTbPrDqSRFVSuCoD8CsrSbvYmqYr2cfeGFRaa1qkZivyPho/','user','ak_ce62504ce54d6ae3','2023-07-20 10:17:00',NULL);

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

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


