id | string, UUID, π system | β
Yes | Unique identifier (read-only) | β | Unique identifier of the invoice | βinvoice-uuid-123β |
supplier | Supplier (UUID) | β
Yes | Foreign key reference | β | Reference to the supplier | βsupplier-uuid-456β |
name | string | β
Yes | 1β200 chars | β | Invoice name or description | βOffice supplies - March 2024β |
status | string (enum) | βͺ No | default: βdraftβ | draft , issued , paid , canceled | Invoice status | βissuedβ |
invoice_date | string (ISO 8601) | β
Yes | date format | β | Invoice date | β2024-03-15β |
total_amount | string (decimal) | β
Yes | numeric precision 12,2 | β | Total amount with decimal precision | β1250.50β |
currency | string (3 char) | β
Yes | ISO 4217 code | EUR , USD , GBP , etc. | Currency code | βEURβ |
invoice_number | string | βͺ No | nullable | β | Invoice number | βINV-2024-001β |
due_date | string (ISO 8601) | βͺ No | date format, nullable | β | Due date | β2024-04-15β |
created_at | string (ISO 8601) π system | β | auto timestamp | β | Creation timestamp | β2023-01-01T12:00:00Zβ |
updated_at | string (ISO 8601) π system | β | auto timestamp | β | Last updated timestamp | β2024-01-01T12:00:00Zβ |
deleted_at | string | null π system | βͺ No | nullable ISO 8601 | β | Deletion timestamp (soft delete) | β2024-01-01T12:00:00Zβ |