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


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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$q2EUCUZlicPRJ8HXQouLR.Z3uF55nDLR4.kf5BWG4GaJ1BCRHIr9A','user','ak_7f431b45a303dc8a','2023-11-28 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$ltUjhVRgDYvn8u.iD3oYL2M.6uhUg3SEzvR6.wGsWnVVcFhtjz92I','admin','ak_8fefe9ab1eab2050','2023-12-17 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$0MYqNxGk.VL6TMLNwlMKW/9O8COZ38wXvajUUMMqRqvvH.D93eUU0','user','ak_9dfa0dbe696785ec','2023-09-07 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$s0wFV6845nnGlFfzS.rKJEtJ9LSui3ur8p87Dwq8oyxgVIA/x5j/v','user','ak_a2e5021aa0bb071c','2023-06-26 10:00: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=37971;

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


