numerus/deploy
jordi fita mas 5d46bbb95b Add the relation to store the expense’s attachment files
It is a separate table because we allow expenses to not have such an
attachment, although we allow only an attachment per expense, and i do
not want to have a bunch of nullable columns for that.

I decided to keep the files in the database, contrary to “conventional
wisdom” of storing files in the filesystem, because these attachments
are invoices and such documets that are an integral part of the expense
relation.  In other words, losing these files would render the expense
(almost) useless.  Thus, the ACID guarantees of the database are the
most appropriate place for them.
2023-05-13 21:23:24 +02:00
..
add_contact.sql Replace tag relations with array attributes 2023-04-07 21:31:35 +02:00
add_expense.sql Add function to create expenses 2023-05-02 11:29:57 +02:00
add_invoice.sql Move the product_id field from invoice_product to a separate table 2023-04-19 19:30:12 +02:00
add_product.sql Replace tag relations with array attributes 2023-04-07 21:31:35 +02:00
available_countries.sql Use a select for company’s country field 2023-01-27 21:30:14 +01:00
available_currencies.sql Add the company relation and read-only form to edit 2023-01-24 21:46:07 +01:00
available_invoice_status.sql Add the invoice_status relation and its i18n 2023-02-07 16:45:27 +01:00
available_languages.sql Add currency_pattern to language relation 2023-02-23 12:12:33 +01:00
build_cookie.sql Remove execution grant on build_cookie to guest 2023-01-23 21:40:22 +01:00
change_password.sql Add function to change the current user’s password 2023-01-23 21:41:14 +01:00
check_cookie.sql Use user’ß email for auth funcs and return cookie on email change 2023-01-23 21:18:55 +01:00
company.sql Replace static legal disclaimer with a database field 2023-03-02 10:24:44 +01:00
company_default_payment_method.sql Add company’s default payment method 2023-03-04 22:15:52 +01:00
company_user.sql Add the company relation and read-only form to edit 2023-01-24 21:46:07 +01:00
compute_new_invoice_amount.sql Show the invoice subtotal, taxes, and total when creating it 2023-02-23 15:31:57 +01:00
contact.sql Replace tag relations with array attributes 2023-04-07 21:31:35 +02:00
country.sql Use a select for company’s country field 2023-01-27 21:30:14 +01:00
country_code.sql Use a select for company’s country field 2023-01-27 21:30:14 +01:00
country_i18n.sql Use a select for company’s country field 2023-01-27 21:30:14 +01:00
currency.sql Add the company relation and read-only form to edit 2023-01-24 21:46:07 +01:00
currency_code.sql Fix typo in SQL comment 2023-01-27 19:36:16 +01:00
current_user_cookie.sql Use user’ß email for auth funcs and return cookie on email change 2023-01-23 21:18:55 +01:00
current_user_email.sql Use user’ß email for auth funcs and return cookie on email change 2023-01-23 21:18:55 +01:00
discount_rate.sql Add discount_rate domain and invoice_product relation 2023-02-10 19:02:04 +01:00
edit_contact.sql Replace tag relations with array attributes 2023-04-07 21:31:35 +02:00
edit_expense.sql Add SQL function to edit expenses 2023-05-04 12:34:47 +02:00
edit_invoice.sql Move the product_id field from invoice_product to a separate table 2023-04-19 19:30:12 +02:00
edit_product.sql Replace tag relations with array attributes 2023-04-07 21:31:35 +02:00
edited_invoice_product.sql Add function to edit invoices 2023-03-11 20:58:20 +01:00
email.sql Setup authentication schema and user relation 2023-01-13 20:30:21 +01:00
encrypt_password.sql Remove the revocation of all function executions 2023-01-17 13:05:58 +01:00
ensure_role_exists.sql Remove the revocation of all function executions 2023-01-17 13:05:58 +01:00
expense.sql Add the expense relation 2023-04-30 16:06:16 +02:00
expense_attachment.sql Add the relation to store the expense’s attachment files 2023-05-13 21:23:24 +02:00
expense_tax.sql Add the relation of expense taxes 2023-05-01 16:17:36 +02:00
extension_citext.sql Setup authentication schema and user relation 2023-01-13 20:30:21 +01:00
extension_pg_libphonenumber.sql Add the company relation and read-only form to edit 2023-01-24 21:46:07 +01:00
extension_pgcrypto.sql Create pgcrypto extension into auth schema 2023-01-17 13:12:18 +01:00
extension_uri.sql Add the company relation and read-only form to edit 2023-01-24 21:46:07 +01:00
extension_vat.sql Add the company relation and read-only form to edit 2023-01-24 21:46:07 +01:00
invoice.sql Replace tag relations with array attributes 2023-04-07 21:31:35 +02:00
invoice_amount.sql Add discount and tax classes columns to invoice 2023-03-01 14:08:12 +01:00
invoice_number_counter.sql Add the function to get the next invoice number 2023-02-17 14:48:24 +01:00
invoice_product.sql Move the product_id field from invoice_product to a separate table 2023-04-19 19:30:12 +02:00
invoice_product_amount.sql Add discount and tax classes columns to invoice 2023-03-01 14:08:12 +01:00
invoice_product_product.sql Move the product_id field from invoice_product to a separate table 2023-04-19 19:30:12 +02:00
invoice_product_tax.sql Add invoice product tax relation 2023-02-15 14:49:06 +01:00
invoice_status.sql Add the invoice_status relation and its i18n 2023-02-07 16:45:27 +01:00
invoice_status_i18n.sql Add the invoice_status relation and its i18n 2023-02-07 16:45:27 +01:00
invoice_tax_amount.sql Add views to compute taxes and total amount of invoices 2023-02-22 14:39:38 +01:00
language.sql Add currency_pattern to language relation 2023-02-23 12:12:33 +01:00
login.sql Use user’ß email for auth funcs and return cookie on email change 2023-01-23 21:18:55 +01:00
login_attempt.sql Implement login cookie, its verification, and logout 2023-01-17 20:58:13 +01:00
logout.sql Use user’ß email for auth funcs and return cookie on email change 2023-01-23 21:18:55 +01:00
new_invoice_amount.sql Show the invoice subtotal, taxes, and total when creating it 2023-02-23 15:31:57 +01:00
new_invoice_product.sql Add function to edit invoices 2023-03-11 20:58:20 +01:00
next_invoice_number.sql Add the function to get the next invoice number 2023-02-17 14:48:24 +01:00
parse_price.sql Fix to_price and parse_price for negative values 2023-02-23 14:42:18 +01:00
payment_method.sql Add the payment method relation and corresponding form 2023-03-03 16:49:06 +01:00
product.sql Replace tag relations with array attributes 2023-04-07 21:31:35 +02:00
product_tax.sql Allow multiple taxes, and even not tax, for products 2023-02-08 13:47:36 +01:00
roles.sql Setup authentication schema and user relation 2023-01-13 20:30:21 +01:00
schema_auth.sql Setup authentication schema and user relation 2023-01-13 20:30:21 +01:00
schema_numerus.sql Setup authentication schema and user relation 2023-01-13 20:30:21 +01:00
schema_public.sql Move check_cookie to public and give access to authenticator 2023-01-18 14:12:59 +01:00
set_cookie.sql Add a function to set request settings and the role 2023-01-19 13:07:32 +01:00
tag_name.sql Add invoice tags 2023-03-10 14:02:55 +01:00
tax.sql Introduce the concept of tax class 2023-02-28 12:02:27 +01:00
tax_class.sql Introduce the concept of tax class 2023-02-28 12:02:27 +01:00
tax_rate.sql Fix comment on domain tax_rate 2023-02-10 19:00:08 +01:00
to_price.sql Fix to_price and parse_price for negative values 2023-02-23 14:42:18 +01:00
user.sql Add user_profile view to update the profile with form 2023-01-22 02:23:09 +01:00
user_profile.sql Add cross-request forgery detection 2023-02-02 11:39:34 +01:00