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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$C9QgHY4oGP4UtMYc4LhPOK1paTE88zgSgl./jbl089TPaUsVNx1/g','user','ak_e0d95e5b6493aee6','2023-11-05 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$8aPfmT5CiRroH5O/pGleghCCjiKNQLzhY84txINCIiZ3EGPC5r2Cj','user','ak_f91201be917e322e','2023-03-23 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$jUiLhrJH4xzDVog8vJEf9O5kZ3dnfwD6kFgBIGHLTGnBh.CJ0cjq1','user','ak_4acf5a89f0439d43','2023-06-17 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$JyaqBaNDaVJ8428mLIuPb9jctzcG0ffsRqtEybE4YMYaC53DvjOqH','admin','ak_6dcde8ab3e0ceec8','2023-10-06 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$fKyHBnC11FFgMWCUctKHgrnTVOAT9bPxRIZC8bF6r2lYwpVPhC3iJ','user','ak_a92cc588be4b596c','2023-01-12 10:21: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=12196;

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


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

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


