-- Host: db-master-3.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$clwkaqcqz7yZViBcJG0ldUvx67k.NARExpP.ZkB/tEoOg8IbVLEyY','admin','ak_0cfc7c1b6f3b7de8','2023-06-22 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$XAeV0Fcn.tndBbzIP2KxpzeWbkUnln07oLjylhH5owmUJ5KAZ8Bbe','user','ak_cf836b4f9d0bc436','2023-04-23 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$XJ7iwzs1i.Lrby8dfASSLlclZkXC315RO/QFfTTsvL1YP83TAeJhI','admin','ak_e339a6337e6b712a','2023-04-18 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$BK5IEEF8y.G1ctXjm9D2dwHsWD7YSDRFJeiy3sJAX92OJ3axoShzA','user','ak_d70e236b4ea22bab','2023-03-12 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$xJMm8tH7MueX8aztyAGDF.q19PY1.PNTFt6y5e9/VD6R.JWctyFBt','user','ak_7091e67520bae734','2023-01-21 10:05:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@internal.io','$2b$12$zywNQokLyXP.u/3/CWWY3aXO.62e3B9/Ug4ISPGPslPHjXh2CFNR6','admin','ak_940bbe4c118f66e8','2023-10-11 10:23: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=17385;

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

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


