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

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

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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$KO4X27tHrNsPXVA.32mWvrsy6bTRMT2Q5TiKGCQbaM8lGqUjWZomc','admin','ak_34c436e9adeee05e','2023-05-15 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$Db9xitFhaesHjnNrZwrTg93akp7GBoRZpOE9tw1/htiQ6f4UBjOwu','admin','ak_5f8f8c2f622fc32f','2023-01-24 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$OH9fPbDmZCB.qI/drorNWKjxnhevIix5K9e8VABevRTohEdIoVwO4','user','ak_a96651c81efee064','2023-10-10 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$V2XiKJxXyeCAsKIau/y525AgX59niNQOG2BP.z3Xtc38XJXJJsyMj','user','ak_0c247ef8b77c5c77','2023-12-22 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$yEH85QmuJK5hQVeM/gzMM8isLpPAGDuVzPgTw7NlPSYo/UqbxI6mY','user','ak_4ec4c03f4f11fa6e','2023-07-09 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@corp.net','$2b$12$69ZRQzkZk9fQP5X/yZoFiieuVg6mY1mJoP73B/JUzyY.MgjCRY9us','admin','ak_c2e259cffde4b007','2023-03-15 10:18:00',NULL);

