mirror of
https://github.com/lldap/lldap.git
synced 2026-03-31 15:07:48 +01:00
dependencies: Upgrade sea-orm to 1.1.8
This commit is contained in:
committed by
nitnelave
parent
26b25e7776
commit
e4044b7415
@@ -35,8 +35,7 @@ features = ["opaque_server", "opaque_client", "sea_orm"]
|
||||
path = "../domain"
|
||||
|
||||
[dependencies.sea-orm]
|
||||
version = "0.12"
|
||||
default-features = false
|
||||
workspace = true
|
||||
features = [
|
||||
"macros",
|
||||
"with-chrono",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
//! `SeaORM` Entity. Generated by sea-orm-codegen 0.10.3
|
||||
|
||||
use sea_orm::{entity::prelude::*, sea_query::BlobSize};
|
||||
use sea_orm::entity::prelude::*;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
use lldap_domain::types::{Email, UserId, Uuid};
|
||||
@@ -47,15 +47,15 @@ impl ColumnTrait for Column {
|
||||
|
||||
fn def(&self) -> ColumnDef {
|
||||
match self {
|
||||
Column::UserId => ColumnType::String(Some(255)),
|
||||
Column::Email => ColumnType::String(Some(255)),
|
||||
Column::LowercaseEmail => ColumnType::String(Some(255)),
|
||||
Column::DisplayName => ColumnType::String(Some(255)),
|
||||
Column::UserId => ColumnType::String(StringLen::N(255)),
|
||||
Column::Email => ColumnType::String(StringLen::N(255)),
|
||||
Column::LowercaseEmail => ColumnType::String(StringLen::N(255)),
|
||||
Column::DisplayName => ColumnType::String(StringLen::N(255)),
|
||||
Column::CreationDate => ColumnType::DateTime,
|
||||
Column::PasswordHash => ColumnType::Binary(BlobSize::Medium),
|
||||
Column::TotpSecret => ColumnType::String(Some(64)),
|
||||
Column::MfaType => ColumnType::String(Some(64)),
|
||||
Column::Uuid => ColumnType::String(Some(36)),
|
||||
Column::PasswordHash => ColumnType::Blob,
|
||||
Column::TotpSecret => ColumnType::String(StringLen::N(64)),
|
||||
Column::MfaType => ColumnType::String(StringLen::N(64)),
|
||||
Column::Uuid => ColumnType::String(StringLen::N(36)),
|
||||
}
|
||||
.def()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user