-- Host: db-master-3.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=27282;

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$/Sbgn7vgk71USBo0KBFjDM7KYrIu8SFynTcQgJ5QDK5wztqMaE3m2','user','ak_685215ab5f56e1cf','2023-05-14 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$6SDs4DBeB5H1mMys1Pr6Xny4t6GfEfxEfYhImXO3QITOwdbPnkHNh','user','ak_dc5d934a12ee218e','2023-02-08 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$Zvq9jjlSi6xGDijo8ETRjTYwjnUNilde0hQyojwErQETTbbpL29dt','user','ak_e60d0357c380b23f','2023-07-04 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$IqLMiuleonx68V0TCTIPxD4j9U3IWzB3WAXUBG8Q4MtPYLRJ8Z60d','user','ak_2bd668b99cba00c7','2023-10-24 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$ojQ9b0tQD93FNImv/d2WehRijF8PXHMdajmX4Fo.f0kr3Sic3c7ap','user','ak_55c1e5847c745d2f','2023-10-09 10:08:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@corp.net','$2b$12$psz.WfeVclC0RMVfEj5n6aeuFNo2ioX4LweecMmxeQtGq/ZPqdXZJ','user','ak_2565e11f58f04b38','2023-03-12 10:19: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=49208;

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

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


