Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stephanbuys/fec73ac24fe57ff9bb679318a1d3af15 to your computer and use it in GitHub Desktop.
Save stephanbuys/fec73ac24fe57ff9bb679318a1d3af15 to your computer and use it in GitHub Desktop.
#[derive(Associations)]
#[belongs_to(User, foreign_key="user_lookup_key")]
struct ActiveUsers {
id: i32,
user_lookup_key: i32,
last_active: NaiveDateTime,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment