katbin/src/core/paste/entity.rs

10 lines
219 B
Rust
Raw Normal View History

use crate::schema::pastes;
#[table_name="pastes"]
#[derive(AsChangeset, Serialize, Deserialize, Queryable, Insertable)]
pub struct Paste {
id: String,
belongs_to: String,
is_url: bool,
content: String
}