-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #279 from GiganticMinecraft/feat/answerTitle
フォームに来た回答に対してタイトルを自動設定する機能を追加
- Loading branch information
Showing
15 changed files
with
283 additions
and
20 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
//! `SeaORM` Entity. Generated by sea-orm-codegen 0.12.1 | ||
use sea_orm::entity::prelude::*; | ||
|
||
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq)] | ||
#[sea_orm(table_name = "default_answer_title")] | ||
pub struct Model { | ||
#[sea_orm(primary_key)] | ||
pub id: i32, | ||
pub form_id: i32, | ||
pub title: Option<String>, | ||
} | ||
|
||
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] | ||
pub enum Relation { | ||
#[sea_orm( | ||
belongs_to = "super::form_meta_data::Entity", | ||
from = "Column::FormId", | ||
to = "super::form_meta_data::Column::Id", | ||
on_update = "NoAction", | ||
on_delete = "NoAction" | ||
)] | ||
FormMetaData, | ||
} | ||
|
||
impl Related<super::form_meta_data::Entity> for Entity { | ||
fn to() -> RelationDef { | ||
Relation::FormMetaData.def() | ||
} | ||
} | ||
|
||
impl ActiveModelBehavior for ActiveModel {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
//! `SeaORM` Entity. Generated by sea-orm-codegen 0.12.1 | ||
use sea_orm::entity::prelude::*; | ||
|
||
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq)] | ||
#[sea_orm(table_name = "default_answer_titles")] | ||
pub struct Model { | ||
#[sea_orm(primary_key)] | ||
pub id: i32, | ||
pub form_id: i32, | ||
pub title: String, | ||
} | ||
|
||
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] | ||
pub enum Relation { | ||
#[sea_orm( | ||
belongs_to = "super::form_meta_data::Entity", | ||
from = "Column::FormId", | ||
to = "super::form_meta_data::Column::Id", | ||
on_update = "NoAction", | ||
on_delete = "NoAction" | ||
)] | ||
FormMetaData, | ||
} | ||
|
||
impl Related<super::form_meta_data::Entity> for Entity { | ||
fn to() -> RelationDef { | ||
Relation::FormMetaData.def() | ||
} | ||
} | ||
|
||
impl ActiveModelBehavior for ActiveModel {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
//! `SeaORM` Entity. Generated by sea-orm-codegen 0.12.1 | ||
pub use super::{ | ||
answers::Entity as Answers, form_choices::Entity as FormChoices, | ||
form_meta_data::Entity as FormMetaData, form_questions::Entity as FormQuestions, | ||
form_webhooks::Entity as FormWebhooks, real_answers::Entity as RealAnswers, | ||
response_period::Entity as ResponsePeriod, | ||
answers::Entity as Answers, default_answer_titles::Entity as DefaultAnswerTitles, | ||
form_choices::Entity as FormChoices, form_meta_data::Entity as FormMetaData, | ||
form_questions::Entity as FormQuestions, form_webhooks::Entity as FormWebhooks, | ||
real_answers::Entity as RealAnswers, response_period::Entity as ResponsePeriod, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.