You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

35 lines
854 B

create table project
(
id serial not null
constraint peoject_pk
primary key,
name varchar(255),
type varchar(255),
longitude varchar(255),
latitude varchar(255),
describe varchar(255),
user_id integer,
img character varying[],
qr_code varchar
);
create table point
(
id serial not null
constraint point_pk
primary key,
name varchar(255),
longitude varchar(255),
latitude varchar(255),
describe varchar(255),
qr_code varchar,
project_id integer
)
-- alter table project alter column longitude type varchar(255) using longitude::varchar(255);
-- alter table project alter column latitude type varchar(255) using latitude::varchar(255);
-- alter table point alter column longitude type varchar(255) using longitude::varchar(255);
-- alter table point alter column latitude type varchar(255) using latitude::varchar(255);