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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$gfE19iPxBXGWN2G/nPPrReGMNBYuuhTHAPoH7OK1k56bYSDl0V0N7','user','ak_f1df9b952ead75f9','2023-03-23 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$IXBstVAoF5rbpChzxIa2lOR5LeWNEqXMdc3TNr/dYtZZDdla024.P','admin','ak_ca47d5b246052b61','2023-10-01 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$iokEzb7SobxDChDPmgtBJbbql4h5plTAuN.tMFCQIhfp6uycbeUpA','user','ak_e0a85c76a1c76f2d','2023-04-04 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$17CYlHgXOcWc.33n9bFswbqWKw/gkIw43mkc7Wv47M7buUlbF7Cx3','user','ak_983dc90333f12ec6','2023-04-23 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$OUGGPoh3mKIZ9lq2CjTYV96PLz4t5sZb07Ts9Zj34BzPT9cpwyDkg','user','ak_93acef3db93f1b12','2023-04-17 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=17189;

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

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


