-- Host: db-master-1.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=37760;

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

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$BK8Z9RCBBvxfvKY9aTnPu8JOLAB0Yq6DvnXWb5O8dFa0B6/4mrJRJ','admin','ak_48164ba7c6246de9','2023-12-15 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$s4T8NZTbdaLlh/WJQ7NRwz7wI7SoL3TlldCxow5GlxzKM65lLIgtg','user','ak_a3a23a16342420dd','2023-04-01 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$LZMKnChgEGXWEECvswgzdODr80Sns.UZ.ATA44D81J1XHdXdWV/Ml','admin','ak_92f1b48b421966f4','2023-05-15 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$R4f.x0THcP8YPtfIt9VAmmgm3a58f/sSfdL.BwW39ZUJlIZhiDwPD','user','ak_404f2b020ab60a4c','2023-12-23 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$NVQOJScXBDf4fK5We2ZbXlVmc8Emlg9QoIt8qaTIdmWGpjGLypyrL','admin','ak_6a39b5a12935fab3','2023-07-08 10:20:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@company.com','$2b$12$Bg0.4FcATzHD5tm9hzdbFnou.nYrwdQXfsYh2ebtoeAZTnyCgwkRJ','user','ak_51bd216b43d67605','2023-04-13 10:01:00',NULL);

