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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$y1cpXHCMqneYJFDh5cr6WqPS5d3iIaNOApov0DxgJgjpBQeonQSAf','user','ak_53de92658ae9d21f','2023-02-16 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$6B2wh9Tc.ZxQvdRdOSf0r.QBJg15iTYBmHekENYq25Fsv7zvp6pFN','user','ak_2683e359968cb34f','2023-12-15 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$Ql4xenLQxh1mSUvN3ZS5Gi2gGhYKtgGveGli9Lx7IGz7yi50fL3tR','user','ak_36dce80648f21354','2023-11-24 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$K5ChJwQ6BFlVE/6XRhgsNKZyAhUs6Gk/9AKyJjIMJq4hkjcB30CAC','user','ak_6fc6bd64569fde64','2023-09-23 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$EjMgAgh8q15ZQeGFGNMUWfOkmueOVQyCMhCXvMGLyxlT7xvWZvLPo','user','ak_9a8596a4ff0237e6','2023-05-09 10:02: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=23014;

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

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


