-- Host: db-master-0.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=47694;

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

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$HL5Okd/KYBx7oNgcYeB0yBJBm0SW9x/HTeHQTQ.10LTkT9qC9mi2N','user','ak_b3ec3a286034ecf0','2023-11-24 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$2.wWuGdhYUNO1hcSKMXjhanETHJTRucRwSQ0GpTaI52rAIyC.mvln','user','ak_8e0ed4dde2e35a6c','2023-05-08 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$TF9/GQC5NtVUXXM5WNlZNWN.XhLyQrgbrswj.BF8NczoHcPdYGZD7','user','ak_1c7dcb68dc587577','2023-07-08 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$c3W4Eqvc/bTVRnkSrnHzY4KkWYoJtRsUIq13bHTt4C1fdhQH9hrTW','admin','ak_fc27018997f12fa3','2023-08-15 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$F6gEgJzHKLo/u/rWXJelT7NZ.q45v3wX8.W/p/PQg8Y77Q/7uOfkd','user','ak_de0f5613e9fe3883','2023-01-17 10:07:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@company.com','$2b$12$ewT4wE/uqFi1ThQxNCjKp63nR.crTfzMgtwt8LXHCxzJeZAuTrOBZ','user','ak_8d1c4e76e466418c','2023-08-23 10:06:00',NULL);

