aboutsummaryrefslogtreecommitdiffstats
path: root/src/models.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/models.rs')
-rw-r--r--src/models.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/models.rs b/src/models.rs
new file mode 100644
index 0000000..110cabe
--- /dev/null
+++ b/src/models.rs
@@ -0,0 +1,7 @@
+#[derive(Queryable)]
+pub struct Post {
+ pub id: i32,
+ pub title: String,
+ pub body: String,
+ pub published: bool,
+}