katbin/src/core/paste/entity.rs

10 lines
243 B
Rust
Raw Normal View History

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