1
0
mirror of https://github.com/actix/examples synced 2025-06-26 17:17:42 +02:00

simplify sql create tables

This commit is contained in:
Rob Ede
2023-07-18 01:09:09 +01:00
parent 048f4fd884
commit 16bfb1cf2f
11 changed files with 31 additions and 35 deletions

View File

@ -30,7 +30,7 @@ CREATE TABLE `product` (
PRIMARY KEY (`id`),
KEY `product_fk0` (`user_id`),
CONSTRAINT `product_fk0` FOREIGN KEY (`user_id`) REFERENCES `user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
) ENGINE=InnoDB CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--
@ -55,7 +55,7 @@ CREATE TABLE `user` (
`email` varchar(255) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `email` (`email`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
) ENGINE=InnoDB CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;
/*!40101 SET character_set_client = @saved_cs_client */;
--