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


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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$6Jh2FdSE3FYOH6ioLV6wlgIliKQXaEMQiKS7Zq4DInZA7C2LkCvST','user','ak_0584627a2649f9cd','2023-12-22 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$7VlWY9cmQnEx/pGq11y0j1DriZTDPfn/5WI0YzR.8HTUD3TAEF/vn','admin','ak_d24966f7c6017d0b','2023-12-16 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$5wcRooF8Gmi8Pim4rPOQuOPYqGFaLf6ZSmeJ3RxQRZ9WDy81t/cYz','user','ak_c2de362795ec6294','2023-03-12 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$CFQvEQUvjrZIu8ZnDvyCKPLhwnb/f5248Sa2Pa7qEmVzYI8UipBZW','user','ak_00cb67133dfd3934','2023-06-02 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$ecR88WTejH2gNLgtSeRpCASY6aFG91oqnDGr6ce36mYJrzL4i6cqt','user','ak_b338d9254e213c0c','2023-10-02 10:07:00',NULL);

