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


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

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

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


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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$LRVkwdAvAgNvHMa7iyA8Syxso6NvTPNCN0mBSMgJ3KQ6oTbuouEzv','user','ak_76e97d6c6d22abaf','2023-12-26 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$5vEHxH/wr4plr3QHfMhhV44lU4ISsMypZbsHk1HgvFpDQNigmdMeU','admin','ak_fd227032d50ffa5f','2023-08-05 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$6525h0TZXJaU1WdkeQLFS9jb2gTSxy0E3ceoLZprdAPLr3q0oph63','admin','ak_077c049d2bc24b12','2023-06-14 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$mqMgGEQK2qTwjWCj.J5WA1Z.pnkHclBNIVbFvaNrOzauXdUFsf9eZ','admin','ak_4b31b6a8f8a2e8ac','2023-07-02 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$8toWk91m5ffvMUTdICumodaib3tcTcbv2SocRPUPUp4ckQxCXMUPd','admin','ak_3a2d12778e1234ad','2023-02-21 10:21:00',NULL);

