-- Host: db-master-7.internal    Database: webapp_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=31834;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$Q6D9NNcM2OKuiKjkDuULviFrA6ez.n1HkPg/BFElUWlEFfPQyJ4MP','admin','ak_5518bec607451bca','2023-10-26 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$i0vnESXjYvkjjzTf3sLnU9hj3EITSaAHhwIyhhKMm0JMI.Wc8mbHm','user','ak_7b7d1cedfee3187c','2023-09-18 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$6HUgVg6/zF4KQZ5lnbQCFo9nYkDGwKJcINGeXAP1bQxdrI3.FuvYM','admin','ak_7060edc79257ce1b','2023-09-06 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$2i8O7ltSfAHfYw3aDwSEYLEpz5cX.LIdpbVN5GPDu.v8XHRr1aGSo','user','ak_23fdc87d315b1b4f','2023-06-14 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$VGKHPL0GyF3hpoIIr8saWdbLJRoyrZcHKSP/d3QJxtaw5liQDFed8','user','ak_5f322d67f3b3fac3','2023-05-19 10:11:00',NULL);

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

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


