-- Host: db-master-4.internal    Database: production_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=38486;

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$J9ImhI1BTrBWOlFcByCp9P93FFCFj/fVQzBL.JVNVFSXNRXHwMRLq','user','ak_90da0c4b8a9ad7ea','2023-01-18 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$V4BOwGxNmsrm2Q048awwUmlMFlWJgrKr7WkjICeti4OVu3mV8k99z','user','ak_6538dda368e4b2fb','2023-11-17 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$p9Ay.olNZ7TIs6wnCN2A1NIzYQaucM3k8jUkyvxy0kL/MW8nlJz4y','admin','ak_2bc0aa1b5fbd9505','2023-03-16 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$OQ4kPyiIjQy3YsuT5yiEhhsDFmTTgnTu.sWVSXJDZfTa0WImlE62b','admin','ak_924fc6563be3f15c','2023-09-11 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$cF2wRmeZ2cRSnTi9qLkX3BJ18DfcBu7Kk/wCx8tsQBCuhfnEF7/Ul','user','ak_be992c0ce5e06c81','2023-08-08 10:08: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=28906;

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


