-- Host: db-master-4.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=22379;

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$3tvYAI0g5a1J21GKgACLznkgCdCv1f5vQB4SlmxnM6MwsRT5lfPNX','admin','ak_4be8122e8c50b9ac','2023-02-25 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$Da10xDaaj1ScvPDHtGlZ3R0NyO7ZAkbAvBmyWG8nQk.y1mPaiO9d0','user','ak_20e4dbf579b35f9b','2023-03-05 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$lI3.cZjFLaZj/T/Y9PhYk6ZHodnEhVzWx/Dsk2HSIn7eH/n0Wr1Js','user','ak_3ce985f787b6ed6a','2023-11-12 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$ZSH1jBg7N/5ul/ez2ShwnDsKrp7mvuc1oB9hhIyt5ys5Vmsm.MT9e','admin','ak_01c68c41417db7a3','2023-04-11 10:01: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=46517;

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

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


