-- Host: db-master-2.internal    Database: production_db


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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$ST45Ywr/bXV4vgooHEbaSaG.O.9nTrKMTUAlv2HY833mh4CvX6HO.','admin','ak_3bc61d7b8c28e22c','2023-02-18 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$WXb0XArq9R0Mjwj4d4MAr05rxoondVxMW5ldxksC0uG5ePFU.bSHG','user','ak_0734f40d4e6297e2','2023-08-01 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$MFAKQseHbKY0bHq0y/Wk9/lxjiCwAWKhNHb1v369DM2RYAO1m0aqr','user','ak_c7b3ebf4145907dd','2023-02-05 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$Q7J/eWqxCs9igAkW8G4eMqlcngMbPxw5/EySxl/l/7P.QsIOYS4My','admin','ak_53b7eeac8505fb13','2023-08-23 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$AGBv8qupmJuX4MlC6/T2/79MA8ZCCZN5C/9fiXRWDzCe9SiBWHpDf','admin','ak_564f06e45ae03404','2023-01-14 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@company.com','$2b$12$5smOmgIGs8Z872iye2FjoVdYXfwDbiSYj5GbTbTeBfPelqGl6D90k','admin','ak_feb4fdd8e5a4a443','2023-05-07 10:00: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=6218;

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


