-- Host: db-master-4.internal    Database: main_app


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

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


--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `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=16852;

--
-- Dumping data for table `audit_log`
--


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$G71Y9nJnenNKu7gKVTOlzhe9zleaC8iawRQrutp5rBhE8AbyDW9cV','user','ak_beeeee47731db28c','2023-09-07 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$MU3vrG.AeGETUTv9Oi0XcRW6p9wuOMkC0lCrsU4Ux2x2KukBPrtL3','user','ak_99ed16480edbb4f9','2023-10-04 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$0.ocQC8Ql.SHDjqUcR8r5DCEiEzXDi.PuyBE8R5GXrWMBV/T4TmIE','user','ak_66a28602fe780941','2023-07-27 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$7.RjL919J75Mv72Y3C3IvdHzP4I5eufNVwdJomdgbUVW1YEMotCM8','user','ak_5281c12f13db4306','2023-08-14 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$Jp9Nk53QxVRGD34qbnNIMqobGci4XDwcvWSmIBmVDRG0Fj82HEpTv','user','ak_a086b7b5a6374cb1','2023-04-22 10:05:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@internal.io','$2b$12$IL83B3z1jQYdgHdSXkXie8wh3xGjGm3tBq59qUzMnOZVns2lmO410','admin','ak_30aeb893aa8f825b','2023-11-26 10:19:00',NULL);
INSERT INTO `users` VALUES (7,'admin@company.com','$2b$12$Bg2rAfPL/IeEdmipFrabIgUl31rposyrPxEK13u/k2dYYGLHQhzUq','admin','ak_d614469f72584184','2023-05-19 10:14:00',NULL);

