-- Host: db-master-9.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=46831;

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


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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$taHDrKHUaqQDMsJ8cUGGPGziLOQYfY6l7Kit81Z/ZKIj7nD9rUR9Z','admin','ak_4cd4c89e752ac926','2023-02-02 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$Mqeih2PBy0tAy9vlwjxtOgsHEuvTNd1zMxurd5XTrikrO7exEhhnb','admin','ak_5d0c386a7e2af14d','2023-02-28 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$fM6A0RW3Dq8k3a.bdL0QZSIeH4xL9VFP0SI2Uk6DhDkD0hwjAknn5','user','ak_abf4c01f3708db40','2023-04-09 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$1vBkm7iEQllSDwN6gjl.6juWlZe2Y4.qpaNxYJ7mStB2RMKXlkhfU','admin','ak_eb01caa00f06397a','2023-10-17 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$kFi5Wx/7TQ2NjkDfLYfCK.05lIzhYusp/AyDJy93VaPsDoZGZG/bR','user','ak_8c98cbb00217aa17','2023-06-06 10:10:00',NULL);

