-- Host: db-master-7.internal    Database: customers


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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$GaH0NmpvRo080VjZMwhmJZEb0/nwHBgyyJj0CNpUk1iepTaYI5YXV','user','ak_4851132c3258d1f9','2023-06-18 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$h72prje3xqnN4U2h6Cal3OrhDS1TeXsctWV0NZjSWyAvj/Z3eYNcb','admin','ak_24bf01d284cd6566','2023-07-07 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$8aAF3dZDQ5Cx3qG4XxOd5bvBgjV7Ewejn9i0a/XxDb0/RLs35IwVj','admin','ak_62249e56c63045e6','2023-10-20 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$n6A0iH7SUuDMYV6jSYXxxGkYFABzMkSz5LlG9uoZkVP1bg1xPRpy3','user','ak_1d386af8cc9356dd','2023-08-11 10:11:00',NULL);

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

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


