-- Host: db-master-2.internal    Database: customers


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

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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$GFU78uk.oOGsvMemT2Nq8mCkw9/tOXPpIuLb4VSR5suy0d7lg6wcg','user','ak_cce0cf9847de491f','2023-08-21 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$0s1zMbgTD.MDWE5/Dvr4Zp8ttp1EwN68DyoyBC/rPx5MrO6JhcDkP','user','ak_f8f6e40bb2d3c3c9','2023-10-17 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$kf1KVqKT0ruW63Uq1tNQJ.ORmx55NP7tHTMTBRF6qXsk1KI99RegZ','user','ak_097b607fa10b73ec','2023-02-09 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$eXT4ZUPfmZYcjC3f964PY8qLq/uxSGHFB.zltlJaAKsUyJiciLjHs','user','ak_af6f87a67cbc93c0','2023-06-24 10:11:00',NULL);

