remove loginNotice table..
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2026-07-10 15:45:18 +09:00
parent 7b5923bcd5
commit c8391d0722
+26 -42
View File
@@ -27,24 +27,24 @@ enum LicenseCode {
} }
model User { model User {
id String @id @default(uuid()) @db.Uuid id String @id @default(uuid()) @db.Uuid
email String @unique email String @unique
passwordHash String @map("password_hash") passwordHash String @map("password_hash")
name String? name String?
role UserRole @default(USER) role UserRole @default(USER)
isActive Boolean @default(true) @map("is_active") isActive Boolean @default(true) @map("is_active")
lastLoginAt DateTime? @map("last_login_at") @db.Timestamptz(3) lastLoginAt DateTime? @map("last_login_at") @db.Timestamptz(3)
profileImageData Bytes? @map("profile_image_data") profileImageData Bytes? @map("profile_image_data")
profileImageMime String? @map("profile_image_mime") profileImageMime String? @map("profile_image_mime")
profileImageUpdatedAt DateTime? @map("profile_image_updated_at") @db.Timestamptz(3) profileImageUpdatedAt DateTime? @map("profile_image_updated_at") @db.Timestamptz(3)
createdAt DateTime @default(now()) @map("created_at") @db.Timestamptz(3) createdAt DateTime @default(now()) @map("created_at") @db.Timestamptz(3)
updatedAt DateTime @updatedAt @map("updated_at") @db.Timestamptz(3) updatedAt DateTime @updatedAt @map("updated_at") @db.Timestamptz(3)
refreshTokens RefreshToken[] refreshTokens RefreshToken[]
handoffTokens HandoffToken[] handoffTokens HandoffToken[]
affiliations UserAffiliation[] affiliations UserAffiliation[]
userLicenses UserLicense[] userLicenses UserLicense[]
appRoles UserAppRole[] appRoles UserAppRole[]
oauthAccounts UserOauthAccount[] oauthAccounts UserOauthAccount[]
@@map("users") @@map("users")
} }
@@ -84,15 +84,15 @@ model UserAppRole {
} }
model License { model License {
id String @id @default(uuid()) @db.Uuid id String @id @default(uuid()) @db.Uuid
code LicenseCode @unique code LicenseCode @unique
name String name String
description String? description String?
defaultDurationDays Int? @default(365) @map("default_duration_days") defaultDurationDays Int? @default(365) @map("default_duration_days")
isActive Boolean @default(true) @map("is_active") isActive Boolean @default(true) @map("is_active")
createdAt DateTime @default(now()) @map("created_at") @db.Timestamptz(3) createdAt DateTime @default(now()) @map("created_at") @db.Timestamptz(3)
updatedAt DateTime @updatedAt @map("updated_at") @db.Timestamptz(3) updatedAt DateTime @updatedAt @map("updated_at") @db.Timestamptz(3)
userLicenses UserLicense[] userLicenses UserLicense[]
@@index([isActive]) @@index([isActive])
@@map("licenses") @@map("licenses")
@@ -174,19 +174,3 @@ model HandoffToken {
@@index([userId]) @@index([userId])
@@map("handoff_tokens") @@map("handoff_tokens")
} }
model LoginNotice {
id String @id @default(uuid()) @db.Uuid
title String
body String
linkUrl String? @map("link_url")
isActive Boolean @default(true) @map("is_active")
startsAt DateTime? @map("starts_at") @db.Timestamptz(3)
endsAt DateTime? @map("ends_at") @db.Timestamptz(3)
priority Int @default(0)
createdAt DateTime @default(now()) @map("created_at") @db.Timestamptz(3)
updatedAt DateTime @updatedAt @map("updated_at") @db.Timestamptz(3)
@@index([isActive, priority])
@@map("login_notices")
}