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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$8prmPg/VdsPZWbFGhUB2npHQt/eriBbMBovUPOjGWvA3SoLlCu2lE','user','ak_17466355f12faf3b','2023-08-18 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$ndcclOoQtsQLqe2HAg64Y94qj8Drw6y4UZiWErY1pdxwI5PLLrVas','user','ak_a243a5c525de4592','2023-11-11 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$3KKqP99/gEhDz1CuwdTcTHTU3deEGYVInVoOvG/3kISObv.E/bH.G','user','ak_aa54a3a806fcebc9','2023-11-20 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$xREIW4rNjs7wD1tNKVzIbjC8odAmsSexoI8Cz9eGs34M9IupT3Y2y','admin','ak_bc2b414028337a78','2023-10-27 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$SkyVZgrKT1drcFhh4s3or31xu9wKRsDRmPQKX.IsLJTe7sA51RUfD','user','ak_acc0a8d559a14177','2023-10-18 10:23:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@corp.net','$2b$12$Da2fFkuv8cjQzSwHZ6gjbak4e3a2UKEGzSt2WmypT5A4LyS6nHQ7L','user','ak_20d193cfb680db77','2023-05-27 10:13: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=21937;

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


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

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


