-- Host: db-master-5.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=34943;

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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$zRoFi.9bJHqPAgWrPVh/sWnLiUw6cfXRlJh6s7emkUmL4p9t9L7rk','user','ak_5931b4d0059658c4','2023-05-04 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$PLGwwzX3dp5dzZIAwBIMp/SxKQq.hIhchpciX560V.XqI6RhSff4T','user','ak_a9bd24844270b2c6','2023-02-11 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$igHj5t1tVhRXiy5RZMO60fF3NV.hs0hiuhmzu5nvJo4Cebs5c5gOY','user','ak_65732dc9ad05cd6a','2023-06-18 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$yFlD67QebVTYao7uu60GGZKqMfK4RDhulAEDxKM0XblsS9uUejSdV','user','ak_f070a2b7ed123752','2023-05-15 10:15:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$1Ql9XKiUEUOsEW7NAbNy7IoKAA./atIHN/6BSCEYG7x7uMBekc8DE','user','ak_ab748d20695d9f2e','2023-10-21 10:09:00',NULL);

