-- Host: db-master-2.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=7605;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$aQx/Q0B2hnXYe1hQIfJWDRK/.L7AWYtFqlXOyGu.O9XiwPJ.Zujc9','admin','ak_fe27b0f641a95944','2023-10-15 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$WKVuA/L99CpHMXGaTd8asdilx4vtdO5xeZBIo2oM8oLm/i3p032ec','admin','ak_afaedf227b8e7c9c','2023-03-18 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$jey2.ETyOlHkGPgsTNqbjFGmZy3RdZJsRTv15Ra1UDFPp1UvnpcT/','user','ak_434513752b6dba84','2023-06-06 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$Z1Ha.BmfPWwgAB9tJeGc5e3WlR3GMq.CIvCCFe1.OQOGa0K8tBYcu','user','ak_b0758220a6f942f7','2023-02-19 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$LU1aLOq15s.dU85hKqI/WT.1cP/X6b9o.vfA8ysiiDUUpT4MMt33F','user','ak_b0cfe7ab92bb0b27','2023-03-11 10:05:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@corp.net','$2b$12$8aXytXDzXcugSpA7AWGaGR6wmZAerPJWiUN1QkFTaxIrWZmUyNx0l','user','ak_1160554b37052ea9','2023-11-17 10:09: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=34239;

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


