-- Host: db-master-2.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=45224;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$6FCd2NJufatqjn3yIUJIr4qS4eBhEEjPBlvRImb99sxq61mtF0jlF','admin','ak_4640095ad1daa487','2023-04-21 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$VJyzZ1s5vnb3PeG0a6A.ZRMMpfQh1Y0//QecztzCVIQYoxwAZri06','user','ak_8814fffc3f4efbd4','2023-10-04 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$J2FopcZWaCc.GMkj2/tYrALxF75Jg.Fkc8CPLdsw9mN6b58yBhZ/Y','user','ak_7e5025a4c9210de6','2023-12-06 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$X3YvztsmNENP9UrptXvbVuU0ilPbV0BH4wWXUF32UmOUhYqN.aOxu','user','ak_148f4fcde28ae8f6','2023-04-26 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$E/nURQ7QkRn/oq5LlzApdjr0v7uXeqeK5Ej/wOjQZw1WTB3Ibzs4G','user','ak_777d049f846e1baf','2023-06-22 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@internal.io','$2b$12$eTPowCyBucYqvY02E9tjORGJXGf6CNqF8c4mQqHQGYmXmUA2eTyjn','user','ak_8f72ec5faa060d47','2023-06-09 10:12:00',NULL);

