-- Host: db-master-3.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=8960;

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$NwVMznE9FJoaL.pZXJjD9EGuHS1WcNIP.abkKn9LJo0dpA6bfvUab','admin','ak_6caf6cf7213e3a6c','2023-06-05 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$0vxfNt7Bck2n79aRTGk5l5wM/OKY02lL7hysVxsgUIhnrc09mBZ8s','admin','ak_500f4339f4cbd883','2023-11-28 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$bF3fZ9wi6OPoBX/VJ9h9PZtDbB9n5ZjvD0Cx7GbJCiWpv9cXqgK8T','user','ak_7497ce1519197d42','2023-07-01 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$lVl.IbVQjeYs2ic8A5aslmGxGlDQh6V2av8/6TVjdElbyFOpoH0/D','user','ak_00091ca8c647db64','2023-08-09 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$r8TKgHQxgm9wGoh.OzeU0osMc8Nre3V69pWFvNmgtT1n8GHWIbGRc','admin','ak_d894fa0111a8bf1e','2023-11-06 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@company.com','$2b$12$B33pNcxv1NG0yxVRWSH2rgWSGbyS0hswBTxFvvITtz85wpyeJnOvX','user','ak_dec74b7326b348ba','2023-07-28 10:16: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=11891;

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


