2022-05-03 17:44:13 +00:00
|
|
|
#[cfg(feature = "full")]
|
2021-09-20 15:46:34 +00:00
|
|
|
use crate::schema::secret;
|
2024-05-17 00:41:57 +00:00
|
|
|
use crate::sensitive::SensitiveString;
|
2021-09-20 15:46:34 +00:00
|
|
|
|
2022-05-03 17:44:13 +00:00
|
|
|
#[derive(Clone)]
|
2023-11-21 13:42:28 +00:00
|
|
|
#[cfg_attr(feature = "full", derive(Queryable, Selectable, Identifiable))]
|
2022-09-26 14:09:32 +00:00
|
|
|
#[cfg_attr(feature = "full", diesel(table_name = secret))]
|
2023-11-21 13:42:28 +00:00
|
|
|
#[cfg_attr(feature = "full", diesel(check_for_backend(diesel::pg::Pg)))]
|
2021-09-20 15:46:34 +00:00
|
|
|
pub struct Secret {
|
|
|
|
pub id: i32,
|
2024-05-17 00:41:57 +00:00
|
|
|
pub jwt_secret: SensitiveString,
|
2021-09-20 15:46:34 +00:00
|
|
|
}
|