-- Host: db-master-8.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=5695;

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$d2AFIyrqai.sVX6o/UTVzZsjVR1b33iv5CGFEpTRuqR9qByRjaVhr','admin','ak_14e6058170187c77','2023-08-03 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$c2NdQ5VqYw.0E8cG6wHBzYBQBSiKLLXngYP3RSeKC0qfv2a6JfdGf','user','ak_e2f52f7ecbf9433e','2023-01-19 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$tbPfTFEHsGg6iGY4I3B7ysxVD9keZIQTFpOdkACl/l6ybApkYoaHl','admin','ak_7d0cdb97f1e1e5a2','2023-05-10 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$OCWHpro.Wp4qolCr/.SH98OxRKaSB/wrrOwfxzlLWVnOTQZWqARpM','admin','ak_34787bfbaac1a490','2023-03-26 10:01:00',NULL);

