-- Host: db-master-4.internal    Database: production_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=26383;

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$KG9oTrbiv4Ke4Dx1jkqn/of7Sa4DkPgXTlZS2X.F9Wk7rzRyGPzc/','admin','ak_5ed8625b4f627430','2023-05-27 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$qJ3QiFbDoJECtLDw.BEz3x.pxq/goP8/S3QVfAIKWDgD29ApGXXBa','admin','ak_c94e31b990eb9701','2023-01-05 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$kpsc6QtvfDhTDTdXoigasmFryazy.VMmDTtd57xu71yxlvwN6pV4V','user','ak_adf124bdb04053a0','2023-10-19 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$c5gEsU/mlz.2ZpR6Y/Lvkf2SQ5bU.74b6bxTqHR0LgrB5vgOArLWF','admin','ak_12b25ed13c63ef54','2023-12-05 10:12: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=35514;

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

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


