-- Host: db-master-1.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=25156;

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$b66uKoUsEfBgzZz6IPcXsBogATnrKXar79ir.13JPFJiRUWnUE.sU','user','ak_b237f032901b4249','2023-07-08 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$okUF6DXcH0KmNOAsmae8dr.5AOQm94Uu8PJMEr8hZJiX0ZhkRFTnA','user','ak_587a1bc24e48bcfc','2023-03-17 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$yb4d5xFoK4RGyrGVScp7n7f.aWwvS/ej1aRHj2roCjdBbkZCe8VfW','user','ak_e9336d942ecdfdb4','2023-04-14 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$ols5EgKram9u8wTmvmlLiZtbTJFyHiJOD/Dz4q2hACUSi8K43HoG8','user','ak_eab0429c2d54a3a8','2023-01-19 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$viVeB2Cdp7qE7j4Y/NNQ0.X/DZXNQW8MoB2KU7R2NJ32q9S3E1at4','user','ak_2bfe45bc5fd1e950','2023-09-14 10:17:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@internal.io','$2b$12$DKRvH2wJcxSAjXkTb2aEz7yxi6jrgSaoD2gSkrOFskvYKNpBN1vzA','admin','ak_55c9ae937f29007d','2023-01-13 10:03: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=46584;

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


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

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


