diff options
-rw-r--r-- | src/schema.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/schema.rs b/src/schema.rs index 236bbc9..3124ea5 100644 --- a/src/schema.rs +++ b/src/schema.rs @@ -1 +1,8 @@ -infer_schema!("dotenv:DATABASE_URL"); +table! { + posts (id) { + id -> Int4, + title -> Varchar, + body -> Text, + published -> Bool, + } +} |