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)
Values
pub fn follows() -> schema.Table(Follow)
pub fn posts() -> schema.Table(Post)
pub fn users() -> schema.Table(User)