Update table feed items

This commit is contained in:
2023-10-08 18:13:58 +02:00
parent ec35f66a88
commit e56ba37e7e
12 changed files with 136 additions and 14 deletions
+14
View File
@@ -1 +1,15 @@
use diesel::{Associations, Identifiable, Queryable};
use crate::schema::feed_item;
#[derive(Clone, Queryable, Identifiable, Associations)]
#[diesel(belongs_to(Feed))]
#[diesel(table_name=feed_item)]
pub struct Feed {
pub id: i32,
pub feed_id: i32,
pub title: String,
pub url: String,
pub content: String,
pub read: bool,
}