why diesel complains that a field with the same name should be a relation to another table?
// sample/schema.rs
diesel::table! {
users (id) {
id -> Int4,
username -> Varchar,
password -> VarChar,
}
}
diesel::table! {
posts (id) {
id -> Int4,
title -> Varchar,
body -> Text,
published -> Bool,
}
}
it shows me a warning on the "id" line for the second table:
E0271: required for posts::columns::id
to implement AppearsOnTable<schema::users::table>
It makes no sense. Or am i missing something?