class Profiles::Profile

Defined in:

apps/profiles/models/profile.cr

Constant Summary

FIELDS_ = {"id" => {type: "big_int", kwargs: {primary_key: true, auto: true}}, "user" => {type: "one_to_one", kwargs: {to: Auth::User, related: :profile}}, "username" => {type: "string", kwargs: {max_size: 128, unique: true}}, "bio" => {type: "text", kwargs: {blank: true, null: true}}, "image_url" => {type: "url", kwargs: {blank: true, null: true}}, "followed_users" => {type: "many_to_many", kwargs: {to: self}}, "favorite_articles" => {type: "many_to_many", kwargs: {to: Blogging::Article, related: :favorited_by}}} of Nil => Nil

Instance Method Summary

Instance Method Detail

def articles #

def bio : String | Nil | Nil #

def bio! #

def bio=(bio : String | Nil | Nil) #

def bio? #

def favorite_articles #

def followed_users #

def from_profile_followed_users #

def id : Int32 | Int64 | Nil | Nil #

def id! #

def id=(id : Int32 | Int64 | Nil | Nil) #

def id? #

def image_url : String | Nil | Nil #

def image_url! #

def image_url=(image_url : String | Nil | Nil) #

def image_url? #

def profile_favorite_articles #

def to_profile_followed_users #

def user : Auth::User | Nil #

def user! : Auth::User #

def user=(related_object : Auth::User | Nil) #

def user? #

def user_id : Marten::DB::Field::ReferenceDBTypes | Nil #

def user_id! #

def user_id=(related_id : Marten::DB::Field::ReferenceDBTypes | Nil) #

def user_id? #

def username : String | Nil | Nil #

def username! #

def username=(username : String | Nil | Nil) #

def username? #