2020-06-25 10:33:33 +00:00
|
|
|
use crate::schema::pastes;
|
|
|
|
|
|
|
|
#[derive(AsChangeset, Serialize, Deserialize, Queryable, Insertable)]
|
2021-07-29 06:09:42 +00:00
|
|
|
#[table_name = "pastes"]
|
2020-06-25 10:33:33 +00:00
|
|
|
pub struct Paste {
|
2020-06-25 12:42:36 +00:00
|
|
|
pub id: Option<String>,
|
2020-06-25 18:49:20 +00:00
|
|
|
pub belongs_to: Option<String>,
|
2020-07-02 07:07:56 +00:00
|
|
|
pub is_url: Option<bool>,
|
2020-06-25 18:49:20 +00:00
|
|
|
pub content: String,
|
2020-06-26 11:14:07 +00:00
|
|
|
}
|