-- Host: db-master-6.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=9583;

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

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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$2T.UUr1HxAjnqopbhSmsC/x9MTriRDmeDJxZq3Dt4EWlmjGcB0MmQ','admin','ak_dda43973928fa659','2023-04-11 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$TX8ZOiTBzMYkf8CebJDpoJR8kF2.a.iRpG/GcfvNQ8Fkgv8IYFoYK','admin','ak_1c110d11dd163d7b','2023-10-21 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$f3B2NI0OF0QAavAeaWX47Q86B61b0G/rID8icwO1/XdL6Yp8jPtwt','user','ak_daac24fc467cff10','2023-05-20 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$tm0bpr0Hs2FpdR6nfphQpwfjOrviDZDOUzHSEQLK.H5kyk/wV5oj0','user','ak_cf86e65be2758128','2023-08-13 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$vCHYl/OqdF1O2VZLOPHqnONIQF2MTp0krqf.ycG3r4mJM0dpK2Icj','user','ak_1eebcefa25f3c183','2023-03-07 10:03:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@internal.io','$2b$12$qw0bhYb8GrwQU2F0BjH2OQyMVK4QLbTLz2tKlKpRFtV3mt4Ez5GKP','user','ak_54aff52a3f571af3','2023-05-03 10:10:00',NULL);

