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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$OuDLfcOo472w8k89sYJBETDFb/8NkrNph8F2/VWdiD4jc.ClYPpkG','admin','ak_f02320ae944331fe','2023-01-21 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$P9XiWuaF.LaNroE0y/Abkbb2RVimAJLTeIYxPHsTCmL1Wr6.f/a3l','user','ak_76a9e94f6707b62f','2023-07-03 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$xzODVnRsQ8J4gJvkw1Menj1ZvIbNDbeoq0Wug5OmZ/PbmEzfbtYz7','admin','ak_c7a254ddae94b951','2023-07-07 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$KGLDnfPK0re03sWMDK71lyHM/R1toUjKy37XoMkjWxsOAPf1ELNoE','user','ak_727fa0a3a0d4c96d','2023-04-23 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$fS7PjJkYpfR7eVLfyYTOEiPXprZd0B4q6IOPM6qFmqc0XoTPIWbMB','user','ak_e3a4226a06012874','2023-06-18 10:12:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@internal.io','$2b$12$O7Ubro/geuE6Z0i/F4kjha8ft.9.dlxu3gzZ1q2LEZAl3qChe0Ew0','admin','ak_ec5e2af6364ce50e','2023-08-28 10:13: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=28279;

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

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


