class Backend::Api::Schema::Student

Overview

Student model

Included Modules

Defined in:

backend/api/schema/student.cr

Constructors

Instance Method Summary

Constructor Detail

def self.from_id(id : Int32) : self #

def self.new(model : Db::Student) #

Instance Method Detail

def id : Int32 #

Student's ID


def user(context : Context) : User #

Student's user


def vote(context : Context) : Vote | Nil #

Student's vote