Criar banco de dados postgres em https://www.elephantsql.com/. O banco de dados deve conter os seguintes elementos:
create type schedulingService as enum ('Manutenção', 'Instalação', 'Orçamento');
create type schedulingCity as enum ('São José dos Campos', 'Taubaté', 'Tremembé', 'Guaratinguetá', 'Jacareí', 'Cruzeiro');
create table Technician(
id serial primary key not null,
email varchar(80) not null,
password varchar(80) not null,
token varchar(80)
);
create table Scheduling(
id serial primary key not null,
service schedulingService not null,
dateTime timestamp not null,
address varchar(120) not null,
number int not null,
distric varchar(80) not null,
city schedulingCity not null,
client varchar(80) not null,
phone varchar(15) not null,
email varchar(80),
observation text
);
Criar banco de dados postgres em https://www.elephantsql.com/. O banco de dados deve conter os seguintes elementos:
create type schedulingService as enum ('Manutenção', 'Instalação', 'Orçamento'); create type schedulingCity as enum ('São José dos Campos', 'Taubaté', 'Tremembé', 'Guaratinguetá', 'Jacareí', 'Cruzeiro');
create table Technician( id serial primary key not null, email varchar(80) not null, password varchar(80) not null, token varchar(80) );
create table Scheduling( id serial primary key not null, service schedulingService not null, dateTime timestamp not null, address varchar(120) not null, number int not null, distric varchar(80) not null, city schedulingCity not null, client varchar(80) not null, phone varchar(15) not null, email varchar(80), observation text );