class SaveAuthUser

Overview

ユーザーの保存オペレーション

Defined in:

operations/save_auth_user.cr

Constant Summary

ATTRIBUTES = [] of Nil
COLUMN_ATTRIBUTES = [{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}, {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
FOREIGN_KEY = "auth_user_id"

ユーザーの保存オペレーション

OPERATION_NEEDS = [] of Nil

Constructors

Class Method Summary

Macro Summary

Instance Method Summary

Instance methods inherited from class AuthUser::SaveOperation

attributes attributes, date_joined date_joined, date_joined=(_value) date_joined=, email email, email=(_value) email=, first_name first_name, first_name=(_value) first_name=, id id, id=(_value) id=, is_active is_active, is_active=(_value) is_active=, is_staff is_staff, is_staff=(_value) is_staff=, is_superuser is_superuser, is_superuser=(_value) is_superuser=, last_login last_login, last_login=(_value) last_login=, last_name last_name, last_name=(_value) last_name=, password password, password=(_value) password=, permitted_params : Hash(String, Array(String) | String) permitted_params, required_attributes required_attributes, set_attributes(id : Int32 | Avram::Nothing = IGNORE, password : String | Avram::Nothing = IGNORE, last_login : Time | Avram::Nothing | Nil = IGNORE, is_superuser : Bool | Avram::Nothing = IGNORE, username : String | Avram::Nothing = IGNORE, first_name : String | Avram::Nothing = IGNORE, last_name : String | Avram::Nothing = IGNORE, email : String | Avram::Nothing = IGNORE, is_staff : Bool | Avram::Nothing = IGNORE, is_active : Bool | Avram::Nothing = IGNORE, date_joined : Time | Avram::Nothing = IGNORE) set_attributes, set_date_joined_from_param(_value) set_date_joined_from_param, set_email_from_param(_value) set_email_from_param, set_first_name_from_param(_value) set_first_name_from_param, set_id_from_param(_value) set_id_from_param, set_is_active_from_param(_value) set_is_active_from_param, set_is_staff_from_param(_value) set_is_staff_from_param, set_is_superuser_from_param(_value) set_is_superuser_from_param, set_last_login_from_param(_value) set_last_login_from_param, set_last_name_from_param(_value) set_last_name_from_param, set_password_from_param(_value) set_password_from_param, set_username_from_param(_value) set_username_from_param, username username, username=(_value) username=

Constructor methods inherited from class AuthUser::SaveOperation

new(record : T, params : Avram::Paramable, id : Int32 | Avram::Nothing = IGNORE, password : String | Avram::Nothing = IGNORE, last_login : Time | Avram::Nothing | Nil = IGNORE, is_superuser : Bool | Avram::Nothing = IGNORE, username : String | Avram::Nothing = IGNORE, first_name : String | Avram::Nothing = IGNORE, last_name : String | Avram::Nothing = IGNORE, email : String | Avram::Nothing = IGNORE, is_staff : Bool | Avram::Nothing = IGNORE, is_active : Bool | Avram::Nothing = IGNORE, date_joined : Time | Avram::Nothing = IGNORE)
new(params : Avram::Paramable, id : Int32 | Avram::Nothing = IGNORE, password : String | Avram::Nothing = IGNORE, last_login : Time | Avram::Nothing | Nil = IGNORE, is_superuser : Bool | Avram::Nothing = IGNORE, username : String | Avram::Nothing = IGNORE, first_name : String | Avram::Nothing = IGNORE, last_name : String | Avram::Nothing = IGNORE, email : String | Avram::Nothing = IGNORE, is_staff : Bool | Avram::Nothing = IGNORE, is_active : Bool | Avram::Nothing = IGNORE, date_joined : Time | Avram::Nothing = IGNORE)
new(record : T, id : Int32 | Avram::Nothing = IGNORE, password : String | Avram::Nothing = IGNORE, last_login : Time | Avram::Nothing | Nil = IGNORE, is_superuser : Bool | Avram::Nothing = IGNORE, username : String | Avram::Nothing = IGNORE, first_name : String | Avram::Nothing = IGNORE, last_name : String | Avram::Nothing = IGNORE, email : String | Avram::Nothing = IGNORE, is_staff : Bool | Avram::Nothing = IGNORE, is_active : Bool | Avram::Nothing = IGNORE, date_joined : Time | Avram::Nothing = IGNORE)
new(id : Int32 | Avram::Nothing = IGNORE, password : String | Avram::Nothing = IGNORE, last_login : Time | Avram::Nothing | Nil = IGNORE, is_superuser : Bool | Avram::Nothing = IGNORE, username : String | Avram::Nothing = IGNORE, first_name : String | Avram::Nothing = IGNORE, last_name : String | Avram::Nothing = IGNORE, email : String | Avram::Nothing = IGNORE, is_staff : Bool | Avram::Nothing = IGNORE, is_active : Bool | Avram::Nothing = IGNORE, date_joined : Time | Avram::Nothing = IGNORE)
new

Class methods inherited from class AuthUser::SaveOperation

create(params, id : Int32 | Avram::Nothing = IGNORE, password : String | Avram::Nothing = IGNORE, last_login : Time | Avram::Nothing | Nil = IGNORE, is_superuser : Bool | Avram::Nothing = IGNORE, username : String | Avram::Nothing = IGNORE, first_name : String | Avram::Nothing = IGNORE, last_name : String | Avram::Nothing = IGNORE, email : String | Avram::Nothing = IGNORE, is_staff : Bool | Avram::Nothing = IGNORE, is_active : Bool | Avram::Nothing = IGNORE, date_joined : Time | Avram::Nothing = IGNORE, &)
create(id : Int32 | Avram::Nothing = IGNORE, password : String | Avram::Nothing = IGNORE, last_login : Time | Avram::Nothing | Nil = IGNORE, is_superuser : Bool | Avram::Nothing = IGNORE, username : String | Avram::Nothing = IGNORE, first_name : String | Avram::Nothing = IGNORE, last_name : String | Avram::Nothing = IGNORE, email : String | Avram::Nothing = IGNORE, is_staff : Bool | Avram::Nothing = IGNORE, is_active : Bool | Avram::Nothing = IGNORE, date_joined : Time | Avram::Nothing = IGNORE, &)
create(params : Hash, **named_args, &)
create
, create!(params, id : Int32 | Avram::Nothing = IGNORE, password : String | Avram::Nothing = IGNORE, last_login : Time | Avram::Nothing | Nil = IGNORE, is_superuser : Bool | Avram::Nothing = IGNORE, username : String | Avram::Nothing = IGNORE, first_name : String | Avram::Nothing = IGNORE, last_name : String | Avram::Nothing = IGNORE, email : String | Avram::Nothing = IGNORE, is_staff : Bool | Avram::Nothing = IGNORE, is_active : Bool | Avram::Nothing = IGNORE, date_joined : Time | Avram::Nothing = IGNORE)
create!(id : Int32 | Avram::Nothing = IGNORE, password : String | Avram::Nothing = IGNORE, last_login : Time | Avram::Nothing | Nil = IGNORE, is_superuser : Bool | Avram::Nothing = IGNORE, username : String | Avram::Nothing = IGNORE, first_name : String | Avram::Nothing = IGNORE, last_name : String | Avram::Nothing = IGNORE, email : String | Avram::Nothing = IGNORE, is_staff : Bool | Avram::Nothing = IGNORE, is_active : Bool | Avram::Nothing = IGNORE, date_joined : Time | Avram::Nothing = IGNORE)
create!(params : Hash, **named_args)
create!
, update(record : T, with params, id : Int32 | Avram::Nothing = IGNORE, password : String | Avram::Nothing = IGNORE, last_login : Time | Avram::Nothing | Nil = IGNORE, is_superuser : Bool | Avram::Nothing = IGNORE, username : String | Avram::Nothing = IGNORE, first_name : String | Avram::Nothing = IGNORE, last_name : String | Avram::Nothing = IGNORE, email : String | Avram::Nothing = IGNORE, is_staff : Bool | Avram::Nothing = IGNORE, is_active : Bool | Avram::Nothing = IGNORE, date_joined : Time | Avram::Nothing = IGNORE, &)
update(record : T, id : Int32 | Avram::Nothing = IGNORE, password : String | Avram::Nothing = IGNORE, last_login : Time | Avram::Nothing | Nil = IGNORE, is_superuser : Bool | Avram::Nothing = IGNORE, username : String | Avram::Nothing = IGNORE, first_name : String | Avram::Nothing = IGNORE, last_name : String | Avram::Nothing = IGNORE, email : String | Avram::Nothing = IGNORE, is_staff : Bool | Avram::Nothing = IGNORE, is_active : Bool | Avram::Nothing = IGNORE, date_joined : Time | Avram::Nothing = IGNORE, &)
update(record : T, params : Hash, **named_args, &)
update
, update!(record : T, with params, id : Int32 | Avram::Nothing = IGNORE, password : String | Avram::Nothing = IGNORE, last_login : Time | Avram::Nothing | Nil = IGNORE, is_superuser : Bool | Avram::Nothing = IGNORE, username : String | Avram::Nothing = IGNORE, first_name : String | Avram::Nothing = IGNORE, last_name : String | Avram::Nothing = IGNORE, email : String | Avram::Nothing = IGNORE, is_staff : Bool | Avram::Nothing = IGNORE, is_active : Bool | Avram::Nothing = IGNORE, date_joined : Time | Avram::Nothing = IGNORE)
update!(record : T, id : Int32 | Avram::Nothing = IGNORE, password : String | Avram::Nothing = IGNORE, last_login : Time | Avram::Nothing | Nil = IGNORE, is_superuser : Bool | Avram::Nothing = IGNORE, username : String | Avram::Nothing = IGNORE, first_name : String | Avram::Nothing = IGNORE, last_name : String | Avram::Nothing = IGNORE, email : String | Avram::Nothing = IGNORE, is_staff : Bool | Avram::Nothing = IGNORE, is_active : Bool | Avram::Nothing = IGNORE, date_joined : Time | Avram::Nothing = IGNORE)
update!(record : T, params : Hash, **named_args)
update!

Macros inherited from class AuthUser::SaveOperation

param_key(key) param_key

Constructor Detail

def self.new(record : T, params : Avram::Paramable, id : Int32 | Avram::Nothing = IGNORE, password : String | Avram::Nothing = IGNORE, last_login : Time | Avram::Nothing | Nil = IGNORE, is_superuser : Bool | Avram::Nothing = IGNORE, username : String | Avram::Nothing = IGNORE, first_name : String | Avram::Nothing = IGNORE, last_name : String | Avram::Nothing = IGNORE, email : String | Avram::Nothing = IGNORE, is_staff : Bool | Avram::Nothing = IGNORE, is_active : Bool | Avram::Nothing = IGNORE, date_joined : Time | Avram::Nothing = IGNORE) #

@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted. We need @type to get the attributes for this SaveOperation


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

@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted. We need @type to get the attributes for this SaveOperation


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

@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted. We need @type to get the attributes for this SaveOperation


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

@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted. We need @type to get the attributes for this SaveOperation


Class Method Detail

def self.create(params, id : Int32 | Avram::Nothing = IGNORE, password : String | Avram::Nothing = IGNORE, last_login : Time | Avram::Nothing | Nil = IGNORE, is_superuser : Bool | Avram::Nothing = IGNORE, username : String | Avram::Nothing = IGNORE, first_name : String | Avram::Nothing = IGNORE, last_name : String | Avram::Nothing = IGNORE, email : String | Avram::Nothing = IGNORE, is_staff : Bool | Avram::Nothing = IGNORE, is_active : Bool | Avram::Nothing = IGNORE, date_joined : Time | Avram::Nothing = IGNORE, &) #

@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted. We need @type to get the attributes for this SaveOperation


def self.create(id : Int32 | Avram::Nothing = IGNORE, password : String | Avram::Nothing = IGNORE, last_login : Time | Avram::Nothing | Nil = IGNORE, is_superuser : Bool | Avram::Nothing = IGNORE, username : String | Avram::Nothing = IGNORE, first_name : String | Avram::Nothing = IGNORE, last_name : String | Avram::Nothing = IGNORE, email : String | Avram::Nothing = IGNORE, is_staff : Bool | Avram::Nothing = IGNORE, is_active : Bool | Avram::Nothing = IGNORE, date_joined : Time | Avram::Nothing = IGNORE, &) #

@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted. We need @type to get the attributes for this SaveOperation


def self.create(params : Hash, **named_args, &) #

@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted. We need @type to get the attributes for this SaveOperation


def self.create!(params, id : Int32 | Avram::Nothing = IGNORE, password : String | Avram::Nothing = IGNORE, last_login : Time | Avram::Nothing | Nil = IGNORE, is_superuser : Bool | Avram::Nothing = IGNORE, username : String | Avram::Nothing = IGNORE, first_name : String | Avram::Nothing = IGNORE, last_name : String | Avram::Nothing = IGNORE, email : String | Avram::Nothing = IGNORE, is_staff : Bool | Avram::Nothing = IGNORE, is_active : Bool | Avram::Nothing = IGNORE, date_joined : Time | Avram::Nothing = IGNORE) #

@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted. We need @type to get the attributes for this SaveOperation


def self.create!(id : Int32 | Avram::Nothing = IGNORE, password : String | Avram::Nothing = IGNORE, last_login : Time | Avram::Nothing | Nil = IGNORE, is_superuser : Bool | Avram::Nothing = IGNORE, username : String | Avram::Nothing = IGNORE, first_name : String | Avram::Nothing = IGNORE, last_name : String | Avram::Nothing = IGNORE, email : String | Avram::Nothing = IGNORE, is_staff : Bool | Avram::Nothing = IGNORE, is_active : Bool | Avram::Nothing = IGNORE, date_joined : Time | Avram::Nothing = IGNORE) #

@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted. We need @type to get the attributes for this SaveOperation


def self.create!(params : Hash, **named_args) #

@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted. We need @type to get the attributes for this SaveOperation


def self.update(record : T, with params, id : Int32 | Avram::Nothing = IGNORE, password : String | Avram::Nothing = IGNORE, last_login : Time | Avram::Nothing | Nil = IGNORE, is_superuser : Bool | Avram::Nothing = IGNORE, username : String | Avram::Nothing = IGNORE, first_name : String | Avram::Nothing = IGNORE, last_name : String | Avram::Nothing = IGNORE, email : String | Avram::Nothing = IGNORE, is_staff : Bool | Avram::Nothing = IGNORE, is_active : Bool | Avram::Nothing = IGNORE, date_joined : Time | Avram::Nothing = IGNORE, &) #

@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted. We need @type to get the attributes for this SaveOperation


def self.update(record : T, id : Int32 | Avram::Nothing = IGNORE, password : String | Avram::Nothing = IGNORE, last_login : Time | Avram::Nothing | Nil = IGNORE, is_superuser : Bool | Avram::Nothing = IGNORE, username : String | Avram::Nothing = IGNORE, first_name : String | Avram::Nothing = IGNORE, last_name : String | Avram::Nothing = IGNORE, email : String | Avram::Nothing = IGNORE, is_staff : Bool | Avram::Nothing = IGNORE, is_active : Bool | Avram::Nothing = IGNORE, date_joined : Time | Avram::Nothing = IGNORE, &) #

@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted. We need @type to get the attributes for this SaveOperation


def self.update(record : T, params : Hash, **named_args, &) #

@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted. We need @type to get the attributes for this SaveOperation


def self.update!(record : T, with params, id : Int32 | Avram::Nothing = IGNORE, password : String | Avram::Nothing = IGNORE, last_login : Time | Avram::Nothing | Nil = IGNORE, is_superuser : Bool | Avram::Nothing = IGNORE, username : String | Avram::Nothing = IGNORE, first_name : String | Avram::Nothing = IGNORE, last_name : String | Avram::Nothing = IGNORE, email : String | Avram::Nothing = IGNORE, is_staff : Bool | Avram::Nothing = IGNORE, is_active : Bool | Avram::Nothing = IGNORE, date_joined : Time | Avram::Nothing = IGNORE) #

@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted. We need @type to get the attributes for this SaveOperation


def self.update!(record : T, id : Int32 | Avram::Nothing = IGNORE, password : String | Avram::Nothing = IGNORE, last_login : Time | Avram::Nothing | Nil = IGNORE, is_superuser : Bool | Avram::Nothing = IGNORE, username : String | Avram::Nothing = IGNORE, first_name : String | Avram::Nothing = IGNORE, last_name : String | Avram::Nothing = IGNORE, email : String | Avram::Nothing = IGNORE, is_staff : Bool | Avram::Nothing = IGNORE, is_active : Bool | Avram::Nothing = IGNORE, date_joined : Time | Avram::Nothing = IGNORE) #

@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted. We need @type to get the attributes for this SaveOperation


def self.update!(record : T, params : Hash, **named_args) #

@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted. We need @type to get the attributes for this SaveOperation


Macro Detail

macro param_key(key) #

ユーザーの保存オペレーション


Instance Method Detail

def date_joined #

[View source]
def set_attributes(id : Int32 | Avram::Nothing = IGNORE, password : String | Avram::Nothing = IGNORE, last_login : Time | Avram::Nothing | Nil = IGNORE, is_superuser : Bool | Avram::Nothing = IGNORE, username : String | Avram::Nothing = IGNORE, first_name : String | Avram::Nothing = IGNORE, last_name : String | Avram::Nothing = IGNORE, email : String | Avram::Nothing = IGNORE, is_staff : Bool | Avram::Nothing = IGNORE, is_active : Bool | Avram::Nothing = IGNORE, date_joined : Time | Avram::Nothing = IGNORE) #

@type is not correct in this method, but is in the macro we call below That is why this extrac macro was extracted. We need @type to get the attributes for this SaveOperation


def username #

[View source]