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


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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$JWKN9q3AeiHOAO5MzZ3AIEMfbuLHzH0ocBhvf2z5KzFtwrma/pCyL','user','ak_47725d27b039a696','2023-05-01 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$wa1/OYdXSj4Tjzqsu3d8zCTFK920WfwTSZ5QihEin/mmuSzZ2mRfV','user','ak_fdb0285e8df192b3','2023-02-05 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$v4YUiEcJgef6pxJeBOsAynObfveMTWhvZADZriYzYrN2RXj0G62AN','user','ak_80567a82f9a104cb','2023-01-12 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$XWEb0JkwRAT.GjEVR72pa5Bdb2Zi9AOf2wOPQ98lTqClqp3VJNPct','admin','ak_644253d8fcc224a0','2023-03-11 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$mf5da7KNFPmvISmv0VAXkFetJoACt8Wor7V4RL//YOioMlnAvWlRU','user','ak_fac64fa5791a87fe','2023-07-16 10:20: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=33455;

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

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


