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

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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$/CWtGXvABnniWIegpjv2M9caOU.KWi0PLjfNNeoql2ubq4ilUPzuS','user','ak_838e735acc3b5ebd','2023-12-16 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$/8oRgsUtSv2S5PR17znR8iTAeCwQE5K2lbvUSF5.UeALqFr7MkTSe','user','ak_d6503cb83d65bb4b','2023-10-27 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$OxCIoW3d1GgLm0ynJM610kPdA1Eyts2LXz8lrhkZMAIkIT8AxZpc3','admin','ak_6b066b01a84fb479','2023-01-07 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$T99NSzigcgE8qBo9U4EGv.3chnJBBb7tcqwKfLxnYsHOtZdGwiTe8','user','ak_5d6ec123f607b196','2023-05-13 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$RmNphEsB2wBCWED6qUQSRXxVUKEJWI9XzPsGWdPHgiLaf7z7LEbx9','user','ak_51c7f56627d0203e','2023-06-08 10:02:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@company.com','$2b$12$uPrgL.N6r2DfMXgx70PJA0Qhn6jrLxKr1NxGRXlnf8geLkjzpZ1Pa','admin','ak_84f2c17d7c48ec66','2023-04-03 10:21:00',NULL);

