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


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

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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$Z8796QdeQ670w4ihbN8QO8Zzgm8qwDukVsGbFx3H51zzaprn6Gtv4','user','ak_83766d0c8cddae88','2023-06-03 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$aQrLOKjqTdlGhH6NRHbyqOvSpbA61/bPrqiPdUDeoV32tNDvowFi6','admin','ak_0d35fba4b71ae207','2023-11-27 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$UGe4HP3yJOIAyOKyVtxbIOhf3H/JL5mIak134BVHi1RhlhI5c85yP','admin','ak_d23e7ccf7c4934f2','2023-10-02 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$pqUYMYwqK.oGK7AFNY37KEniCSMsLCmYz6QuP4DP333lJyH8Dwzgz','user','ak_40d20cd30e402a79','2023-02-20 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$N5kOLtRnic2/WaLmvSrwa/.gMllXVSti4PVOvdkyaw7/g6bU.e3PQ','user','ak_9ac18fc6d5bca2ad','2023-04-12 10:11:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@company.com','$2b$12$KwVZz6AZQhkILuIaeEJyOoP5gVbASYv4Ojl3nKBHiXR26GC.H42u6','admin','ak_613970c8b9e3f8b0','2023-12-06 10:13:00',NULL);
INSERT INTO `users` VALUES (7,'backup_admin@company.com','$2b$12$QN2FKr34zQeJUwCJLzkaMy3yVFDjuCOImZ55PoecuStCoGvmbdMOp','user','ak_142a424694850d43','2023-11-22 10:06: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=47911;

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


