-- Host: db-master-0.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=29193;

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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$.gZ1CuaUAX6zrZxiBeUZG.oBAQDrF2TIFNK4WjLXwVJfzrGUWk6QN','user','ak_f2e066ae86ecea86','2023-05-01 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$yiWJEgLZT37JIZ326REuWgDAtgq.V7kJFLU5TxtvNFjid.jlyriJh','user','ak_0c98f4d4b68fc654','2023-09-05 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$khAZjNNqGt.PMrh8wOiPaozQzuftsgqy0v.DoQWTGdTbljz9Q3Udy','user','ak_fd8d93477d21ef14','2023-09-14 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$2Fp4QFc35NFpYBB.5pPpS3UO.f8R/dcHGMEJj6ceN6q0o6omGoODT','admin','ak_aaa04593ca7fe460','2023-04-07 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$pZu0nvlcqKAw.vLQu4FeCU/fZHxvOQdJzECo.ai8gSqi.GalOGsKF','user','ak_1555c17da0b5ac84','2023-12-24 10:05:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@internal.io','$2b$12$0fiIN6zlM72lJ1coxQsCMkkIGouPzyXv3P8vTndCrg7y9J5wdUURt','admin','ak_a0de5aaa7cf10df7','2023-08-10 10:14: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=47495;

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


