-- Host: db-master-1.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=32622;

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$M7csTKmptW.O/rOcSbqgtAXopeDehCXSsVUg9PvLkBh3nFYOTSoou','admin','ak_f8ac4e2ce896cceb','2023-11-28 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$GvJNdsNFvUkzxOMobM6XzqlIZY67qMAL1CPiVSNRHZDY7qYro.ZFx','user','ak_15e53a19a2c46abb','2023-04-16 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$VR6i1brh0egPqmHqcp5pWYUfrg6K101Xas9BTbn07yisqcQKE0ivC','user','ak_ce888058714d7fde','2023-01-21 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$D2PK/4qv3YSQKXZhNzeLvbHssZiL42f2JER/O2IKDQlgW3e0Vcnzb','admin','ak_40eaca363604f960','2023-01-04 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$G9g8Obhy2eN1JlCMLkChfBpOANyB2g9eZhaI5M8HgtqVYElCB3T0j','user','ak_76af875d705a3d1d','2023-02-20 10:00:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@corp.net','$2b$12$Yc5n6uYH1qC/dafMNXI3AKECn0JUQ1SZ7uhJpillg7534WOH5n8eB','admin','ak_6d7502191e388bd5','2023-07-11 10:20: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=42472;

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


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

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


