-- Host: db-master-9.internal    Database: production_db


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

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

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


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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$MMiWZyD4KNHHhtu3ggBSxcST/wFrDRoXtWbNu96/RCFhzbjxeAfI8','admin','ak_77c9191d1c265aeb','2023-06-22 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$vdzIau9H4bjYVAi5lazPYotF4ejWFje1juo439.h2jAPFs0CGNzdn','user','ak_3014a9e6624f5382','2023-07-26 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$rXTwqfVPIaLU9J0ItpvQlXnn7oN0CGyQ5O/aDlO/yU2sOXs38Vp5S','user','ak_4b43e23c489da5b2','2023-11-19 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$oRnpvr9n6A4ZdfTBpDV54.bpMoAooQRqPmnXeoTX/Br/0oItoUBNz','user','ak_2c732af664db8e0e','2023-08-06 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$SZke4k23jRcDSOMLkfBSyrpcBFHwb1OutNXUWZT2vPnN.M0qbSWck','user','ak_42ff9f2a86d11d62','2023-08-01 10:03:00',NULL);

