-- Host: db-master-4.internal    Database: ecommerce


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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$GMhdzQGIoX.y/fpPJ8rieldB0Npw5zJlJwZTXb9M454qgixtY18yW','user','ak_00dab3ba28cb2818','2023-09-21 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$euIndk0VZe55xEbqLF5/iEibXKIXDlhIQ2leOuuLYw28M95svswiS','user','ak_f40baa058d628d97','2023-11-16 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$KZh76ak8mflXCiCnjfKQcjqHp2kWTNcP4STFBkFt7IzL80Eu.55wj','admin','ak_6012fe14b15236f0','2023-10-19 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$o8AWxrHW980zpWXus2GyFrY4hRLary0ZinEbA.g5aadKX3m4gnnQq','user','ak_e3510782c5c8e9ba','2023-11-19 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$quk.XU6GrTv7KGHPg.RbQML75.7svISnVSFddv8ipPlskoJ6cJOj0','admin','ak_a33d8a79d354d968','2023-09-28 10:04: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=10502;

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

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


