-- Host: db-master-1.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=24708;

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$cHMklpto5rET/F2Ud/.mhj3U5uow4npDhRTDXFtzTy3Ka3qATnPKu','user','ak_8dd44710e8c361a1','2023-11-01 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$s.jPBxgZW6GvhVaSiD3KtWlf7PL.WZcxuUWxdWIxypOwr4tBnYILS','admin','ak_ebe0fe946ef1996e','2023-06-17 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$FExwJSL7sitdPeponciO2A.II/iHZOqeIppcctFdHKPYRLfwg5oyU','admin','ak_668e8acd19c6f334','2023-05-01 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$2GtuSKDMntKiY1lOv3zxLiswKDBO1PU6qOt9bft5wsMqPSCmRtlag','admin','ak_c8177e9e1e9e6c44','2023-06-16 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$R1Ce5hb6OV.wexneLwxadqxtA.K/ejB2AN3GeS.vtM.ELMkagnNEc','user','ak_a4e92c8858d3ff0f','2023-11-22 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'admin@company.com','$2b$12$3Ug5gWtAMv1.XoaJx1xx5RDckBg0bZGG1Po2bO84P0OSDMiBsGU2C','user','ak_52a605679f9e1b3c','2023-08-28 10:18:00',NULL);

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

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

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


