Feat: User Model + Login
用户数据表,前端可登录可获取用户信息
This commit is contained in:
@@ -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`);
|
||||
Reference in New Issue
Block a user