-- Host: db-master-5.internal    Database: webapp_db


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

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


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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$8dN6bpL2qyKI4Gf/BqbcXi5XYUyBSvlccIKL6UtAFjmm.frc1kv9.','admin','ak_a149dbd8afa65bf1','2023-09-23 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$5zZMQaZP6v.GREYmCKhZWeQvtUr5oM1o50J08mKCOUE6/a5x9CI1z','admin','ak_c6958da886d2b0b9','2023-03-13 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$8YAJqHs03le7Hk8OqWHQnElIOfDL7RY/CJZjkNS.iSx2HN/RnN.Qz','user','ak_3cf1b491a75bd6bd','2023-09-22 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$OTnB.w/X7Qg.TsvaiquPTGxbNg33aScPKCl9mSo8B6zjbHE3mJfqH','user','ak_006d5a843de148a0','2023-03-08 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$iZ28zpk5uMytY4uxBU/1IhYlNUrirHSloVPFSsnXgm.aq2LJD61jg','admin','ak_0c807abab4bbfe93','2023-03-11 10:12:00',NULL);

