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


--
-- Table structure for table `payments`
--

CREATE TABLE `payments` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `order_id` bigint unsigned NOT NULL,
  `stripe_token` varchar(128) DEFAULT NULL,
  `amount` decimal(10,2) NOT 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=10293;

--
-- Dumping data for table `payments`
--


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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$0N6V5bEVthppnzPWzZ0sdkP7M374WtcfSzSBAPEf5wa7KUzD0vqSq','user','ak_c49ca88489317fe4','2023-01-20 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$Z7PVJFmSc.Ttjx/qlQ1RZ10s/2g8o8CtNR6jcOD6rZTLUxIlblRId','user','ak_5e7f39c1fb6bf3da','2023-05-10 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$lkP1ZPicv/HNFOToydhlvHWolnMMpOrCbUOJT6p.hspzDrOoSsmEA','admin','ak_54cd9c5caef78be3','2023-05-27 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$v17zVdgjYPW1Qgl4U/4p.8tp7lEyyyjU3UeH9lONNzKAHjFHi1O//','user','ak_f3caa8720dfe1f6a','2023-09-13 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$lYn2vhGLNrg.HBME6Wc/0UhbGqbm6h7xAq5KPpS53tT0g6tlD81BE','user','ak_960257929fa54535','2023-02-25 10:04:00',NULL);

