class AuthUser

Overview

ユーザーモデル Djangoで生成されたユーザーモデルをそのまま利用

Included Modules

Defined in:

models/auth_user.cr

Constant Summary

ASSOCIATIONS = [] of Nil

ユーザーモデル Djangoで生成されたユーザーモデルをそのまま利用

COLUMNS = [{name: id, type: Int32, nilable: false, autogenerated: true, value: nil, serialized: false, allow_blank: false}, {name: password, type: String, nilable: false, autogenerated: false, value: "", serialized: false, allow_blank: true}, {name: last_login, type: Time, nilable: true, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: is_superuser, type: Bool, nilable: false, autogenerated: false, value: false, serialized: false, allow_blank: false}, {name: username, type: String, nilable: false, autogenerated: false, value: nil, serialized: false, allow_blank: false}, {name: first_name, type: String, nilable: false, autogenerated: false, value: "", serialized: false, allow_blank: true}, {name: last_name, type: String, nilable: false, autogenerated: false, value: "", serialized: false, allow_blank: true}, {name: email, type: String, nilable: false, autogenerated: false, value: "", serialized: false, allow_blank: true}, {name: is_staff, type: Bool, nilable: false, autogenerated: false, value: false, serialized: false, allow_blank: false}, {name: is_active, type: Bool, nilable: false, autogenerated: false, value: true, serialized: false, allow_blank: false}, {name: date_joined, type: Time, nilable: false, autogenerated: true, value: nil, serialized: false, allow_blank: false}] of Nil

ユーザーモデル Djangoで生成されたユーザーモデルをそのまま利用

PRIMARY_KEY_NAME = :id
PRIMARY_KEY_TYPE = Int32

Constructors

Class Method Summary

Macro Summary

Instance Method Summary

Constructor methods inherited from class BaseModel

new(rs : DB::ResultSet) new

Class methods inherited from class BaseModel

database : Avram::Database.class database, from_rs(rs : DB::ResultSet) from_rs

Macros inherited from class BaseModel

default_columns default_columns

Constructor Detail

def self.new(id : Int32, password : String, last_login : Time | Nil, is_superuser : Bool, username : String, first_name : String, last_name : String, email : String, is_staff : Bool, is_active : Bool, date_joined : Time) #

def self.new(rs : DB::ResultSet) #

ユーザーモデル Djangoで生成されたユーザーモデルをそのまま利用


Class Method Detail

def self.column_names : Array(Symbol) #

def self.columns : Array(NamedTuple(name: Symbol, nilable: Bool, type: String)) #

def self.ensure_correct_column_mappings! #

def self.from_rs(rs : DB::ResultSet) #

ユーザーモデル Djangoで生成されたユーザーモデルをそのまま利用


def self.primary_key_name : Symbol | Nil #

[View source]
def self.schema_enforcer_validations #

def self.table_name : String #

Macro Detail

macro default_columns #

[View source]

Instance Method Detail

def base_query_class : ::AuthUser::BaseQuery.class #

This makes it easy for plugins and extensions to use the base SaveOperation


def date_joined : Time #

def delete_operation_class : ::AuthUser::DeleteOperation.class #

def email : String #

def first_name : String #

def id : Int32 #

def is_active : Bool #

def is_active? : Bool #

def is_staff : Bool #

def is_staff? : Bool #

def is_superuser : Bool #

def is_superuser? : Bool #

def last_login : Time | Nil #

def last_name : String #

def password : String #

def save_operation_class : ::AuthUser::SaveOperation.class #

def username : String #