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

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

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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$RnhSa8O8YqdmTpsxeLSH1dxntxHIroM/pmc2kXK90N2XsUtfw9Wul','admin','ak_ff16bd353f52deb9','2023-08-08 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$y.H/VBoXxrbZRi4eWVq.0euTIj9w.9cYSyc40cjLPP4Rg/fsQeZv0','user','ak_a8012764a30cb9c1','2023-06-02 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$TTLePLkfTJZAzeIA7TqdJ065Y/VWWY1UZDe7YeD3TJHEfl5Ebebvc','user','ak_ec05fb13dd34dc14','2023-03-12 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$tzmJ1n.fuENOzACiFfE7phiaDGjaiqUXa41XemVDngbrb.LcYyJjD','user','ak_2c9fca7dd8f5a36f','2023-07-18 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$xpGHpJ9vPNUDR1ZkAe1n96DH89kOYqJKyac3CXSbMnpPEIspK3GTD','user','ak_543529776ce06283','2023-07-24 10:23:00',NULL);
INSERT INTO `users` VALUES (6,'root@internal.io','$2b$12$cBk4Y82mcpKT/rDlRwo67GaLII.VPWWITwDmCPLLFFzIyT6vZfRnw','user','ak_ba427abf0b1396fe','2023-04-16 10:07:00',NULL);
INSERT INTO `users` VALUES (7,'root@company.com','$2b$12$SbbiiAtVZn4E8.1oXEou0yVVQcTq6azukeUsk/IYb03rtr.0SkioF','admin','ak_7d8ba3a71bfe744b','2023-02-13 10:00:00',NULL);

