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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$q4t2EfuFtvDl3BS9h2kk9IYBd5CqLM/Wve.17PVxlycVOPwX5WwVH','user','ak_fe9b69a40d8507f4','2023-09-08 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$c..YEHTBkwzxvG7kcDdcWeNs5wu2aD9f6ZTBFU6FBF58ebiD0S1aZ','user','ak_89892228adeac00d','2023-07-09 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$5CD92BUgGV1MecWj3wqcXukA.bBfIkKXrrZMx94FoCx2DgpEtB6ex','user','ak_683898b0aea0180e','2023-09-03 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$lZAG365b6RMiaIJPNIpuQxYOar5z1hX9RANmIBs35tlEM28zj2QmL','user','ak_9e9c66045fb3d759','2023-05-24 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=47954;

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

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


