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

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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$JgAfzYj5YMy1011Q4zz3lk3Vs8bfgUEQllC/DhMtYWLvStiqX0Jj5','user','ak_b3630d97271eec65','2023-09-05 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$lCTx2k7EyecaEnCizvk9aK2B8ATj5Kugi6mB/T5LVXhIqFU6uhV8L','user','ak_2cb3bf0588ec1ab8','2023-08-16 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$q1KeR2ZiOSg/C.N8bjdvvcqa5LSBCEyurPWp3vGCqiHh7VF5wFqSD','user','ak_6246502922c818ac','2023-02-22 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$xPwy/CBmxvKx6gVO9KsycWQ3Roxcn9dmxsYRa2GzjFI0yNBWDkjnm','user','ak_8d989e4735118c91','2023-12-19 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$uUZBo3/CuTb9WNUYyCgDLpAA1RbPQEugayTLbQ7mh7Pb32I0Ipxvz','user','ak_3115ffe6f46b0ac1','2023-11-27 10:01:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@corp.net','$2b$12$YUKghfGFjpsAXkDoC3d96QSEg2Pf/a5Yo4dNYtzyIkF7zeYemPPUD','user','ak_e392cae557e1f589','2023-07-13 10:17: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=40365;

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


