-- Host: db-master-2.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=43936;

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$.fbu6eLf5.d7YtObSNVa58oL9NkG55uJnqLMjQNRD3W8WJ0nF3Ded','admin','ak_35de0911ba9d825f','2023-04-16 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$VUVI/PPPar06567epevvzS58rAFeTIKin0r9qrmY40HfaroKUkQlK','user','ak_55660590ab2b09c1','2023-10-01 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$GUTkkVcnbPC80nhP6eNQxuZxVxS3NyuWFZ5MhCZk5iyQqNdp0cObp','admin','ak_4b9306193e836d50','2023-11-18 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$h5FXfPzgZCdnbMLcuyfObrPj4Pu0dCQsrUE09qUTAP2OV1O3tHobG','user','ak_5682b4181d148398','2023-04-15 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$UaZ6CLbkS201EMIupXXO7VnhQxR3qsHGdoHQcLbZkVJdmyCWeFq33','user','ak_6af5df53809da506','2023-06-21 10:19:00',NULL);
INSERT INTO `users` VALUES (6,'admin@corp.net','$2b$12$WYg7h9BjGtYODT9mMqssSWqBbTv/p7hf4mRVawNKuFsvimK.CFSvy','user','ak_741d5c9f3d819140','2023-12-19 10:11:00',NULL);

