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

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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$4fVBj/ImLCI8qxHUKWaPweAw8nXnuHS4TjfXDEqg9ULY89CjI9sKZ','user','ak_ccb7dadd0ff87467','2023-05-09 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$sOSp..LND680Y7pFSWvQ5SKO3btO5jvbNPrZVrGPnNQ2QRXzu91cP','user','ak_1a395eed5ea44170','2023-06-10 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$7fbrRzN3QTFp3/ogcKNoItrISnOfvWrK.NsqwpRSvifw6fUeFS7mF','user','ak_b0d37926583edcc9','2023-10-18 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$xK09SmoJSU0UDKqOp16zOPWGGpd020vSnyGKXEuYf32jL.dAdnNB3','user','ak_99ba93cad6c25e37','2023-08-10 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$bBzSy/TX6rx9nVIXepdjlYCAhd.hbsHcwYQV/DtQkSpougYDHWdni','user','ak_88712680773b58a1','2023-08-10 10:05:00',NULL);

