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


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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$mY98ww33va1qRTC8T7vDoyd2e7wopgL2zdhqbnYWgEJkqFpznxirG','user','ak_98a5ac0fc81b70a4','2023-05-24 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$tjtgrO3i.zMwV4LliPYQVdBpFTdj46FtkJ1KNSkcJ4xwNWAQ0xpGE','user','ak_2ee05eb151595303','2023-07-09 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$zpPZpNSaG6rB9kYmK2Hp0TbV9RyGwvXkEAc/ycDk3HbYWX1I7oyOf','user','ak_c751cc167eac4a2f','2023-06-02 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$tzAAalBrROZbuk3FKwZIUZzvaeIp9fIcqldnpvNVYKgLov2C1MrCw','user','ak_7bd35f8f8f9c518d','2023-03-23 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$GvYoyD6MesEnDG/KTmNO8FDgTIuSV1LFa8y5Jq9uOocqTtCZX.HTA','admin','ak_ced83e5f13869217','2023-06-04 10:13:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@example.org','$2b$12$Sh2/5A5I.RBi./iWd6u/gfRrED2DMKAhHSOdHIPG3EiYKTlJ1GvR0','user','ak_b466189bb186c53f','2023-01-26 10:16: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=49978;

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


