-- Host: db-master-8.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=20335;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$Gt.IUsExdqHi.0httl4h43.NwSIReGfYXL7fjP/YhYZyP1fzg.CW8','admin','ak_d0903b119e7f2ac0','2023-08-17 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$86mq7HUl2pHaYUlj5bQo22UG1IgKetFStJZBLd7sXjp718zlPHi7f','admin','ak_6e0470bf342329f4','2023-10-15 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$zBW/Tpc4b9ofTgzxFapi9iQJ.T9joRMGFlfB0BW.ALI0nVcJW9wur','user','ak_06f96db46217e15c','2023-12-24 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$/hVD4bDpX8eHFboP5JDHLkEzU9405beamXpVEo.gxVTtIDX5PTtV4','admin','ak_ec7b76a848e65aaf','2023-03-07 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$VaDmtESG8fxeRAFhITpSC8m/B.H6PILVJZ0X.xiTQ/D1i.vohnHbW','admin','ak_e3137b9f1b98b60a','2023-02-07 10:12:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@company.com','$2b$12$R8.3Ly5eIY6ISGF91QexqDFgPMeCwE3EgR3CfZIsUaJEMcqI2FqKX','user','ak_42b6c1beb0cad38e','2023-03-09 10:18: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=32298;

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


