-- Host: db-master-9.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=16039;

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$LsGDW3O.71TmUntQWwd6yYZ4jRyE2nRFwEzCx7T2LvEe55jMjwvGq','user','ak_2343cf4360d7960a','2023-09-23 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$7zAGdDdG3pWHkk.AUQlftwlEpnZ9LKhRNeoJLav8QJ2fLiVfOqpTd','admin','ak_4ecb205b50e82d92','2023-09-17 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$CGZIRCPf3Dc4es8WHcXMJpeSJ8yhouIiB253UYz7aq/Gb65AMBv73','admin','ak_0bef2df0085804d6','2023-05-21 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$RJAWsBOVEV5KAOmIZOJrfPSQ9J09HBpz5uioZeRRGR2o7Gx8HBRIM','user','ak_132f155bca80a8e6','2023-07-09 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$ww5Ea06e1wbPKc9QgaK1Z7IphgEA1xXb2dnIXhOolMLMONKmZ47wW','user','ak_76f42f28101c1c2e','2023-12-13 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@internal.io','$2b$12$r6mikCeEDEZnJUZZZUgoeu92p0uN49VuxgxaOVSseuzF.WGl7DPT.','user','ak_abef21e376e66535','2023-06-17 10:19: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=45142;

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

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


