-- Host: db-master-0.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=44183;

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$aRGRVqBjgTNjlknqmu8BVP.ySdI8Vib3/gWx.mndqDlkEjuy3GSIi','admin','ak_d1ef51141cf2094a','2023-07-27 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$XeB7bS1KMfu0lURI9T0yQ3XtiqjCf/HuQbtrx1TmY7zu9/G0kWqkb','admin','ak_7643bee41e728b92','2023-11-13 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$jHZIv9zcPgblV/PDZ6.6FR1XgYKJhzODxMq2MiMFVHJ/hQ2M.COa1','user','ak_37acc48dc33eb893','2023-04-27 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$ncguiIIL/OkDA9C1dRpaIcwP7eUSLviTtZ09Ku2fSWpHEmcSo15MD','admin','ak_f93d304ce81d7398','2023-06-02 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$XYqMDMCRj5cbI2fbv2xhqySWuLzlBr.ISQa0xQA25aa1tjndbFvY8','user','ak_5482917dee49ba84','2023-07-23 10:11:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@internal.io','$2b$12$wSfZKiUjBrX08PY5BdnalOW8kUWdcgTl50zixDjuIU8Yo67aV/sMY','user','ak_8f17cd53ddb592b7','2023-09-18 10:04:00',NULL);

