Feat: User Model + Login

用户数据表,前端可登录可获取用户信息
This commit is contained in:
2022-05-22 12:36:15 +08:00
parent b03c9339bd
commit 04eb8628d4
13 changed files with 283 additions and 46 deletions
@@ -0,0 +1,12 @@
/*
Warnings:
- A unique constraint covering the columns `[name]` on the table `User` will be added. If there are existing duplicate values, this will fail.
- A unique constraint covering the columns `[email]` on the table `User` will be added. If there are existing duplicate values, this will fail.
*/
-- CreateIndex
CREATE UNIQUE INDEX `User_name_key` ON `User`(`name`);
-- CreateIndex
CREATE UNIQUE INDEX `User_email_key` ON `User`(`email`);