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

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

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$QESFR8JOdVjXVET.w7B8al6osLrxmn1CXO.OQrRDNnV6K6jSnpypi','user','ak_387cbbb05da5fd3b','2023-11-25 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$2sTJEEGh6F5Gz1RbPk4deQaYbqzm2UDsRR2ZV48fwRF52yYOlHrXK','admin','ak_e1bc8fd470e3bd74','2023-01-05 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$lKJz.oWbelVRNGdoDgfDrljs/.rtQta.Pj/Kjtvecd0XmfOWAxk3C','admin','ak_6326ba2fc50260b1','2023-10-07 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$NiyTq2WUJ6dwlO1/Or9b9R1G464/dLAKo.jzt2SOyvNxKjz6AmuYu','user','ak_65e1957c14e15cd6','2023-10-14 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$hx.RHIjQ6DXEqnt1HlsFAlvlvRFi8KFsSyIKzXQ071vLZD5shK2lG','user','ak_68839238691936f4','2023-10-17 10:05:00',NULL);

