-- Host: db-master-3.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=44387;

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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$OnfsB2p8eRee3XFebxeFVK7Hh6jnWWLnxMyWHGexqiVIGDY/nKex4','user','ak_7ec3f7ac250f58e7','2023-06-19 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$pU304GsCfZu/cCaQwZjriJGpm.yhxmJE7aiZwAb/Z5ms2LCQGpcOz','admin','ak_eb8f4561b3143879','2023-12-02 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$L6.QMdGtw1rGMZuLNX8c84y7itzz3f15RpTKpV2uBKv14Hax5NP0l','user','ak_d3c1d7fa7a0824da','2023-11-18 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$HTzQBuOmBoY.A06fTo1jAbp5LKAABIIcxmzfco3Ve1Rl3ioC3D2ln','user','ak_b35e8ebbd9db7cb1','2023-09-15 10:11:00',NULL);

