We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use chrono::NaiveDate; use sea_orm::entity::prelude::*; use sea_orm::DeriveEntityModel;
#[derive(Debug, Clone, PartialEq, DeriveEntityModel)] #[sea_orm(table_name = "currency_exchange_rate")] pub struct Model { #[sea_orm(primary_key)] pub currency_exchange_rate_id: i64, pub from_currency: String, pub to_currency: String, pub rate_date: NaiveDate, pub rate: f64, }
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] pub enum Relation {}
impl ActiveModelBehavior for ActiveModel {}
The text was updated successfully, but these errors were encountered:
Hey @efrain2007, we are working on the support of chrono::Date at #207.
chrono::Date
Duplicate of #206.
Sorry, something went wrong.
chrono::NaiveDate
chrono::NaiveTime
0.2.4
billy1624
Successfully merging a pull request may close this issue.
use chrono::NaiveDate;
use sea_orm::entity::prelude::*;
use sea_orm::DeriveEntityModel;
#[derive(Debug, Clone, PartialEq, DeriveEntityModel)]
#[sea_orm(table_name = "currency_exchange_rate")]
pub struct Model {
#[sea_orm(primary_key)]
pub currency_exchange_rate_id: i64,
pub from_currency: String,
pub to_currency: String,
pub rate_date: NaiveDate,
pub rate: f64,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {}
impl ActiveModelBehavior for ActiveModel {}
The text was updated successfully, but these errors were encountered: