Files
api/lnvps_db/migrations/20250501162308_company_info.sql
Kieran 1dda3a561d
All checks were successful
continuous-integration/drone/push Build is passing
feat: generate invoices
closes #29
2025-05-01 17:46:37 +01:00

19 lines
677 B
SQL

-- Add migration script here
create table company
(
id integer unsigned not null auto_increment primary key,
created timestamp not null default current_timestamp,
name varchar(100) not null,
email varchar(100) not null,
phone varchar(100),
address_1 varchar(200),
address_2 varchar(200),
city varchar(100),
state varchar(100),
postcode varchar(50),
country_code varchar(3),
tax_id varchar(50)
);
alter table vm_host_region
add column company_id integer unsigned,
add constraint fk_host_region_company foreign key (company_id) references company (id);