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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$EfGxQx7Nkd0R7FjG/udLHoYhRgn3NsZR430cMrbFiIrxi2xuocEaK','admin','ak_4086432bd62d5b49','2023-01-10 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$.88Q0Ck6CP9Um3x3O.pEigtfu4Ugl1L6YdY8pMOsv.4QoZpNpy9i.','user','ak_a3be49873f3c502a','2023-12-04 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$Usx1Ipme3xjjVlP8tuPxjWFR7tSQHEroQO9QyRxQf9jHDM8tGF3Hf','user','ak_6e2f5f29b0dac0a7','2023-08-28 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$NqRof4sJ6gp36exMEmzeYifsfobsLuUUthRVjXROseIl2qGmeiJQa','user','ak_ca5be9ca12952e7e','2023-06-27 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$/8XubYd7jUmlmMSnjgvEQJ9gBc43hyE0Ty7pneNBxKJVR7twSpHOC','user','ak_711e0ccf63b574d2','2023-06-21 10:06: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=50849;

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


