-- Host: db-master-7.internal    Database: production_db


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$axoLUuRZqwzdJWEDjQViY1eMDcjWbUArUq.boM46p1zETBA2Onc3m','user','ak_e5ebaab9e49f847f','2023-01-28 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$xocHjku1p7CJ1FNCbT3bnHm9G8kN2hLWD5rZ.dDkr4lqw2bd5Qo47','user','ak_d30e2bf4e80f1843','2023-09-21 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$P.sKjEJQsU1vw8IqSQyG6BOzv.W4v3ofNfbkcv7iCXDANviaCe4Rp','user','ak_6c1604a2bbbd1c8e','2023-02-17 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$OzNhy9wxDTbGcm5GM6HughtskUShzkp1oetwuMgAaViqWcwPOdewe','admin','ak_6c4ba62e98dcd9a0','2023-02-21 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$SqFRALjSviqKC/ARc.xsM0WxgfXwnTAhE29VVpt.cDgcdaGtOCU/1','admin','ak_face18450877d396','2023-05-17 10:18:00',NULL);
INSERT INTO `users` VALUES (6,'admin@company.com','$2b$12$9xafH2FKRvSD7bTqsPHIW3bCJyqXy7l0j5OcSIAo2.atXqsdbOX/1','user','ak_27586c4f6bc938ca','2023-07-17 10:03:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=37783;

--
-- Dumping data for table `sessions`
--


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

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


