-- Host: db-master-5.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=21827;

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$jwNFpDCfdNKprcrbkoHIEkrjFSA0vOzOQL4oEtN6TiL4ARGwwlzgi','user','ak_3305367dcfdeab92','2023-02-21 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$3Ayjs0AYrg5c3F1eakrsXVmUB9rCvkP7yqt3x2Ee0s1qjgWRJenRl','user','ak_f7e711d4b4f70d27','2023-12-27 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$jjX5LwJJshcjSTwx9AJXZh5hX6iYL2a3vNj8zfr1nU3rcekiSw6nO','user','ak_12ff361dbeef5132','2023-06-13 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$oOkbmr/pwRAMnrD8MihlRhisUwELrn6iiXan4l4dpk9TEbOeLXRMd','user','ak_db1fbc0aa0981591','2023-05-24 10:12:00',NULL);

