fix: fix credential 3rd error

This commit is contained in:
2025-06-06 01:58:19 +08:00
parent c669d66969
commit 0b5f25a263
13 changed files with 178 additions and 52 deletions

View File

@@ -28,7 +28,11 @@ impl MigrationTrait for Migration {
table_auto_z(Credential3rd::Table)
.col(pk_auto(Credential3rd::Id))
.col(integer(Credential3rd::SubscriberId))
.col(string(Credential3rd::CredentialType))
.col(enumeration(
Credential3rd::CredentialType,
Credential3rdTypeEnum,
Credential3rdType::iden_values(),
))
.col(string_null(Credential3rd::Cookies))
.col(string_null(Credential3rd::Username))
.col(string_null(Credential3rd::Password))

View File

@@ -18,6 +18,7 @@ use crate::{
db_type = "Enum",
enum_name = "credential_3rd_type"
)]
#[serde(rename_all = "snake_case")]
pub enum Credential3rdType {
#[sea_orm(string_value = "mikan")]
Mikan,