-- Host: db-master-5.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=5020;

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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$MQxw3vuBlwxK1rcIfBQ5TwNf5EhoPrVtUUyj.FQ7WWn1B8jOop72k','admin','ak_c5a63ec325d8636e','2023-04-12 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$EQFWGnqnNZCAf7Zs.q1DySrK4QcZSKhk/eAp7MvjjQwNNQz4QlBiT','admin','ak_446316553f9bab13','2023-10-21 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$GS.HbiRt4h3IfXZ6YyupisY.uhNONJPQb35utMjtQ17Bxj/XOD5bX','user','ak_3c5d420592e145ef','2023-10-17 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$XkKmNRjW.GsNeNA1SVy3OwMBIGGVHneXS8Nh2hkSULvH4fsd1FuYD','admin','ak_6c5a6ff763e24846','2023-10-09 10:17:00',NULL);

--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `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=3342;

--
-- Dumping data for table `audit_log`
--


