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

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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$mKuiQYbi9QhV8EXedBJTVSDYnqKeSK0DGURkhmzf4u..zXPGqozFL','admin','ak_eb53ca4aa96ecb41','2023-12-02 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$4sApARKtmlhXaV4jkKcVfoUMAaAkbG6PfMIuC4aESjnyQzB92SlOA','user','ak_3dec4ec3ca2ba1b2','2023-04-21 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$wM1V8bqXqh6Tpox/zwRUzIV4LwCjijQPj4NGRSDu4F9GWWHG1f0Zy','admin','ak_26739f02c1f4421e','2023-01-17 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$BDGKwQ3LHj5sAsjWEj9K58xAWuGC2juAVnnrkTHATByFP5zM5Sa6Q','user','ak_3743802d0634eb9b','2023-08-26 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$TffkQZeO3crfi9q2iPREktRolLyDMjiJKL1JNgp/2LipLh94wC2bS','user','ak_f1de3f427ce3a212','2023-05-11 10:04:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@example.org','$2b$12$8CrI2ERGW4eJWK73Ps7rWpu/iyTwbTLhZfqIUYRZTHr3ZZyN60KfT','admin','ak_1e91d9dad7f743a3','2023-09-23 10:03:00',NULL);
INSERT INTO `users` VALUES (7,'admin@example.org','$2b$12$ybtxeSvFo/N71RnugPDW.VPCU1jcdSdquvUArPPwf20oOBZ9X1ay4','admin','ak_5b7bc90bd1fd49df','2023-08-13 10:12: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=12800;

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


