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


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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$.GpCiQ6YwVHHqnCFdZjuSoS788c.Cuid2u91fkIR7amMmtps0eK5v','user','ak_6cbfd3c9d21f1a26','2023-04-25 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$cJME3dn09/ZyKcOdCuQgzid2/VhYD43C3LURuilcGJypsbRYY9Pw4','user','ak_2b9a2e884979c16b','2023-11-04 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$yv..EvU5Fgg/fE19dUS6M38OktbBdAomnaoCnXZfjlOPa/a1xlnti','user','ak_c2032dd01b2f4bbb','2023-04-02 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$EEq/ZlFnLC36bifp2Zoch09nw5R9oVJDFqWT/6X1INUZrBcXbeKMN','user','ak_a0f1a331ed0366cf','2023-04-27 10:14:00',NULL);

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

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


