<<

NAME

Koha::Schema::Result::Checkin

TABLE: checkins

ACCESSORS

checkin_id

  data_type: 'integer'
  is_auto_increment: 1
  is_nullable: 0

primary key

item_id

  data_type: 'integer'
  is_foreign_key: 1
  is_nullable: 0

foreign key from the items table defining which item was checked in

user_id

  data_type: 'integer'
  is_foreign_key: 1
  is_nullable: 1

foreign key from the borrowers table defining which staff member processed the checkin

library_id

  data_type: 'varchar'
  is_foreign_key: 1
  is_nullable: 0
  size: 10

foreign key from the branches table defining where the checkin took place

desk_id

  data_type: 'integer'
  is_foreign_key: 1
  is_nullable: 1

foreign key from the desks table defining which desk the checkin took place at

timestamp

  data_type: 'timestamp'
  datetime_undef_if_invalid: 1
  default_value: current_timestamp
  is_nullable: 0

date and time the checkin was processed

exempt_fine

  data_type: 'tinyint'
  default_value: 0
  is_nullable: 0

whether fines were exempted on this checkin

local_use

  data_type: 'tinyint'
  default_value: 0
  is_nullable: 0

whether this checkin was recorded as a local use

checkout_id

  data_type: 'integer'
  is_foreign_key: 1
  is_nullable: 1

foreign key from the old_issues table if this checkin returned a checkout

transfer_id

  data_type: 'integer'
  is_foreign_key: 1
  is_nullable: 1

foreign key from the branchtransfers table if this checkin triggered a transfer

hold_id

  data_type: 'integer'
  is_foreign_key: 1
  is_nullable: 1

foreign key from the reserves table if this checkin filled a hold

recall_id

  data_type: 'integer'
  is_foreign_key: 1
  is_nullable: 1

foreign key from the recalls table if this checkin filled a recall

restriction_id

  data_type: 'integer'
  is_foreign_key: 1
  is_nullable: 1

foreign key from the borrower_debarments table if this checkin triggered a restriction

claim_id

  data_type: 'integer'
  is_foreign_key: 1
  is_nullable: 1

foreign key from the return_claims table if this checkin resolved a claim

interface

  data_type: 'varchar'
  is_nullable: 1
  size: 16

the interface this checkin was processed from (intranet, api, sip, cron, commandline)

PRIMARY KEY

RELATIONS

accountlines

Type: has_many

Related object: Koha::Schema::Result::Accountline

checkout

Type: belongs_to

Related object: Koha::Schema::Result::OldIssue

claim

Type: belongs_to

Related object: Koha::Schema::Result::ReturnClaim

desk

Type: belongs_to

Related object: Koha::Schema::Result::Desk

hold

Type: belongs_to

Related object: Koha::Schema::Result::Reserve

item

Type: belongs_to

Related object: Koha::Schema::Result::Item

library

Type: belongs_to

Related object: Koha::Schema::Result::Branch

recall

Type: belongs_to

Related object: Koha::Schema::Result::Recall

restriction

Type: belongs_to

Related object: Koha::Schema::Result::BorrowerDebarment

transfer

Type: belongs_to

Related object: Koha::Schema::Result::Branchtransfer

user

Type: belongs_to

Related object: Koha::Schema::Result::Borrower

debits

Type: has_many

Filtered relationship returning only debit accountlines linked to this checkin.

credits

Type: has_many

Filtered relationship returning only credit accountlines linked to this checkin.

<<