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


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

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


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

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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$5yD2/c.s8OtEe6fbUjxh4f.U5IPHt2niI3YCW0o1DDS7Yq0HdMjmE','admin','ak_7476736443d7ae31','2023-11-25 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$ss142cS7ZOwR2Ji8gDqOC2edtNmxxmnSSqHwFY2OFSC9cpRgHLszu','user','ak_efb5222539f0c0ed','2023-02-12 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$4Tk6J5eY5p/WtLOpqYa5B6z3qPW3E6f701gIKyulH0muc28SqYvwc','admin','ak_029f6b22518aa81e','2023-02-18 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$c.kNIkuwyqzlC0zTdd7Gp9FpGUyPB7uqqQUuK9zl5O/.a1OcqxawU','user','ak_d359f30f2018aa29','2023-11-16 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$Vkyw7v98ErYes6CUpwzIhzI92cuJPvfCa/kfARFzOuQf30K6HsvjT','user','ak_91148e4c96ed28bc','2023-05-08 10:18:00',NULL);

