feat: remove usernames

This commit is contained in:
trafficlunar 2026-03-24 22:09:00 +00:00
parent 6453788ec3
commit 8fffa1c9cc
42 changed files with 153 additions and 389 deletions

View file

@ -0,0 +1,16 @@
/*
Warnings:
- You are about to drop the column `username` on the `users` table. All the data in the column will be lost.
- You are about to drop the column `usernameUpdatedAt` on the `users` table. All the data in the column will be lost.
*/
-- DropIndex
DROP INDEX "users_username_key";
-- AlterTable
ALTER TABLE "miis" ALTER COLUMN "allowedCopying" DROP NOT NULL;
-- AlterTable
ALTER TABLE "users" DROP COLUMN "username",
DROP COLUMN "usernameUpdatedAt";

View file

@ -9,7 +9,6 @@ datasource db {
model User {
id Int @id @default(autoincrement())
username String? @unique
name String
email String @unique
emailVerified DateTime?
@ -19,8 +18,7 @@ model User {
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
usernameUpdatedAt DateTime?
imageUpdatedAt DateTime?
imageUpdatedAt DateTime?
accounts Account[]
sessions Session[]