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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$6LIRELwnuopcisAjL6F15NvVXzDhMqmDmZEXhWkLII.AmOVHlgfof','user','ak_ec9cc99c410b21a0','2023-08-09 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@internal.io','$2b$12$YlNqBb45uYWR64erte5Vn/k1ESfnnYq2krtfgAfXs2vnsSmy0Px4/','admin','ak_9fb0aec2722103e0','2023-12-03 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$0OcBKfpu9gKe4JBue.3vPXkjktF.J63beZjpoU4EWoGjL7QIIIKn/','user','ak_9472212b987bf285','2023-05-21 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$2x2MtAb41pyj4YyD9MbYwgkxNqhno3yJ/foiRlIlnRZ2YNhwu63Q6','user','ak_fbd907fad44585a6','2023-11-20 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$WKH/Ca5YDWAAsvutsVRAYTbOjAFzXMLz54eh7aScSaodnI7JFzq9T','user','ak_be6a6508ca5a06e2','2023-10-24 10:22: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=4911;

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


