-- Host: db-master-3.internal    Database: webapp_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=35317;

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$FEW36yGdp84ei8hxgtrntMDnu18u3/m.fA2Ir3HvjI18jtoACwbRf','user','ak_54cbeaa5ea025ddb','2023-10-08 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$OvvAyKw/PXSGfPznjMpUxVtn3sufG4.nRBIwYqlP/wRsdu4NL5ZH9','admin','ak_61ec14dde3030127','2023-08-28 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$3AcrB1izkqYg07kwUFZJlBXxkkOEp72POrMQcMdp6SzNBBQP7EkAa','admin','ak_4b31becc4111388b','2023-02-05 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$YRwb/Zwth1CI3lClybUVlBGeyLPd7GbNawGEUTX58B.s6/8EhTKT9','user','ak_e03c489637d2965d','2023-09-12 10:04:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$ljmswolkntnRCdblBeM9aT1yB1hE8UGNedMN6isDuD9Vl82elfuOz','user','ak_b835809066737833','2023-03-13 10:01: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=50008;

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


