-- Host: db-master-9.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=29362;

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$.CkvXT0Uo8o8NC37tIpYoGRLEl8uy3mQyvYUvPfbMA0ZzMOZgVVgf','user','ak_6de4982c6114b7ac','2023-08-28 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$FIAFE21XRVHaOoo7edtUXg64nIENdOJTSsUiaOPitM9KpNR0OKjk1','admin','ak_bbb62a6ea2c98aca','2023-06-02 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$Tnaf7ZakA0Vp5ZqsYYtz31WO2OCoLKAW.DWkgKgdo72i0q5xZq44f','user','ak_e1edc5dac914c7b6','2023-03-07 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$HCO5Y97lUuLxH87KUtWhrAyEh1C0LpCt7xe9Uc.wi3DVTXKe9Hp5a','admin','ak_a6109b200a0a720e','2023-04-09 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$aGJ0i7zTOMgFBto2BCimAle7BFpr3iLnGn1IESK3Szqp/NgGBYIe.','admin','ak_b6e238475838d3a1','2023-06-01 10:16:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@company.com','$2b$12$SEulA6iQVzK1O2i4BQPl2L97eA5EayFALXO/Ylp24iTvwRxAqMKRA','user','ak_ff38201cf609cf4f','2023-10-22 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=27941;

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


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

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


