-- Host: db-master-4.internal    Database: analytics


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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$T1aZIOELZanSkD25t0NoZ1TL86TLW5JcN/qoiuUfzDNTHjw1D3821','user','ak_f83014f6404d858a','2023-11-11 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$pVj8CS33guJn1hkskFuuVMay0cMSC/Dty9O4bV770He2Oa9tMPL5x','admin','ak_52c4b3073a3966e4','2023-10-25 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$fW8zvX8pgWyvA6BZ6aexwFQM7Va3dO1zmGSDHlfHIfRwvub2qzB8d','user','ak_c8d97a41c58f2e01','2023-05-09 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$xPjLH9rKD4FiDHcEEWcmLu4fo0FvNHQdJ3Sb2f7A8uUc04xjP4zaB','user','ak_98037fd1523348b0','2023-08-09 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$XGlhRNu3aTlqYfvC8M/oNOprJ6ve/40JZlvqf3zMbLpFjIfrcaKZY','admin','ak_526f0a14b41bca0f','2023-01-13 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@internal.io','$2b$12$J6BHfIJODkW.L9jE2cTdibadDB1gyvCNTP0crTEBZF1aVN/FE/1xr','admin','ak_22411b92cfc04cd2','2023-04-04 10:21:00',NULL);

--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=14706;

--
-- Dumping data for table `products`
--


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

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


