kevinmtrowbridge/rails-user-interactions-example
Rails ActiveRecord configured with a User model, and an Interaction model ... interactions between users ... to show how SQL can model this and an ORM can load these states into a high level programming language.