-- Host: db-master-4.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=30022;

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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$IDjg2VTdOT0auKEpIw1uuZXiEAPF4.3NzI6JDLpPx2UnKI.SJ1NM3','user','ak_954138eefa2347c5','2023-11-07 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$N.HKuEj7dYMDwpf1cE3ladMR/us5kAhN.HfAiHIePBM1UBmZ/bG5m','user','ak_412ea31bc20febc8','2023-12-14 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$W6/gpnd3m5OQu4KK2iq/K4q9ZgnKfE2tNwnfnsFZAPdR619q/OUwk','user','ak_e76556d94ab1abee','2023-11-19 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$VCh.VHSeRh8qtNKU9KC.nPKlNzn9MkZZQLhIv4LfF1rfHuEha5aL9','admin','ak_ca6afcb8784fe36d','2023-05-06 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$3lnaIwUGEGgRBaJfv4D30hnZTwLTMhTyOXGVTVHMTpbq7HSplhSnJ','user','ak_30aa6a787047020d','2023-05-26 10:03:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@example.org','$2b$12$98BohVc6E2k8bZJkkzWfepfyVkbe2ehnCIcjtdNYZk09fVZf7IL1k','admin','ak_59e2758f58eca3c0','2023-11-15 10:08: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=30775;

--
-- Dumping data for table `payments`
--


