def self.primary_key_name : Symbol | Nil
#
class AuthUser
Overview
ユーザーモデル Djangoで生成されたユーザーモデルをそのまま利用
Included Modules
- Avram::PrimaryKeyMethods
- DB::Mappable
- DB::Serializable
- LuckyCache::Cachable
Defined in:
models/auth_user.crConstant 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
- .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)
-
.new(rs : DB::ResultSet)
ユーザーモデル Djangoで生成されたユーザーモデルをそのまま利用
Class Method Summary
- .column_names : Array(Symbol)
- .columns : Array(NamedTuple(name: Symbol, nilable: Bool, type: String))
- .ensure_correct_column_mappings!
-
.from_rs(rs : DB::ResultSet)
ユーザーモデル Djangoで生成されたユーザーモデルをそのまま利用
- .primary_key_name : Symbol | Nil
- .schema_enforcer_validations
- .table_name : String
Macro Summary
Instance Method Summary
-
#base_query_class : ::AuthUser::BaseQuery.class
This makes it easy for plugins and extensions to use the base SaveOperation
- #date_joined : Time
- #delete_operation_class : ::AuthUser::DeleteOperation.class
- #email : String
- #first_name : String
- #id : Int32
- #is_active : Bool
- #is_active? : Bool
- #is_staff : Bool
- #is_staff? : Bool
- #is_superuser : Bool
- #is_superuser? : Bool
- #last_login : Time | Nil
- #last_name : String
- #password : String
- #save_operation_class : ::AuthUser::SaveOperation.class
- #username : String
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)
#
Class Method Detail
Macro Detail
Instance Method Detail
This makes it easy for plugins and extensions to use the base SaveOperation