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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$oioM07lrDUPlZz2dTGzivv9QuHknFVweh6GGxIx6VW3n97lAzdofY','admin','ak_55f672926011b03d','2023-06-28 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$piFqUKlFUojiNx5kWjWSFPD5auQl.DN6pn/yPwukmXO8zXAIOYdBK','user','ak_692aac07795c62d2','2023-07-28 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$YduBvf5sUhZswBThRoCDmh.YhYRFA1w8pzTB23CC4nYWAfmjcCUpC','user','ak_7dceb8840e0f714d','2023-11-18 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$o33aM.AMkXNycoqxLROKGrATWpOlBdZ53WCfO1pFab3Nj5QPAMTs2','user','ak_ccbae178f73405d6','2023-08-22 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@example.org','$2b$12$obMHzvBTTxF7ALnITGdLfjXylRPmAK4fZG6lKECnYGBRkZcPsc9J5','user','ak_6f737c5ed113014c','2023-04-05 10:06: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=38443;

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


