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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$Y0bHGZOskS3gz7ypAIxf4f5PkNpRPaAz8zJVa29c3RJTeGypvFYC1','user','ak_f755109a7ef18c4f','2023-07-09 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$TSeNNCPbYuIF1GvUItaxWygctDwIQ9XIHfDpNp0Xh5qCqaDnk2YfZ','admin','ak_fa919922272d7642','2023-08-15 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$UF0ODMwkFk9DtlaaWY0bDBIwXwQnUmrCWbwIsHTTT6RWZrmvWPYD2','admin','ak_9b9616c1820dbd38','2023-08-28 10:21: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=10964;

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


