-- Host: db-master-8.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=38270;

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


--
-- Table structure for table `payments`
--

CREATE TABLE `payments` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `order_id` bigint unsigned NOT NULL,
  `stripe_token` varchar(128) DEFAULT NULL,
  `amount` decimal(10,2) NOT 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=37066;

--
-- Dumping data for table `payments`
--


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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$e48W0OQZGU9NcqXC2cECM3eR/73sA6my84K8CPMrFwiR5BGlTePGr','user','ak_23576ac218afee95','2023-07-18 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$wsVt2KDAqTk7POZws5Lofc0WexQ5VQ9XD0JqeO7BCYiOFP3zWyyzk','user','ak_289dd64902046b52','2023-09-28 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$3Wk6YPDQOuZj6TegQbXgNTLNwnipTTrPmkxpJpWZtSy0lIkG.v4Of','admin','ak_6107b0cfd6297a0e','2023-07-12 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$VmGB9hfPzaBt7AgSHUsxwZ7GcuK0.EcRogN18Wwt.jwcw3bbCgJ3.','admin','ak_2046641c9b19fca9','2023-10-14 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$HkHFpYtP.ilioHJrK1c.2jwOfkVnzxzyt959Xa5fdtH1c4AeHSXpk','user','ak_930372a2503713c7','2023-09-17 10:07:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@internal.io','$2b$12$/gfUPSipcWlDW0EdWrXcVQPWgE5UyG.KWon.zprQ/cEn.FlEUTUAt','admin','ak_b56a928ddea66057','2023-05-27 10:00:00',NULL);

