numerus/demo/demo.sql

24 lines
815 B
MySQL
Raw Normal View History

2023-01-17 21:30:01 +00:00
begin;
set search_path to auth, numerus, public;
insert into auth."user" (user_id, email, name, password, role)
values (1, 'demo@numerus', 'Demo User', 'demo', 'invoicer')
, (2, 'admin@numerus', 'Demo Admin', 'admin', 'admin')
;
insert into company (company_id, business_name, vatin, trade_name, phone, email, web, address, city, province, postal_code, country_code, currency_code)
values (1, 'Juli Verd', 'ES40404040D', 'Pesebre', parse_packed_phone_number('972 50 60 70', 'ES'), 'info@numerus.cat', 'https://numerus.cat/', 'C/ de lHort', 'Castelló dEmpúries', 'Alt Empordà', '17486', 'ES', 'EUR');
insert into company_user (company_id, user_id)
values (1, 1)
, (1, 2)
2023-01-17 21:30:01 +00:00
;
insert into tax (company_id, name, rate)
values (1, 'Retenció 15 %', -0.15)
, (1, 'IVA 21 %', 0.21)
;
2023-01-17 21:30:01 +00:00
commit;