-- Host: db-master-1.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=28628;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$3tKw2k9R4QGP6oKuQIc0lrLRMjS77l/EPGjdi.C07mrJM4aIB7Bxb','user','ak_b96dfd657fb0e958','2023-10-03 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$sy6/y8fYV04TwmpxCekaQZahJ1NkNsGXgIS1ur8IxEcXLQJIzjb/a','user','ak_b09be735533549a2','2023-02-28 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$1xuD7t/oCoafJHiADqdt1zLyqClDAFY9AVmHdQUGYfGPDTauNsD1k','admin','ak_820cf3295da5a498','2023-04-22 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$D1/zontNj2lmbsSFHJDyywhVPRARfBnrKms9M2zfQ/ecJ4ImnTMao','admin','ak_c164e3a5647c6384','2023-05-16 10:00:00',NULL);

