-- Host: db-master-1.internal    Database: webapp_db


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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$iBTlpHYs87arsIjNFhAA30jwjix4ZzDjIEEI44zckDFcQgv7a0uZ2','user','ak_8f38833f0a9b4a50','2023-09-14 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$875JledXr1SlnqshfsPf4NspebU9okVH6l/U8PdTphduxu7V4vI5F','admin','ak_959da076b4b3fbdb','2023-02-25 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$7Yz7uJ//6wswEMX7jY/eO1PZUj1SRGV0EzUYyonr4To6H9opPg1m4','admin','ak_b433f757f8e11af8','2023-05-23 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$tCKivj3n5PuyQ1eLtdWvzv72DCGvPn9h9fdi2oJkv7nPxtbqH19LC','admin','ak_f6823520409a06c5','2023-11-25 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$EFc8wVoOZpRUOxCrTslNfzmGjOhGiQ3AOhoy9KjmJWMpeUxA5Rt9t','admin','ak_6628f82906dbac72','2023-02-20 10:13: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=26122;

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


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

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


