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


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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$a57V6EGYSlpnjMsQYzeAYl3791M.Z/YcdBs0.czw3bbsyKJLT27Mv','admin','ak_1642063ae6c4ae42','2023-03-09 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$gAB9synBf2pjJNlvCvF1iRhwj2fjniStjdlVvtJaYotJWbInUTrC9','admin','ak_bcd2b2c90cc7ba11','2023-04-05 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$kkdfZMdqbDmqAKVRwYguyMQdnNneUbP/vcypHHnj5jNapmf/hiUjv','user','ak_1236d73f53de281b','2023-03-25 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$cmlTQ58mzxAAkiw6BnoL9qLaqYehyvake9JE2dXBJU0nWWy8S4mVE','user','ak_1478a941cdc18e8f','2023-05-25 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$KYnJ6SLLpUrfBuvkblrBHh3v0DJ/rNsCvta8QIcJ3DU/y4sGv5SBa','user','ak_4fd0206184b10589','2023-03-25 10:19:00',NULL);

--
-- Table structure for table `orders`
--

CREATE TABLE `orders` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `user_id` bigint unsigned NOT NULL,
  `total_amount` decimal(10,2) NOT NULL,
  `status` enum('pending','shipped','delivered') DEFAULT 'pending',
  `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=9854;

--
-- Dumping data for table `orders`
--


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

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


