stoptime-rs/src/models.rs
Paul van Tilburg 1559936d4b Add new (insertable) models and associations to models
Also make models updateable (by deriving `AsChangeset`), debuggable
(by deriving `Debug`) and identifiable (by deriving `Identifiable`).

Note that the `CompanyInfo` is not updateable as a new revision
should be created.  Leaving this derive out ensure we cannot
accidentally update it.
2019-06-10 10:24:53 +02:00

14 lines
314 B
Rust

//! The application models
mod company_info;
mod customer;
mod invoice;
mod task;
mod time_entry;
pub use company_info::{CompanyInfo, NewCompanyInfo};
pub use customer::{Customer, NewCustomer};
pub use invoice::{Invoice, NewInvoice};
pub use task::{NewTask, Task};
pub use time_entry::{NewTimeEntry, TimeEntry};