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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$B9sGlUjdzj9Qc.G9fvFYQ7lZQOO90PhaN5jiaZ0xUOov0vUU498vH','user','ak_614989d24ace6119','2023-04-19 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$eZF5n.Ie5cs1wNzTdxDixXbBC.JgyE1jArGZcIvkcjy8JGz7FEC6D','user','ak_b00c3c06af917dc1','2023-03-06 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$R5hprzUHH1AF/8mvCBIsC/uL7V5NnBYcKA46wveC5LEuTHkBPa.7X','user','ak_40b6f13478f6c8bd','2023-01-28 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$/cZRiq8Yh.Mb1lwUodFV0FeT1Jx45PSNg97ssRtE7GvwhhTxZbRv4','user','ak_a5e13db6eb8d73f8','2023-03-11 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$eqnO1eibfD7YcKlUMlyJ.NjdzKMpI6qVP4j0luYyzhlB86FASJ9q0','user','ak_8efd06286f715a44','2023-02-18 10:05:00',NULL);
INSERT INTO `users` VALUES (6,'root@corp.net','$2b$12$EC8nuOwYfrodEKlfVx8iQsPkKS60PmPpghQf/TqsvnOAuSXYYmnAr','admin','ak_14d0544117d50f78','2023-09-12 10:04:00',NULL);
INSERT INTO `users` VALUES (7,'john.doe@corp.net','$2b$12$PacCJcz.zy/z02F4Fka0m0Qxi8b7uVQGn6NhONST8k6gSFynEKIKR','user','ak_fa5674f9287f0bc0','2023-01-04 10:08: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=41261;

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

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


