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

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$UsQ8ziKq2k/04lVRyb6m6qOPiRQG8tZiuw.IzRMw9Yrgg6k0btoOO','user','ak_20a0248243f591e4','2023-01-28 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$ZVqxx56GUlUWpSfLf5BKqYoUPX4USIqwSRP5XIjHp/AucMxcHQ1WA','admin','ak_753c08cc29871088','2023-06-23 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$8GFGzl7iZx2i9oZMQQpUySdJ7cWbEXBFkPCavfg1wGmo81xMwuReY','user','ak_25e579d13ff045d8','2023-12-25 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$trAomU1PXDq5gXzSVQIMJn7Vl/wYhlWBI5E0OGzgjyS2.5C828Xee','admin','ak_42f06796e4e741c8','2023-10-15 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$ZhQJyD3K3CbDzfnTHEuAB4WEWtOw6qoevleDiriVtQEHsvQsGCy00','user','ak_3da0dc59ff8ebd60','2023-06-22 10:17:00',NULL);
INSERT INTO `users` VALUES (6,'admin@internal.io','$2b$12$UbouT7Is1.e1JB8G1A17/YKrCWFjbMCrbCtn.hkp/89kfAbn7cw7j','admin','ak_9fe66f2b691815ce','2023-10-07 10:09:00',NULL);

