Skip to content

Commit bf76977

Browse files
anna-devKagemaru
authored andcommitted
Fix missing or wrong anontations
1 parent f7b2f24 commit bf76977

26 files changed

+266
-149
lines changed

app/models/absencetime.rb

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# frozen_string_literal: true
22

3-
# Copyright (c) 2006-2017, Puzzle ITC GmbH. This file is part of
3+
# Copyright (c) 2006-2025, Puzzle ITC GmbH. This file is part of
44
# PuzzleTime and licensed under the Affero General Public License version 3
55
# or later. See the COPYING file at the top-level directory or at
66
# https://github.com/puzzle/puzzletime.
@@ -9,20 +9,22 @@
99
#
1010
# Table name: worktimes
1111
#
12-
# id :integer not null, primary key
13-
# absence_id :integer
14-
# employee_id :integer
15-
# report_type :string(255) not null
16-
# work_date :date not null
17-
# hours :float
18-
# from_start_time :time
19-
# to_end_time :time
20-
# description :text
21-
# billable :boolean default(TRUE)
22-
# type :string(255)
23-
# ticket :string(255)
24-
# work_item_id :integer
25-
# invoice_id :integer
12+
# id :integer not null, primary key
13+
# absence_id :integer
14+
# employee_id :integer
15+
# report_type :string(255) not null
16+
# work_date :date not null
17+
# hours :float
18+
# from_start_time :time
19+
# to_end_time :time
20+
# description :text
21+
# billable :boolean default(TRUE)
22+
# type :string(255)
23+
# ticket :string(255)
24+
# work_item_id :integer
25+
# invoice_id :integer
26+
# meal_compensation :boolean default(FALSE), not null
27+
# internal_description :text
2628
#
2729

2830
class Absencetime < Worktime

app/models/accounting_post.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# frozen_string_literal: true
22

3-
# Copyright (c) 2006-2017, Puzzle ITC GmbH. This file is part of
3+
# Copyright (c) 2006-2025, Puzzle ITC GmbH. This file is part of
44
# PuzzleTime and licensed under the Affero General Public License version 3
55
# or later. See the COPYING file at the top-level directory or at
66
# https://github.com/puzzle/puzzletime.
@@ -19,9 +19,10 @@
1919
# billable :boolean default(TRUE), not null
2020
# description_required :boolean default(FALSE), not null
2121
# ticket_required :boolean default(FALSE), not null
22-
# closed :boolean default(FALSE), not null
2322
# from_to_times_required :boolean default(FALSE), not null
23+
# closed :boolean default(FALSE), not null
2424
# service_id :integer
25+
# meal_compensation :boolean default(FALSE), not null
2526
#
2627

2728
class AccountingPost < ApplicationRecord

app/models/additional_crm_order.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# frozen_string_literal: true
22

3-
# Copyright (c) 2006-2017, Puzzle ITC GmbH. This file is part of
3+
# Copyright (c) 2006-2025, Puzzle ITC GmbH. This file is part of
44
# PuzzleTime and licensed under the Affero General Public License version 3
55
# or later. See the COPYING file at the top-level directory or at
66
# https://github.com/puzzle/puzzletime.
@@ -9,8 +9,8 @@
99
#
1010
# Table name: additional_crm_orders
1111
#
12-
# id :bigint(8) not null, primary key
13-
# order_id :bigint(8) not null
12+
# id :bigint not null, primary key
13+
# order_id :bigint not null
1414
# crm_key :string not null
1515
# name :string
1616
#

app/models/authentication.rb

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
# frozen_string_literal: true
22

3+
# Copyright (c) 2006-2025, Puzzle ITC GmbH. This file is part of
4+
# PuzzleTime and licensed under the Affero General Public License version 3
5+
# or later. See the COPYING file at the top-level directory or at
6+
# https://github.com/puzzle/puzzletime.
7+
8+
# == Schema Information
9+
#
10+
# Table name: authentications
11+
#
12+
# id :bigint not null, primary key
13+
# provider :string
14+
# uid :string
15+
# token :string
16+
# token_secret :string
17+
# employee_id :bigint
18+
# created_at :datetime not null
19+
# updated_at :datetime not null
20+
#
321
class Authentication < ApplicationRecord
422
belongs_to :employee
523
end

app/models/expense.rb

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,25 @@
11
# frozen_string_literal: true
22

3+
# Copyright (c) 2006-2025, Puzzle ITC GmbH. This file is part of
4+
# PuzzleTime and licensed under the Affero General Public License version 3
5+
# or later. See the COPYING file at the top-level directory or at
6+
# https://github.com/puzzle/puzzletime.
7+
38
# == Schema Information
49
#
510
# Table name: expenses
611
#
7-
# id :bigint(8) not null, primary key
8-
# employee_id :bigint(8) not null
12+
# id :bigint not null, primary key
13+
# employee_id :bigint not null
914
# kind :integer not null
1015
# status :integer default("pending"), not null
1116
# amount :decimal(12, 2) not null
1217
# payment_date :date not null
1318
# description :text not null
1419
# reason :text
15-
# reviewer_id :bigint(8)
20+
# reviewer_id :bigint
1621
# reviewed_at :datetime
17-
# order_id :bigint(8)
22+
# order_id :bigint
1823
# reimbursement_date :date
1924
# submission_date :date
2025
#

