fiscal_years
In short
Fiscal years of companies managed on Pennylane.
This table is suited for incremental ingestion with an ETL tool. For standard data analysis, use schema
pennylane.
A fiscal year is a 12-month period used for calculating a company’s income taxes. The first year, it can exceptionally be shorter or longer than 12 months, up to 24 months.
Companies can choose to match their fiscal year to the calendar year (from January 1 to December 31), or to match it to another 12-month period (for example, from April 1 to March 31).
The choice of the fiscal year end date is free. A date closing a calendar quarter (March 31, June 30, September 30) is often chosen for simplicity.
Filter key(s)
company_id
start
Sorting key
ClickHouse skips blocks only when the filter starts with this key, in this order. When the first column is `company_id`, put `company_id` in every query. Read a fleet one company at a time, or in batches of `company_id`. Do not run one query with no company filter. List only the columns you need. `SELECT *` reads columns you will not use.
company_id, id
Available columns
id
Int64
Unique ID of the fiscal year on Pennylane.
company_id
Int64
Unique ID of the company on Pennylane, referring to companies.id.
company_name
String
Name of the company, referring to companies.name.
company_external_id
Nullable(String)
External ID of the company, referring to companies.external_id.
start_year
UInt16
Calendar year in which the fiscal year starts.
start_date
Date32
First day of the fiscal year.
end_date
Date32
Last day of the fiscal year.
descriptor
Nullable(String)
Fiscal year descriptor. When the fiscal year starts and ends on the same year (e.g. Jan 2022 to Dec 2022), then this value will be '2022'. When the fiscal year ends in a different year (e.g. April 2022 to Dec 2023), then this value will be '2022-2023'.
Examples: "2021-2022", "2022", "2023"
closed_at
Nullable(DateTime64(6, 'UTC'))
Timestamp of the closing of this fiscal year.
closed_by
Nullable(Int64)
User who closed this fiscal year.
carryover_id
Nullable(Int64)
Identifier of the carryover document for this fiscal year.
carryover_generation_status
String
Status of carryover-entry generation for this fiscal year.
validation_status
String
Validation status of the fiscal year.
created_at
DateTime64(6, 'UTC')
Creation time of this record in Pennylane.
updated_at
DateTime64(6, 'UTC')
Timestamp of the last update of this fiscal year on Pennylane.
synchronized_at
DateTime64(6, 'UTC')
Timestamp of the last time this row version was written in ClickHouse.
deleted_at
Nullable(DateTime64(6, 'UTC'))
When the record was deleted. Empty when the record is still live. A row dropped by a company-level filter (draft, archived, unknown or deleted company) disappears with no deleted_at. Cascade those from etl.companies.