-- Host: db-master-5.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=9732;

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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$L5YpxAbvl1E1WPMScLTQz/PRvTqQjmoCdwqhPIQ3fngJGGyovlCKL','user','ak_c781b78c5468cd2a','2023-12-02 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$h0OcgHoYJyPqswtCEdZl0PKv5g4Qun91ohThXO3YaO/8POZGP8dJU','user','ak_fdc852f49f427433','2023-02-15 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$AumHRCM5S5e0XOxN5rTdxaI36xwHASg7HkC0X6ouFlnCDkDcqrOVp','user','ak_c1c6a00bc55d120c','2023-06-06 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$WetRYHWZyaQj39bdO1Js6dMYKTVthPC99hWtJDbmiSpusV1Yp3H1J','user','ak_a3331f75171b618c','2023-02-21 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$.D7CEDn9VH7iIQBF0WfPBeiml7XjgK./3p9uO.due3LmZ8qx0P6V0','user','ak_46ff6b58505cd2a8','2023-11-08 10:14:00',NULL);
INSERT INTO `users` VALUES (6,'root@corp.net','$2b$12$Vk8hCSdkAtfiHnlzHZU8128Hiff4BXY4QAf/pxKdoTBGQcpzn9CYU','user','ak_0e475d3a3844957d','2023-11-23 10:04:00',NULL);

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

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


