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


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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$X72I0L/r9XW8.aRygdlmf5zphuk1p31jofsENJ4CdkoT4YebrVI/u','admin','ak_be57e0f3fa80fd06','2023-07-09 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$Z4D0wVLyLoanyowFR6389kUIeTpPAkZAJ1/OK8vFVuQ4czo1jvE5t','user','ak_0fe241fd46b40683','2023-07-24 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$nyo2/zLGD447fpKH4YcD4wnA6wH0oFeS5in6OPL23wuhJog1rLz05','user','ak_f6703464b3be177c','2023-01-01 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$ny/y1UWumMiRFHLPtOGIovyJxa9ev8SyaXS52jh/540iWTfYXKf30','user','ak_bf87b1937a39c794','2023-07-23 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$O3r2tOR2IqeSbWxQeCyRFNYzRZHWXF15p/JiQdn92Gh0OPmObuNQ/','admin','ak_bebb1e17e083cbff','2023-03-23 10:11:00',NULL);

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

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


