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


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

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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$uqZyUSSevsEWyRsJcCKs0btaFTN5DbJ6tdAnU0IrexZsTMGkq31sS','user','ak_b23ea8a12f516ec3','2023-07-26 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$vUA7PXOsduUjz98ep4XmMOXrLcbkQXqPeIHXnfntmhek.puUz3QPN','user','ak_586b135f7d54619f','2023-01-04 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$oA3bTWTafQOu0lhyg0Is2j0jl5cgrxV854oQI8dumbSHp3AWJLbSU','admin','ak_cd4666cebf7dfafa','2023-03-21 10:10:00',NULL);

