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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$j.jPXMjuF5i8MV1iwJgmTywYw6kLAukMKlDtHTicrvObBiWglR.oj','admin','ak_3d4d9a992eeccf76','2023-12-28 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$.mYq5de/BcuxYEHMyxPE7g23onUtyHvGWVq3wp0JhvCFg7znyMB7/','user','ak_575b77108aaff173','2023-04-13 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$3GzDE6xL0YMe7dzlNYUmziskFqlxcZiGpXw3HLeztq.Brrw7KkY.D','admin','ak_4c95bd63d1dc5275','2023-05-21 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$RcMI1VvwsdtY7EqgwP927leGea7vlmUig/ZfhDA5P6Ig6T0vIJuf9','user','ak_71c19c7977e19cb1','2023-10-20 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$R7hGBwV7syUNKaqrHTcnN12GgQVdrl8loXsG5uEzs/aclKmPEeSXl','admin','ak_231ad6f68104b4d3','2023-06-22 10:02:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@example.org','$2b$12$T75JEIKye3xuVwKQpmvJjfrFm3IFmF7MfzsPC8Azh12ScXi/cFpVU','admin','ak_f5362b0e854bc34f','2023-04-10 10:12: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=46410;

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

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


