-- Host: db-master-6.internal    Database: production_db


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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$Kt5ihLYXRC3kzGY4/4ltCHPkSbDJSNokZBIQN6FJOWtPHqWTo6vKa','admin','ak_d91420e91865fce5','2023-04-17 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$E.Oyf5oI6eA1gY8e/HMqi73NxFNNpsJ2L9yKj0lvbvKnQqW40btY8','admin','ak_f1ef0d7f4bc1824b','2023-05-25 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$EJMmoyxbZW4eASLs9HHn7nRN9py5fskn9NgZm1v9kg5kQH5aZ6nEs','user','ak_68a5c9199055a2a7','2023-07-03 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$jEgdvvDO.Jt/upUOUV5FmZh2JL1xo.DKyu34mG7YWGmKFslVpA0zJ','admin','ak_7ffd432ecceef081','2023-05-21 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$NvqnuXIaZwZIUCVpwZGdCO5YWkzTdw7IwhcGp34jp/mBgTHfEVEU8','user','ak_018f6e37ceb1bc2f','2023-03-08 10:06:00',NULL);
INSERT INTO `users` VALUES (6,'root@corp.net','$2b$12$reorOefxQTNIlRF45YwSBkVv6s.iOrc.zohe4obl4WEwM4lFVUVRg','user','ak_696f9311f10276fe','2023-05-23 10:11:00',NULL);
INSERT INTO `users` VALUES (7,'dev_ops@example.org','$2b$12$c406oGeIPWNtCCHNlBVOBU6SgMIMtdspOXiVCDLCuoRgk8R3/lFnU','user','ak_6f9618c67808f166','2023-02-19 10:21:00',NULL);

--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `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=48553;

--
-- Dumping data for table `audit_log`
--


