Skip to content

Commit

Permalink
fixed stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelCoding committed Mar 24, 2024
1 parent fa44da7 commit e3bb6a1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions bin/chef/src/service/record/model.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ impl RecordRequestTrait<record_a::ActiveModel> for RecordARequest {
fn into_active_model(self, id: ActiveValue<Uuid>) -> record_a::ActiveModel {
record_a::ActiveModel {
id,
address: ActiveValue::Set(self.addr.to_string()),
addr: ActiveValue::Set(self.addr.to_string()),
}
}
}
Expand All @@ -54,7 +54,7 @@ impl RecordRequestTrait<record_aaaa::ActiveModel> for RecordAaaaRequest {
fn into_active_model(self, id: ActiveValue<Uuid>) -> record_aaaa::ActiveModel {
record_aaaa::ActiveModel {
id,
address: ActiveValue::Set(self.addr.to_string()),
addr: ActiveValue::Set(self.addr.to_string()),
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion lib/entity/src/models/record_a.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use serde::{Deserialize, Serialize};
pub struct Model {
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
pub address: String,
pub addr: String,
}

#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
Expand Down
2 changes: 1 addition & 1 deletion lib/entity/src/models/record_aaaa.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use serde::{Deserialize, Serialize};
pub struct Model {
#[sea_orm(primary_key, auto_increment = false)]
pub id: Uuid,
pub address: String,
pub addr: String,
}

#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
Expand Down
8 changes: 4 additions & 4 deletions lib/migration/src/m20231010_000001_create_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ impl MigrationTrait for Migration {
);
create table record_a(
id uuid not null primary key references record(id),
address varchar(15) not null
id uuid not null primary key references record(id),
addr varchar(15) not null
);
create table record_aaaa(
id uuid not null primary key references record(id),
address varchar(41) not null
id uuid not null primary key references record(id),
addr varchar(41) not null
);
create table record_cname(
Expand Down

0 comments on commit e3bb6a1

Please sign in to comment.