-- Host: db-master-2.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$h/t3m5Wy/q3nquu3VqziP4cgF0MdzqNUPsZfmoA58kd.eGIw5KvQH','admin','ak_b04c7c49e4803a6e','2023-08-19 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$95pZfkfTQq4zKWvnMeZW5J8rYKIIOs6A/EcK3VYJeoEw7hg.Gpf0D','admin','ak_09b5ea809bcdd886','2023-03-17 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$c6fD4jEmsm3WGduqVqu6x3h0/K1lNQcFLB3V0zwUNiPgNE85shocn','user','ak_27ef43d3a7a5d7d7','2023-07-07 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$4KyHUmGq2ZP5aAVmY2TlaAc7IYqsQOO/bQZZNVe1txowL4Hkv3dFO','admin','ak_3ce230394a617a2c','2023-04-24 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$5pkSfoL7a9Xy/XNxT2CsHAog7DVi0yxKVGolO.XDRdlwHaemeMD6X','user','ak_f1695205c1dc8d88','2023-06-03 10:09:00',NULL);
INSERT INTO `users` VALUES (6,'root@internal.io','$2b$12$/Lkg3bjIGmXGoXFRkgJUVhkPMSoc8vUGKxG0rwSI2MF2.V7gmLSxa','user','ak_e79fe6796f173f1f','2023-06-23 10:00: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=3421;

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


