example/schema

Types

pub type Follow {
  Follow(follower_id: Int, followee_id: Int)
}

Constructors

  • Follow(follower_id: Int, followee_id: Int)
pub type Post {
  Post(id: Int, user_id: Int, body: String)
}

Constructors

  • Post(id: Int, user_id: Int, body: String)
pub type User {
  User(id: Int, email: String, name: String)
}

Constructors

  • User(id: Int, email: String, name: String)

Values

pub fn follows() -> schema.Table(Follow)
pub fn posts() -> schema.Table(Post)
pub fn users() -> schema.Table(User)
Search Document