-- Host: db-master-5.internal    Database: customers


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

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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$A0PctRU6J3o/21neSZ4EhTt2FCrLaqQfIW3idC.WlTDKBxuuF4XEO','user','ak_933faba684fc251e','2023-01-15 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$.e4GpXAYqnnlsa9okUX.6cIl5etaSHV/zsUfGx6eGhD0ZxazhVp/v','user','ak_96c7c9adb2679faa','2023-06-15 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$7GfAMGF7CMFYBWO/YABUHfJDClP.3vtviPVGuV7ciw4BbTUA8g6fE','user','ak_9c371877cdab6c6f','2023-11-01 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$tAxIYYEYr4fE1TE000vzvIkKyv1aeELrmmLWoFC9lH8V9nZUzzen7','user','ak_a55485559ec8955a','2023-03-14 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$PPILUM8VKE8naO.EGHnfYOtq0iM9EtK16Hj4vUYdv4l.uV9RZc4kv','admin','ak_4d2eba0b1f9e63d8','2023-12-19 10:23:00',NULL);

