-- Host: db-master-6.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=46130;

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$W8pF28HJS20eblSVFSrl1XrL.v8EzD5CPL0b9tdTtnZKDtvDKt0mg','admin','ak_77ac6f9d058d2c94','2023-04-04 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$QJMLGZ.NFWww1fcZ1tXHouY4.BKF9ckA3UwtgXpjo7Y9cW6un1IT2','user','ak_7f5c6bc70a954a09','2023-01-13 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$bKP/n9gha0URsdWJdbA0/OrymhXXS3rzMpJPwXPVbEk.YKrkjol1P','user','ak_3c708ebabcff5a92','2023-11-28 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$/DB6sgvmLlZOtU0hmzt9/aZ1QkDsg/hvBaTuivKDBW9mBFOegqVC4','user','ak_31469e72fc338c28','2023-11-18 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$2NASalJHYPobiaEpHehIUZJqTE.AF/EOoNDnQzzlO6FPmTf1J09MV','user','ak_5a49032519a5d458','2023-10-11 10:18: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=6761;

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

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


