-- Host: db-master-1.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=50480;

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$YoJARBMCKVVhRD4b8smBj9BeqZKHS/ocAMcks22nL.kCNdWrQ8yZ5','user','ak_2fb78cba7acaf2cf','2023-11-23 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$QZEEkssahWfjV99ETzXcnIC.Dth.KW97vvPPKvzuf1U/4kiohJk6M','user','ak_ad4bd28588f67d2b','2023-02-08 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$fSOWpSFqVX/NBv99brtGaIeCGDFt7FGdGtVZVC867O8IVMSA13UCE','user','ak_7aaefe54c315b67c','2023-06-15 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$LpxkFY9bPWFd7A6UyXbw52j71hjUdx6kEUpMNG6pChNGODkAEiGzb','user','ak_11e79d8dd75910ca','2023-03-01 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$SitbTYW5DwDuj.XzPmxT9ohMQY24B1SiTNa188KWYSTWRTnUn5v9Z','admin','ak_fb676376a75c2855','2023-08-15 10:05:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@company.com','$2b$12$T0ijldMH6xoh9gJsuhRl5F7pZaUBg64wEE4ijgBxqrU3cedljorZz','user','ak_ca550377441b5f39','2023-10-05 10:20: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=4770;

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

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


