Class: Ea::Qea::Models::EaAuthor

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/ea/qea/models/ea_author.rb

Overview

Author / contributor from t_authors.

Schema:

(AuthorID INTEGER PRIMARY KEY, Name TEXT, Email TEXT,
Notes TEXT, ...)

Constant Summary collapse

COLUMN_MAP =
{
  "AuthorID" => :author_id
}.freeze

Class Method Summary collapse

Methods inherited from BaseModel

from_db_row, #primary_key, #sort_position

Class Method Details

.column_mapObject



29
30
31
# File 'lib/ea/qea/models/ea_author.rb', line 29

def self.column_map
  COLUMN_MAP
end

.primary_key_columnObject



17
18
19
# File 'lib/ea/qea/models/ea_author.rb', line 17

def self.primary_key_column
  :author_id
end

.table_nameObject



21
22
23
# File 'lib/ea/qea/models/ea_author.rb', line 21

def self.table_name
  "t_authors"
end