-- Host: db-master-5.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=30982;

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$SKXDu70jZqcGBxH2mXUi/DU9Tkgw7GiJC.ijU5Jn2I/nB9sQ4Fnmj','admin','ak_d05d46a941369048','2023-06-21 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$QlUZ.YYgrGHxDY8YUDAtGkaM8asx8E8nKi3/hR1YE8d8bS/JRu08f','user','ak_a594ecfc98ca38cd','2023-03-16 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$lm1Zv5Njgk8tC.DaPQfC2pmyLpGYSTzapvDni13gtZjo8qKEDWaFf','user','ak_a655076fef67f7d2','2023-05-22 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$5w43HsUeM1iR/GC5nJfNcyOiM.4CLpKjmUpNubj04bLNYS2slTBYA','user','ak_f3ac9133545a7afd','2023-01-24 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$c1kJrOMviD/PYYMpRNb5JFbYhUvlp4uCtX6ftIJmLoKB4MhoVWy8f','user','ak_8191803bb3e0575c','2023-09-11 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=21961;

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


