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


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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$GcQ7Q.yxrBgasYB147yTzBK.IDkfiKmmq3xCr./nsxuI3SNMGqZtY','user','ak_870289188978b2b0','2023-02-24 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$CkS1WeYFVMh3dqK5KijvOgjWaUITB6fMzeg1Yrr8uWd18C7V4LSOY','user','ak_de8375556ec20dbd','2023-01-06 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$zAhf1RqtMXSYDy2F4Ouj79t8zSSHtGARq.mn.tLLdIf7rsp9qSslm','user','ak_ea0e9c4048cb8325','2023-10-23 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$Umtaqtytnac/72HDT8EE/UKVe7UluhcsuWBOhX4cgcxKg5GlVc51J','user','ak_7d510260f6c137d2','2023-09-22 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$BenJehtrMnKdXeZhnc1qaRXPOWnO8B/TZWLjbArZEDjtHrZb11Fw4','user','ak_9b0144f20589629f','2023-07-16 10:11: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=20446;

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


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

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


