This commit is contained in:
snow flurry 2024-08-14 23:54:23 -07:00
parent 93655b9c42
commit 60b39a5045

View file

@ -290,6 +290,7 @@ impl Transactable for Instance {
//
#[derive(AsChangeset, Clone, Insertable, Identifiable, Selectable, Queryable, PartialEq, Debug)]
#[diesel(table_name = subnets, treat_none_as_default_value = false)]
pub struct Subnet {
pub id: i32,
pub name: String,
@ -467,7 +468,7 @@ impl Transactable for Subnet {
}
#[derive(Clone, Insertable, Identifiable, Selectable, Queryable)]
#[diesel(table_name = ssh_keys)]
#[diesel(table_name = ssh_keys, treat_none_as_default_value = false)]
pub struct SshPubkey {
pub id: i32,
pub algorithm: String,