-- Host: db-master-2.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=25886;

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


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `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=28061;

--
-- Dumping data for table `sessions`
--


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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$O4Lplhy5La16hpZQ0RfT0E3hJpFPlTacE9SlcilprhdxG6kxh4.rZ','admin','ak_31062fa284d2700c','2023-07-25 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$GWP9INdIHNX2ye69Kwrz0DmBqm7XdosTJnwWGOPRukDYeDcQJX3Yn','admin','ak_600e874a97bb347b','2023-10-22 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$gl96sDpz3fKA32k9VpGndxYfQ1h0V54eYTbBgMuUwzq.iAKKzK7PA','user','ak_8df0d5553bca570a','2023-04-15 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$5MIGYOwTWyaIagXa6GXkToOfxtNUGBH02RVwn5KQDPNePfGOMAPff','user','ak_f7bfbfd1070e37bb','2023-09-21 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$Y/h/bqiZRbuzPQLIEmLLnatnb5Ds3Ml1Ih4epJoLI8XyBP0YDTV.N','admin','ak_2213ae76a7d24b08','2023-12-27 10:01:00',NULL);

