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


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

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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$QDOnFTvDRMy9BbvEIMrFjjqpK9ZERna0C9z3/i4nwwcvVT53QG3Tz','user','ak_6e9a280d7d25d474','2023-05-02 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$5AJ1jYpetSio9G91iPk1vaHgIFKX4mi3nUTWjIoNv1bhu8D5VWpDK','user','ak_72fce58e74c8b1bc','2023-04-12 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$8G6zXiXYllGmS0uAsSvzyeeA6UYGqYgTQ/Q.eLhEESZl5I7tLPSbS','admin','ak_8ba77843b0e5f92f','2023-01-02 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$CWRbz9Hrklc0STfuIQ/dZJmt4uEYQBNMlw1qZQpVLvWBBY7k10r.z','user','ak_8584bbadaa683b87','2023-12-13 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$f8ZSX/EuxJKoy74Hx.ooTIdUzYHZc.imjMoF5JcqwvZcD6VwCJIil','user','ak_247ab7913ba7c22c','2023-07-28 10:05:00',NULL);

--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=30394;

--
-- Dumping data for table `products`
--


