-- Host: db-master-0.internal    Database: customers


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

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

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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$eZRYb0LDyXtts1WwDlbevecg9KyBG8HTlwhMHk/hCA6T/1.Npw9.J','user','ak_2683ea52cb643737','2023-11-18 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$HzYRdUc7RC5q4854.TABtBqWXQ.B7zvfh4w9fLUGiwNoSQyeAD0zO','user','ak_e065daa54207d7d5','2023-11-24 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$WpO.AG5enyNvOwpcA0lf2LYrRCSud4HMt7/SylspLEWFhI.5ERJBr','admin','ak_ca992e2d0d2ec42a','2023-07-14 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$N77.8QmN59UjO0BSgohhwu54.PibAxyEJYIxFA5Bg54paRKOxFs53','user','ak_787653e29adf87ab','2023-07-06 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$nYaGMVHrsWddacRGm7B3hBiYFWQgnxJ9MDsvAmOsL3eDrgCmIkFRI','user','ak_1c6a089daac856ac','2023-06-24 10:18:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@internal.io','$2b$12$4zkWpSQJBJnSFrNYmjOT1jx3eAqHvxu/B5gg0dCQFnoBqmcett.xd','admin','ak_2e5bf41c6f81ee55','2023-02-02 10:18:00',NULL);

