Adds the company tables of SPEC 11.1 behind one generic service so that every table gets the same rules, history, cache and CSV import/export, plus the company profile, fiscal years with monthly lock and the base-data seeder. - 26 coded tables, exchange rates, company profile, fiscal years and periods: entities, maps and migrations 010-014 - TableService + TableCatalog: unique codes, per-table rules (VAT codes are checked by the fiscal pack), delete or disable when in use, single default, CSV export/import all-or-nothing, cache with cross-instance invalidation - CompanyProfileService (Italian identifiers through the pack), FiscalYearService with the date check used by every dated record - EcbRatesClient and the ECB rates system task; CsvReader - ISeeder/SeedRunner with the data version in company settings; base tables from the pack (IBaseTablesTemplate) and an embedded ISO country list Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
25f8a7ad30
commit
34e196424f
33 files changed
+6049
-3
No files matched your search
@@ -721,6 +721,11 @@ Migrazioni applicate in ordine:
|
||||
- `core` 20261111007 `create_attachments` (M20261111_007_CreateAttachments)
|
||||
- `core` 20261111008 `create_company_settings` (M20261111_008_CreateCompanySettings)
|
||||
- `core` 20261111009 `create_notification_reads` (M20261111_009_CreateNotificationReads)
|
||||
- `core` 20261111010 `create_company_profile` (M20261111_010_CreateCompanyProfile)
|
||||
- `core` 20261111011 `create_geography_and_currencies` (M20261111_011_CreateGeographyAndCurrencies)
|
||||
- `core` 20261111012 `create_tax_and_payment_tables` (M20261111_012_CreateTaxAndPaymentTables)
|
||||
- `core` 20261111013 `create_logistics_tables` (M20261111_013_CreateLogisticsTables)
|
||||
- `core` 20261111014 `create_catalog_tables` (M20261111_014_CreateCatalogTables)
|
||||
|
||||
#### `attachments`
|
||||
|
||||
@@ -767,6 +772,98 @@ Migrazioni applicate in ordine:
|
||||
- indice `ix_audit_log_at` su `at`
|
||||
- indice `ix_audit_log_entity_entity_id` su `entity`, `entity_id`
|
||||
|
||||
#### `bank_accounts`
|
||||
|
||||
| Colonna | Tipo | Null | Default | Note |
|
||||
|---|---|---|---|---|
|
||||
| `id` | Int64 | no | | chiave primaria, identity |
|
||||
| `code` | String(10) | no | | |
|
||||
| `description` | String(100) | no | | |
|
||||
| `disabled` | Bool | no | `false` | |
|
||||
| `bank_name` | String(100) | sì | | |
|
||||
| `iban` | String(34) | sì | | |
|
||||
| `bic` | String(11) | sì | | |
|
||||
| `sia_code` | String(5) | sì | | |
|
||||
| `cuc_code` | String(8) | sì | | |
|
||||
| `account_code` | String(20) | sì | | |
|
||||
| `is_default` | Bool | no | `false` | |
|
||||
| `is_demo` | Bool | no | `false` | |
|
||||
| `created_at` | DateTimeUtc | no | | |
|
||||
| `created_by` | String(100) | sì | | |
|
||||
| `updated_at` | DateTimeUtc | sì | | |
|
||||
| `updated_by` | String(100) | sì | | |
|
||||
| `row_version` | Int64 | no | `1` | |
|
||||
|
||||
- indice unico `ux_bank_accounts_code` su `code`
|
||||
|
||||
#### `carriers`
|
||||
|
||||
| Colonna | Tipo | Null | Default | Note |
|
||||
|---|---|---|---|---|
|
||||
| `id` | Int64 | no | | chiave primaria, identity |
|
||||
| `code` | String(10) | no | | |
|
||||
| `description` | String(100) | no | | |
|
||||
| `disabled` | Bool | no | `false` | |
|
||||
| `vat_number` | String(28) | sì | | |
|
||||
| `address` | String(200) | sì | | |
|
||||
| `city` | String(100) | sì | | |
|
||||
| `phone` | String(30) | sì | | |
|
||||
| `email` | String(254) | sì | | |
|
||||
| `register_number` | String(30) | sì | | |
|
||||
| `is_demo` | Bool | no | `false` | |
|
||||
| `created_at` | DateTimeUtc | no | | |
|
||||
| `created_by` | String(100) | sì | | |
|
||||
| `updated_at` | DateTimeUtc | sì | | |
|
||||
| `updated_by` | String(100) | sì | | |
|
||||
| `row_version` | Int64 | no | `1` | |
|
||||
|
||||
- indice unico `ux_carriers_code` su `code`
|
||||
|
||||
#### `company_profile`
|
||||
|
||||
| Colonna | Tipo | Null | Default | Note |
|
||||
|---|---|---|---|---|
|
||||
| `id` | Int64 | no | | chiave primaria, identity |
|
||||
| `legal_name` | String(200) | no | | |
|
||||
| `fiscal_name` | String(200) | sì | | |
|
||||
| `vat_number` | String(28) | sì | | |
|
||||
| `tax_code` | String(16) | sì | | |
|
||||
| `rea_office` | String(2) | sì | | |
|
||||
| `rea_number` | String(20) | sì | | |
|
||||
| `share_capital` | Decimal(19,6) | sì | | |
|
||||
| `shareholders` | String(2) | sì | | |
|
||||
| `liquidation_status` | String(2) | sì | | |
|
||||
| `address` | String(200) | sì | | |
|
||||
| `street_number` | String(8) | sì | | |
|
||||
| `postal_code` | String(10) | sì | | |
|
||||
| `city` | String(100) | sì | | |
|
||||
| `province_code` | String(2) | sì | | |
|
||||
| `address_country` | String(2) | sì | | |
|
||||
| `phone` | String(30) | sì | | |
|
||||
| `email` | String(254) | sì | | |
|
||||
| `pec` | String(254) | sì | | |
|
||||
| `website` | String(200) | sì | | |
|
||||
| `tax_regime` | String(4) | no | | |
|
||||
| `recipient_code` | String(7) | sì | | |
|
||||
| `logo_attachment_id` | Int64 | sì | | |
|
||||
| `default_bank_account_id` | Int64 | sì | | |
|
||||
| `currency_code` | String(3) | no | | |
|
||||
| `country` | String(2) | no | | |
|
||||
| `vat_periodicity` | String(40) | no | | |
|
||||
| `pro_rata_percent` | Decimal(19,6) | no | | |
|
||||
| `cash_vat` | Bool | no | `false` | |
|
||||
| `fiscal_year_start_month` | Int32 | no | | |
|
||||
| `transmitter_country` | String(2) | sì | | |
|
||||
| `transmitter_id` | String(28) | sì | | |
|
||||
| `intermediary_name` | String(200) | sì | | |
|
||||
| `intermediary_tax_code` | String(16) | sì | | |
|
||||
| `footer_notes` | Text | sì | | |
|
||||
| `created_at` | DateTimeUtc | no | | |
|
||||
| `created_by` | String(100) | sì | | |
|
||||
| `updated_at` | DateTimeUtc | sì | | |
|
||||
| `updated_by` | String(100) | sì | | |
|
||||
| `row_version` | Int64 | no | `1` | |
|
||||
|
||||
#### `company_settings`
|
||||
|
||||
| Colonna | Tipo | Null | Default | Note |
|
||||
@@ -782,6 +879,304 @@ Migrazioni applicate in ordine:
|
||||
|
||||
- indice unico `ux_company_settings_key` su `key`
|
||||
|
||||
#### `cost_centers`
|
||||
|
||||
| Colonna | Tipo | Null | Default | Note |
|
||||
|---|---|---|---|---|
|
||||
| `id` | Int64 | no | | chiave primaria, identity |
|
||||
| `code` | String(20) | no | | |
|
||||
| `description` | String(100) | no | | |
|
||||
| `disabled` | Bool | no | `false` | |
|
||||
| `parent_id` | Int64 | sì | | -> `cost_centers` (Restrict) |
|
||||
| `is_demo` | Bool | no | `false` | |
|
||||
| `created_at` | DateTimeUtc | no | | |
|
||||
| `created_by` | String(100) | sì | | |
|
||||
| `updated_at` | DateTimeUtc | sì | | |
|
||||
| `updated_by` | String(100) | sì | | |
|
||||
| `row_version` | Int64 | no | `1` | |
|
||||
|
||||
- indice unico `ux_cost_centers_code` su `code`
|
||||
|
||||
#### `countries`
|
||||
|
||||
| Colonna | Tipo | Null | Default | Note |
|
||||
|---|---|---|---|---|
|
||||
| `id` | Int64 | no | | chiave primaria, identity |
|
||||
| `code` | String(2) | no | | |
|
||||
| `description` | String(100) | no | | |
|
||||
| `disabled` | Bool | no | `false` | |
|
||||
| `iso3` | String(3) | sì | | |
|
||||
| `eu_member` | Bool | no | `false` | |
|
||||
| `vat_prefix` | String(2) | sì | | |
|
||||
| `currency_code` | String(3) | sì | | |
|
||||
| `is_demo` | Bool | no | `false` | |
|
||||
| `created_at` | DateTimeUtc | no | | |
|
||||
| `created_by` | String(100) | sì | | |
|
||||
| `updated_at` | DateTimeUtc | sì | | |
|
||||
| `updated_by` | String(100) | sì | | |
|
||||
| `row_version` | Int64 | no | `1` | |
|
||||
|
||||
- indice unico `ux_countries_code` su `code`
|
||||
|
||||
#### `currencies`
|
||||
|
||||
| Colonna | Tipo | Null | Default | Note |
|
||||
|---|---|---|---|---|
|
||||
| `id` | Int64 | no | | chiave primaria, identity |
|
||||
| `code` | String(3) | no | | |
|
||||
| `description` | String(100) | no | | |
|
||||
| `disabled` | Bool | no | `false` | |
|
||||
| `symbol` | String(5) | sì | | |
|
||||
| `decimals` | Int32 | no | | |
|
||||
| `is_demo` | Bool | no | `false` | |
|
||||
| `created_at` | DateTimeUtc | no | | |
|
||||
| `created_by` | String(100) | sì | | |
|
||||
| `updated_at` | DateTimeUtc | sì | | |
|
||||
| `updated_by` | String(100) | sì | | |
|
||||
| `row_version` | Int64 | no | `1` | |
|
||||
|
||||
- indice unico `ux_currencies_code` su `code`
|
||||
|
||||
#### `delivery_terms`
|
||||
|
||||
| Colonna | Tipo | Null | Default | Note |
|
||||
|---|---|---|---|---|
|
||||
| `id` | Int64 | no | | chiave primaria, identity |
|
||||
| `code` | String(10) | no | | |
|
||||
| `description` | String(100) | no | | |
|
||||
| `disabled` | Bool | no | `false` | |
|
||||
| `is_demo` | Bool | no | `false` | |
|
||||
| `created_at` | DateTimeUtc | no | | |
|
||||
| `created_by` | String(100) | sì | | |
|
||||
| `updated_at` | DateTimeUtc | sì | | |
|
||||
| `updated_by` | String(100) | sì | | |
|
||||
| `row_version` | Int64 | no | `1` | |
|
||||
|
||||
- indice unico `ux_delivery_terms_code` su `code`
|
||||
|
||||
#### `discount_policies`
|
||||
|
||||
| Colonna | Tipo | Null | Default | Note |
|
||||
|---|---|---|---|---|
|
||||
| `id` | Int64 | no | | chiave primaria, identity |
|
||||
| `code` | String(10) | no | | |
|
||||
| `description` | String(100) | no | | |
|
||||
| `disabled` | Bool | no | `false` | |
|
||||
| `formula` | String(60) | no | | |
|
||||
| `is_demo` | Bool | no | `false` | |
|
||||
| `created_at` | DateTimeUtc | no | | |
|
||||
| `created_by` | String(100) | sì | | |
|
||||
| `updated_at` | DateTimeUtc | sì | | |
|
||||
| `updated_by` | String(100) | sì | | |
|
||||
| `row_version` | Int64 | no | `1` | |
|
||||
|
||||
- indice unico `ux_discount_policies_code` su `code`
|
||||
|
||||
#### `document_numerators`
|
||||
|
||||
| Colonna | Tipo | Null | Default | Note |
|
||||
|---|---|---|---|---|
|
||||
| `id` | Int64 | no | | chiave primaria, identity |
|
||||
| `code` | String(10) | no | | |
|
||||
| `description` | String(100) | no | | |
|
||||
| `disabled` | Bool | no | `false` | |
|
||||
| `kind` | String(40) | no | | |
|
||||
| `section` | String(10) | sì | | |
|
||||
| `year` | Int32 | no | | |
|
||||
| `prefix` | String(10) | sì | | |
|
||||
| `format` | String(60) | no | | |
|
||||
| `last_number` | Int64 | no | | |
|
||||
| `gaps_allowed` | Bool | no | `false` | |
|
||||
| `is_demo` | Bool | no | `false` | |
|
||||
| `created_at` | DateTimeUtc | no | | |
|
||||
| `created_by` | String(100) | sì | | |
|
||||
| `updated_at` | DateTimeUtc | sì | | |
|
||||
| `updated_by` | String(100) | sì | | |
|
||||
| `row_version` | Int64 | no | `1` | |
|
||||
|
||||
- indice unico `ux_document_numerators_code_year` su `code`, `year`
|
||||
|
||||
#### `document_types`
|
||||
|
||||
| Colonna | Tipo | Null | Default | Note |
|
||||
|---|---|---|---|---|
|
||||
| `id` | Int64 | no | | chiave primaria, identity |
|
||||
| `code` | String(10) | no | | |
|
||||
| `description` | String(100) | no | | |
|
||||
| `disabled` | Bool | no | `false` | |
|
||||
| `kind` | String(40) | no | | |
|
||||
| `numerator_id` | Int64 | sì | | |
|
||||
| `inventory_reason_id` | Int64 | sì | | -> `inventory_reasons` (Restrict) |
|
||||
| `e_invoice_type` | String(4) | sì | | |
|
||||
| `journal_template_code` | String(10) | sì | | |
|
||||
| `vat_register_code` | String(10) | sì | | |
|
||||
| `print_template` | String(60) | sì | | |
|
||||
| `is_demo` | Bool | no | `false` | |
|
||||
| `created_at` | DateTimeUtc | no | | |
|
||||
| `created_by` | String(100) | sì | | |
|
||||
| `updated_at` | DateTimeUtc | sì | | |
|
||||
| `updated_by` | String(100) | sì | | |
|
||||
| `row_version` | Int64 | no | `1` | |
|
||||
|
||||
- indice unico `ux_document_types_code` su `code`
|
||||
|
||||
#### `exchange_rates`
|
||||
|
||||
| Colonna | Tipo | Null | Default | Note |
|
||||
|---|---|---|---|---|
|
||||
| `id` | Int64 | no | | chiave primaria, identity |
|
||||
| `currency_code` | String(3) | no | | |
|
||||
| `rate_date` | Date | no | | |
|
||||
| `rate` | Decimal(19,6) | no | | |
|
||||
| `source` | String(10) | no | | |
|
||||
| `created_at` | DateTimeUtc | no | | |
|
||||
| `created_by` | String(100) | sì | | |
|
||||
| `updated_at` | DateTimeUtc | sì | | |
|
||||
| `updated_by` | String(100) | sì | | |
|
||||
| `row_version` | Int64 | no | `1` | |
|
||||
|
||||
- indice unico `ux_exchange_rates_currency_code_rate_date` su `currency_code`, `rate_date`
|
||||
|
||||
#### `fiscal_periods`
|
||||
|
||||
| Colonna | Tipo | Null | Default | Note |
|
||||
|---|---|---|---|---|
|
||||
| `id` | Int64 | no | | chiave primaria, identity |
|
||||
| `fiscal_year_id` | Int64 | no | | -> `fiscal_years` (Cascade) |
|
||||
| `number` | Int32 | no | | |
|
||||
| `start_date` | Date | no | | |
|
||||
| `end_date` | Date | no | | |
|
||||
| `status` | String(40) | no | | |
|
||||
| `created_at` | DateTimeUtc | no | | |
|
||||
| `created_by` | String(100) | sì | | |
|
||||
| `updated_at` | DateTimeUtc | sì | | |
|
||||
| `updated_by` | String(100) | sì | | |
|
||||
| `row_version` | Int64 | no | `1` | |
|
||||
|
||||
- indice `ix_fiscal_periods_start_date` su `start_date`
|
||||
- indice unico `ux_fiscal_periods_fiscal_year_id_number` su `fiscal_year_id`, `number`
|
||||
|
||||
#### `fiscal_years`
|
||||
|
||||
| Colonna | Tipo | Null | Default | Note |
|
||||
|---|---|---|---|---|
|
||||
| `id` | Int64 | no | | chiave primaria, identity |
|
||||
| `code` | String(10) | no | | |
|
||||
| `start_date` | Date | no | | |
|
||||
| `end_date` | Date | no | | |
|
||||
| `status` | String(40) | no | | |
|
||||
| `journal_first_page` | Int32 | no | | |
|
||||
| `last_final_entry_number` | Int64 | no | | |
|
||||
| `last_final_entry_date` | Date | sì | | |
|
||||
| `created_at` | DateTimeUtc | no | | |
|
||||
| `created_by` | String(100) | sì | | |
|
||||
| `updated_at` | DateTimeUtc | sì | | |
|
||||
| `updated_by` | String(100) | sì | | |
|
||||
| `row_version` | Int64 | no | `1` | |
|
||||
|
||||
- indice unico `ux_fiscal_years_code` su `code`
|
||||
- indice unico `ux_fiscal_years_start_date` su `start_date`
|
||||
|
||||
#### `goods_appearances`
|
||||
|
||||
| Colonna | Tipo | Null | Default | Note |
|
||||
|---|---|---|---|---|
|
||||
| `id` | Int64 | no | | chiave primaria, identity |
|
||||
| `code` | String(10) | no | | |
|
||||
| `description` | String(100) | no | | |
|
||||
| `disabled` | Bool | no | `false` | |
|
||||
| `is_demo` | Bool | no | `false` | |
|
||||
| `created_at` | DateTimeUtc | no | | |
|
||||
| `created_by` | String(100) | sì | | |
|
||||
| `updated_at` | DateTimeUtc | sì | | |
|
||||
| `updated_by` | String(100) | sì | | |
|
||||
| `row_version` | Int64 | no | `1` | |
|
||||
|
||||
- indice unico `ux_goods_appearances_code` su `code`
|
||||
|
||||
#### `inventory_reasons`
|
||||
|
||||
| Colonna | Tipo | Null | Default | Note |
|
||||
|---|---|---|---|---|
|
||||
| `id` | Int64 | no | | chiave primaria, identity |
|
||||
| `code` | String(10) | no | | |
|
||||
| `description` | String(100) | no | | |
|
||||
| `disabled` | Bool | no | `false` | |
|
||||
| `effect` | String(40) | no | | |
|
||||
| `affects_value` | Bool | no | `false` | |
|
||||
| `is_transfer` | Bool | no | `false` | |
|
||||
| `is_demo` | Bool | no | `false` | |
|
||||
| `created_at` | DateTimeUtc | no | | |
|
||||
| `created_by` | String(100) | sì | | |
|
||||
| `updated_at` | DateTimeUtc | sì | | |
|
||||
| `updated_by` | String(100) | sì | | |
|
||||
| `row_version` | Int64 | no | `1` | |
|
||||
|
||||
- indice unico `ux_inventory_reasons_code` su `code`
|
||||
|
||||
#### `item_categories`
|
||||
|
||||
| Colonna | Tipo | Null | Default | Note |
|
||||
|---|---|---|---|---|
|
||||
| `id` | Int64 | no | | chiave primaria, identity |
|
||||
| `code` | String(20) | no | | |
|
||||
| `description` | String(100) | no | | |
|
||||
| `disabled` | Bool | no | `false` | |
|
||||
| `parent_id` | Int64 | sì | | -> `item_categories` (Restrict) |
|
||||
| `level` | Int32 | no | | |
|
||||
| `is_demo` | Bool | no | `false` | |
|
||||
| `created_at` | DateTimeUtc | no | | |
|
||||
| `created_by` | String(100) | sì | | |
|
||||
| `updated_at` | DateTimeUtc | sì | | |
|
||||
| `updated_by` | String(100) | sì | | |
|
||||
| `row_version` | Int64 | no | `1` | |
|
||||
|
||||
- indice unico `ux_item_categories_code` su `code`
|
||||
|
||||
#### `jobs`
|
||||
|
||||
| Colonna | Tipo | Null | Default | Note |
|
||||
|---|---|---|---|---|
|
||||
| `id` | Int64 | no | | chiave primaria, identity |
|
||||
| `code` | String(20) | no | | |
|
||||
| `description` | String(100) | no | | |
|
||||
| `disabled` | Bool | no | `false` | |
|
||||
| `party_id` | Int64 | sì | | |
|
||||
| `start_date` | Date | sì | | |
|
||||
| `end_date` | Date | sì | | |
|
||||
| `status` | String(40) | no | | |
|
||||
| `is_demo` | Bool | no | `false` | |
|
||||
| `created_at` | DateTimeUtc | no | | |
|
||||
| `created_by` | String(100) | sì | | |
|
||||
| `updated_at` | DateTimeUtc | sì | | |
|
||||
| `updated_by` | String(100) | sì | | |
|
||||
| `row_version` | Int64 | no | `1` | |
|
||||
|
||||
- indice unico `ux_jobs_code` su `code`
|
||||
|
||||
#### `municipalities`
|
||||
|
||||
| Colonna | Tipo | Null | Default | Note |
|
||||
|---|---|---|---|---|
|
||||
| `id` | Int64 | no | | chiave primaria, identity |
|
||||
| `code` | String(4) | no | | |
|
||||
| `description` | String(100) | no | | |
|
||||
| `disabled` | Bool | no | `false` | |
|
||||
| `province_code` | String(2) | no | | |
|
||||
| `region` | String(60) | sì | | |
|
||||
| `istat_code` | String(6) | sì | | |
|
||||
| `postal_codes` | String(400) | sì | | |
|
||||
| `is_demo` | Bool | no | `false` | |
|
||||
| `created_at` | DateTimeUtc | no | | |
|
||||
| `created_by` | String(100) | sì | | |
|
||||
| `updated_at` | DateTimeUtc | sì | | |
|
||||
| `updated_by` | String(100) | sì | | |
|
||||
| `row_version` | Int64 | no | `1` | |
|
||||
|
||||
- indice `ix_municipalities_description` su `description`
|
||||
- indice `ix_municipalities_province_code` su `province_code`
|
||||
- indice unico `ux_municipalities_code` su `code`
|
||||
|
||||
#### `notification_reads`
|
||||
|
||||
| Colonna | Tipo | Null | Default | Note |
|
||||
@@ -818,6 +1213,123 @@ Migrazioni applicate in ordine:
|
||||
|
||||
- indice `ix_notifications_recipient_user_id` su `recipient_user_id`
|
||||
|
||||
#### `party_categories`
|
||||
|
||||
| Colonna | Tipo | Null | Default | Note |
|
||||
|---|---|---|---|---|
|
||||
| `id` | Int64 | no | | chiave primaria, identity |
|
||||
| `code` | String(10) | no | | |
|
||||
| `description` | String(100) | no | | |
|
||||
| `disabled` | Bool | no | `false` | |
|
||||
| `is_demo` | Bool | no | `false` | |
|
||||
| `created_at` | DateTimeUtc | no | | |
|
||||
| `created_by` | String(100) | sì | | |
|
||||
| `updated_at` | DateTimeUtc | sì | | |
|
||||
| `updated_by` | String(100) | sì | | |
|
||||
| `row_version` | Int64 | no | `1` | |
|
||||
|
||||
- indice unico `ux_party_categories_code` su `code`
|
||||
|
||||
#### `payment_methods`
|
||||
|
||||
| Colonna | Tipo | Null | Default | Note |
|
||||
|---|---|---|---|---|
|
||||
| `id` | Int64 | no | | chiave primaria, identity |
|
||||
| `code` | String(10) | no | | |
|
||||
| `description` | String(100) | no | | |
|
||||
| `disabled` | Bool | no | `false` | |
|
||||
| `e_invoice_code` | String(4) | no | | |
|
||||
| `needs_bank` | Bool | no | `false` | |
|
||||
| `is_demo` | Bool | no | `false` | |
|
||||
| `created_at` | DateTimeUtc | no | | |
|
||||
| `created_by` | String(100) | sì | | |
|
||||
| `updated_at` | DateTimeUtc | sì | | |
|
||||
| `updated_by` | String(100) | sì | | |
|
||||
| `row_version` | Int64 | no | `1` | |
|
||||
|
||||
- indice unico `ux_payment_methods_code` su `code`
|
||||
|
||||
#### `payment_term_lines`
|
||||
|
||||
| Colonna | Tipo | Null | Default | Note |
|
||||
|---|---|---|---|---|
|
||||
| `id` | Int64 | no | | chiave primaria, identity |
|
||||
| `payment_term_id` | Int64 | no | | -> `payment_terms` (Cascade) |
|
||||
| `number` | Int32 | no | | |
|
||||
| `days` | Int32 | no | | |
|
||||
| `end_of_month` | Bool | no | `false` | |
|
||||
| `fixed_day` | Int32 | sì | | |
|
||||
| `percent` | Decimal(19,6) | no | | |
|
||||
| `created_at` | DateTimeUtc | no | | |
|
||||
| `created_by` | String(100) | sì | | |
|
||||
| `updated_at` | DateTimeUtc | sì | | |
|
||||
| `updated_by` | String(100) | sì | | |
|
||||
| `row_version` | Int64 | no | `1` | |
|
||||
|
||||
- indice unico `ux_payment_term_lines_payment_term_id_number` su `payment_term_id`, `number`
|
||||
|
||||
#### `payment_terms`
|
||||
|
||||
| Colonna | Tipo | Null | Default | Note |
|
||||
|---|---|---|---|---|
|
||||
| `id` | Int64 | no | | chiave primaria, identity |
|
||||
| `code` | String(10) | no | | |
|
||||
| `description` | String(100) | no | | |
|
||||
| `disabled` | Bool | no | `false` | |
|
||||
| `payment_method_id` | Int64 | sì | | -> `payment_methods` (Restrict) |
|
||||
| `condition` | String(4) | no | | |
|
||||
| `vat_on_first_installment` | Bool | no | `false` | |
|
||||
| `is_demo` | Bool | no | `false` | |
|
||||
| `created_at` | DateTimeUtc | no | | |
|
||||
| `created_by` | String(100) | sì | | |
|
||||
| `updated_at` | DateTimeUtc | sì | | |
|
||||
| `updated_by` | String(100) | sì | | |
|
||||
| `row_version` | Int64 | no | `1` | |
|
||||
|
||||
- indice unico `ux_payment_terms_code` su `code`
|
||||
|
||||
#### `price_lists`
|
||||
|
||||
| Colonna | Tipo | Null | Default | Note |
|
||||
|---|---|---|---|---|
|
||||
| `id` | Int64 | no | | chiave primaria, identity |
|
||||
| `code` | String(10) | no | | |
|
||||
| `description` | String(100) | no | | |
|
||||
| `disabled` | Bool | no | `false` | |
|
||||
| `currency_code` | String(3) | no | | |
|
||||
| `vat_included` | Bool | no | `false` | |
|
||||
| `valid_from` | Date | sì | | |
|
||||
| `valid_to` | Date | sì | | |
|
||||
| `base_price_list_id` | Int64 | sì | | -> `price_lists` (Restrict) |
|
||||
| `markup_percent` | Decimal(19,6) | no | | |
|
||||
| `rounding_step` | Decimal(19,6) | no | | |
|
||||
| `is_demo` | Bool | no | `false` | |
|
||||
| `created_at` | DateTimeUtc | no | | |
|
||||
| `created_by` | String(100) | sì | | |
|
||||
| `updated_at` | DateTimeUtc | sì | | |
|
||||
| `updated_by` | String(100) | sì | | |
|
||||
| `row_version` | Int64 | no | `1` | |
|
||||
|
||||
- indice unico `ux_price_lists_code` su `code`
|
||||
|
||||
#### `provinces`
|
||||
|
||||
| Colonna | Tipo | Null | Default | Note |
|
||||
|---|---|---|---|---|
|
||||
| `id` | Int64 | no | | chiave primaria, identity |
|
||||
| `code` | String(2) | no | | |
|
||||
| `description` | String(100) | no | | |
|
||||
| `disabled` | Bool | no | `false` | |
|
||||
| `region` | String(60) | sì | | |
|
||||
| `is_demo` | Bool | no | `false` | |
|
||||
| `created_at` | DateTimeUtc | no | | |
|
||||
| `created_by` | String(100) | sì | | |
|
||||
| `updated_at` | DateTimeUtc | sì | | |
|
||||
| `updated_by` | String(100) | sì | | |
|
||||
| `row_version` | Int64 | no | `1` | |
|
||||
|
||||
- indice unico `ux_provinces_code` su `code`
|
||||
|
||||
#### `role_permissions`
|
||||
|
||||
| Colonna | Tipo | Null | Default | Note |
|
||||
@@ -851,6 +1363,27 @@ Migrazioni applicate in ordine:
|
||||
|
||||
- indice unico `ux_roles_code` su `code`
|
||||
|
||||
#### `salespeople`
|
||||
|
||||
| Colonna | Tipo | Null | Default | Note |
|
||||
|---|---|---|---|---|
|
||||
| `id` | Int64 | no | | chiave primaria, identity |
|
||||
| `code` | String(10) | no | | |
|
||||
| `description` | String(100) | no | | |
|
||||
| `disabled` | Bool | no | `false` | |
|
||||
| `email` | String(254) | sì | | |
|
||||
| `phone` | String(30) | sì | | |
|
||||
| `commission_percent` | Decimal(19,6) | no | | |
|
||||
| `enasarco` | Bool | no | `false` | |
|
||||
| `is_demo` | Bool | no | `false` | |
|
||||
| `created_at` | DateTimeUtc | no | | |
|
||||
| `created_by` | String(100) | sì | | |
|
||||
| `updated_at` | DateTimeUtc | sì | | |
|
||||
| `updated_by` | String(100) | sì | | |
|
||||
| `row_version` | Int64 | no | `1` | |
|
||||
|
||||
- indice unico `ux_salespeople_code` su `code`
|
||||
|
||||
#### `schema_version`
|
||||
|
||||
| Colonna | Tipo | Null | Default | Note |
|
||||
@@ -863,6 +1396,103 @@ Migrazioni applicate in ordine:
|
||||
|
||||
Chiave primaria: `module`, `version`.
|
||||
|
||||
#### `shipping_terms`
|
||||
|
||||
| Colonna | Tipo | Null | Default | Note |
|
||||
|---|---|---|---|---|
|
||||
| `id` | Int64 | no | | chiave primaria, identity |
|
||||
| `code` | String(10) | no | | |
|
||||
| `description` | String(100) | no | | |
|
||||
| `disabled` | Bool | no | `false` | |
|
||||
| `is_demo` | Bool | no | `false` | |
|
||||
| `created_at` | DateTimeUtc | no | | |
|
||||
| `created_by` | String(100) | sì | | |
|
||||
| `updated_at` | DateTimeUtc | sì | | |
|
||||
| `updated_by` | String(100) | sì | | |
|
||||
| `row_version` | Int64 | no | `1` | |
|
||||
|
||||
- indice unico `ux_shipping_terms_code` su `code`
|
||||
|
||||
#### `tax_codes`
|
||||
|
||||
| Colonna | Tipo | Null | Default | Note |
|
||||
|---|---|---|---|---|
|
||||
| `id` | Int64 | no | | chiave primaria, identity |
|
||||
| `code` | String(10) | no | | |
|
||||
| `description` | String(100) | no | | |
|
||||
| `disabled` | Bool | no | `false` | |
|
||||
| `rate` | Decimal(19,6) | no | | |
|
||||
| `nature` | String(5) | sì | | |
|
||||
| `kind` | String(40) | no | | |
|
||||
| `exigibility` | String(40) | no | | |
|
||||
| `non_deductible_percent` | Decimal(19,6) | no | | |
|
||||
| `legal_reference` | String(200) | sì | | |
|
||||
| `valid_from` | Date | sì | | |
|
||||
| `valid_to` | Date | sì | | |
|
||||
| `sales_account_code` | String(20) | sì | | |
|
||||
| `purchase_account_code` | String(20) | sì | | |
|
||||
| `is_demo` | Bool | no | `false` | |
|
||||
| `created_at` | DateTimeUtc | no | | |
|
||||
| `created_by` | String(100) | sì | | |
|
||||
| `updated_at` | DateTimeUtc | sì | | |
|
||||
| `updated_by` | String(100) | sì | | |
|
||||
| `row_version` | Int64 | no | `1` | |
|
||||
|
||||
- indice unico `ux_tax_codes_code` su `code`
|
||||
|
||||
#### `transport_means`
|
||||
|
||||
| Colonna | Tipo | Null | Default | Note |
|
||||
|---|---|---|---|---|
|
||||
| `id` | Int64 | no | | chiave primaria, identity |
|
||||
| `code` | String(10) | no | | |
|
||||
| `description` | String(100) | no | | |
|
||||
| `disabled` | Bool | no | `false` | |
|
||||
| `is_demo` | Bool | no | `false` | |
|
||||
| `created_at` | DateTimeUtc | no | | |
|
||||
| `created_by` | String(100) | sì | | |
|
||||
| `updated_at` | DateTimeUtc | sì | | |
|
||||
| `updated_by` | String(100) | sì | | |
|
||||
| `row_version` | Int64 | no | `1` | |
|
||||
|
||||
- indice unico `ux_transport_means_code` su `code`
|
||||
|
||||
#### `transport_reasons`
|
||||
|
||||
| Colonna | Tipo | Null | Default | Note |
|
||||
|---|---|---|---|---|
|
||||
| `id` | Int64 | no | | chiave primaria, identity |
|
||||
| `code` | String(10) | no | | |
|
||||
| `description` | String(100) | no | | |
|
||||
| `disabled` | Bool | no | `false` | |
|
||||
| `is_demo` | Bool | no | `false` | |
|
||||
| `created_at` | DateTimeUtc | no | | |
|
||||
| `created_by` | String(100) | sì | | |
|
||||
| `updated_at` | DateTimeUtc | sì | | |
|
||||
| `updated_by` | String(100) | sì | | |
|
||||
| `row_version` | Int64 | no | `1` | |
|
||||
|
||||
- indice unico `ux_transport_reasons_code` su `code`
|
||||
|
||||
#### `units_of_measure`
|
||||
|
||||
| Colonna | Tipo | Null | Default | Note |
|
||||
|---|---|---|---|---|
|
||||
| `id` | Int64 | no | | chiave primaria, identity |
|
||||
| `code` | String(10) | no | | |
|
||||
| `description` | String(100) | no | | |
|
||||
| `disabled` | Bool | no | `false` | |
|
||||
| `decimals` | Int32 | no | | |
|
||||
| `e_invoice_code` | String(10) | sì | | |
|
||||
| `is_demo` | Bool | no | `false` | |
|
||||
| `created_at` | DateTimeUtc | no | | |
|
||||
| `created_by` | String(100) | sì | | |
|
||||
| `updated_at` | DateTimeUtc | sì | | |
|
||||
| `updated_by` | String(100) | sì | | |
|
||||
| `row_version` | Int64 | no | `1` | |
|
||||
|
||||
- indice unico `ux_units_of_measure_code` su `code`
|
||||
|
||||
#### `user_permission_overrides`
|
||||
|
||||
| Colonna | Tipo | Null | Default | Note |
|
||||
@@ -972,4 +1602,25 @@ Chiave primaria: `module`, `version`.
|
||||
|
||||
- indice unico `ux_users_user_name` su `user_name`
|
||||
|
||||
#### `warehouses`
|
||||
|
||||
| Colonna | Tipo | Null | Default | Note |
|
||||
|---|---|---|---|---|
|
||||
| `id` | Int64 | no | | chiave primaria, identity |
|
||||
| `code` | String(10) | no | | |
|
||||
| `description` | String(100) | no | | |
|
||||
| `disabled` | Bool | no | `false` | |
|
||||
| `address` | String(200) | sì | | |
|
||||
| `city` | String(100) | sì | | |
|
||||
| `province_code` | String(2) | sì | | |
|
||||
| `is_default` | Bool | no | `false` | |
|
||||
| `is_demo` | Bool | no | `false` | |
|
||||
| `created_at` | DateTimeUtc | no | | |
|
||||
| `created_by` | String(100) | sì | | |
|
||||
| `updated_at` | DateTimeUtc | sì | | |
|
||||
| `updated_by` | String(100) | sì | | |
|
||||
| `row_version` | Int64 | no | `1` | |
|
||||
|
||||
- indice unico `ux_warehouses_code` su `code`
|
||||
|
||||
<!-- END GENERATED -->
|
||||
Reference in new issue
Block a user