-- Host: db-master-6.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=38817;

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$wN2JyYmGPNTApTGwW9edyIYbTV3jxnnnUpGYK365dDMC16Exdxfgg','user','ak_4d8c0d4caf00f6c6','2023-01-12 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$w3ZsZhaGnHVdyUv1RRTOPFZYRBchYuyC6wLNLawyesEOrOzeVXwbZ','admin','ak_0055c2575cdcdb96','2023-12-16 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$xZVjomEs5wNvlNItiHd5PEdmV8Fym/tZkz1fXZyS1oNsd1sVdHivT','user','ak_3abbdc0593bbad4c','2023-07-01 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$5/mVdTABLCpfOLlK6p4d6WGQDkpo1ZYcwT3A.7lFkIk2UA/CPV0lV','user','ak_d214262074440b2b','2023-03-07 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$qbuLPnH1CXZXhRGjXIWD6vHJ7fgko4w7ngcXvRg07xiJfumA3BVeu','user','ak_a4e77cf9fe512618','2023-07-14 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@example.org','$2b$12$f.cYx9oZZNPF6URfuq97Opgm7gdsCbmYnt6dQAlvEGTf79lfYOhRt','admin','ak_ae627f0d5e196310','2023-05-21 10:18: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=10933;

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

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


