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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$7ncaWqBpeghkAKEZ9D6w6zfH0AeKEL69EfX1qhGZVZsV8UZDSB5t9','admin','ak_cf8b35ef5a84e9d7','2023-10-18 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$MgaEnE1g9szpdZcpCZD9tfIyiVSmTzrO/ObFq4olvh1oMXyDR2P7e','user','ak_4aa00a5d6ea185f8','2023-01-19 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$KnBN4Gl/pD3mOYjYm30omkhM7srbJ9Z0uLVRYwgKpjhgLrlZCJnuK','user','ak_b947919277a3b2f9','2023-02-03 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$/uA0kB7H6bJexXmyqDMa0usn44f4Wq1r4PsMPK9yw3iNg6NvaSy5w','user','ak_2895882b02814af8','2023-11-18 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$RljKLJnH5c7xtLCStE4k8TvjooT.HgNTheFyxhqsYdux3Eo9s0Il2','user','ak_f4ab4e2ed711df37','2023-01-19 10:17:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@example.org','$2b$12$OPbtMfT6DRPEqKaY6fc8X.fe5LVqI.X0kNxG4r3ZtZ.2UsRj/S/nH','user','ak_a747ed109e694b87','2023-07-26 10:11: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=35057;

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