app/models/order_contact.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# frozen_string_literal: true
22

3-
# Copyright (c) 2006-2017, Puzzle ITC GmbH. This file is part of
3+
# Copyright (c) 2006-2025, Puzzle ITC GmbH. This file is part of
44
# PuzzleTime and licensed under the Affero General Public License version 3
55
# or later. See the COPYING file at the top-level directory or at
66
# https://github.com/puzzle/puzzletime.
@@ -9,7 +9,6 @@
99
#
1010
# Table name: order_contacts
1111
#
12-
# false :integer not null, primary key
1312
# contact_id :integer not null
1413
# order_id :integer not null
1514
# comment :string

app/models/order_team_member.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# frozen_string_literal: true
22

3-
# Copyright (c) 2006-2017, Puzzle ITC GmbH. This file is part of
3+
# Copyright (c) 2006-2025, Puzzle ITC GmbH. This file is part of
44
# PuzzleTime and licensed under the Affero General Public License version 3
55
# or later. See the COPYING file at the top-level directory or at
66
# https://github.com/puzzle/puzzletime.
@@ -9,7 +9,7 @@
99
#
1010
# Table name: order_team_members
1111
#
12-
# false :integer not null, primary key
12+
# id :bigint not null, primary key
1313
# employee_id :integer not null
1414
# order_id :integer not null
1515
# comment :string

app/models/ordertime.rb

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# frozen_string_literal: true
22

3-
# Copyright (c) 2006-2017, Puzzle ITC GmbH. This file is part of
3+
# Copyright (c) 2006-2025, Puzzle ITC GmbH. This file is part of
44
# PuzzleTime and licensed under the Affero General Public License version 3
55
# or later. See the COPYING file at the top-level directory or at
66
# https://github.com/puzzle/puzzletime.
@@ -9,20 +9,22 @@
99
#
1010
# Table name: worktimes
1111
#
12-
# id :integer not null, primary key
13-
# absence_id :integer
14-
# employee_id :integer
15-
# report_type :string(255) not null
16-
# work_date :date not null
17-
# hours :float
18-
# from_start_time :time
19-
# to_end_time :time
20-
# description :text
21-
# billable :boolean default(TRUE)
22-
# type :string(255)
23-
# ticket :string(255)
24-
# work_item_id :integer
25-
# invoice_id :integer
12+
# id :integer not null, primary key
13+
# absence_id :integer
14+
# employee_id :integer
15+
# report_type :string(255) not null
16+
# work_date :date not null
17+
# hours :float
18+
# from_start_time :time
19+
# to_end_time :time
20+
# description :text
21+
# billable :boolean default(TRUE)
22+
# type :string(255)
23+
# ticket :string(255)
24+
# work_item_id :integer
25+
# invoice_id :integer
26+
# meal_compensation :boolean default(FALSE), not null
27+
# internal_description :text
2628
#
2729

2830
class Ordertime < Worktime

app/models/workplace.rb

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
# frozen_string_literal: true
22

3-
# Copyright (c) 2006-2022, Puzzle ITC GmbH. This file is part of
3+
# Copyright (c) 2006-2025, Puzzle ITC GmbH. This file is part of
44
# PuzzleTime and licensed under the Affero General Public License version 3
55
# or later. See the COPYING file at the top-level directory or at
66
# https://github.com/puzzle/puzzletime.
77

8+
# == Schema Information
9+
#
10+
# Table name: workplaces
11+
#
12+
# id :bigint not null, primary key
13+
# name :string
14+
#
15+
816
class Workplace < ApplicationRecord
917
validates_by_schema
1018
validates :name, uniqueness: { case_sensitive: false }

app/models/worktime.rb

Lines changed: 17 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# frozen_string_literal: true
22

3-
# Copyright (c) 2006-2017, Puzzle ITC GmbH. This file is part of
3+
# Copyright (c) 2006-2025, Puzzle ITC GmbH. This file is part of
44
# PuzzleTime and licensed under the Affero General Public License version 3
55
# or later. See the COPYING file at the top-level directory or at
66
# https://github.com/puzzle/puzzletime.
@@ -9,20 +9,22 @@
99
#
1010
# Table name: worktimes
1111
#
12-
# id :integer not null, primary key
13-
# absence_id :integer
14-
# employee_id :integer
15-
# report_type :string(255) not null
16-
# work_date :date not null
17-
# hours :float
18-
# from_start_time :time
19-
# to_end_time :time
20-
# description :text
21-
# billable :boolean default(TRUE)
22-
# type :string(255)
23-
# ticket :string(255)
24-
# work_item_id :integer
25-
# invoice_id :integer
12+
# id :integer not null, primary key
13+
# absence_id :integer
14+
# employee_id :integer
15+
# report_type :string(255) not null
16+
# work_date :date not null
17+
# hours :float
18+
# from_start_time :time
19+
# to_end_time :time
20+
# description :text
21+
# billable :boolean default(TRUE)
22+
# type :string(255)
23+
# ticket :string(255)
24+
# work_item_id :integer
25+
# invoice_id :integer
26+
# meal_compensation :boolean default(FALSE), not null
27+
# internal_description :text
2628
#
2729

2830
class Worktime < ApplicationRecord

0 commit comments

Comments
 (0)