refactor friendly name to just be name (#29)

This commit is contained in:
Jim authored and GitHub committed 2020-05-05 16:35:24 -04:00
1 parent c6a9c970b0
commit 725a777baf
6 files changed
+109 -128

No files matched your search

+3 -4
View File
@@ -6,8 +6,7 @@ CREATE TABLE if not exists db_test_user (
create_time timestamp with time zone default current_timestamp,
update_time timestamp with time zone default current_timestamp,
public_id text NOT NULL UNIQUE,
friendly_name text UNIQUE,
name text,
name text UNIQUE,
phone_number text,
email text
);
@@ -16,7 +15,7 @@ CREATE TABLE if not exists db_test_car (
create_time timestamp with time zone default current_timestamp,
update_time timestamp with time zone default current_timestamp,
public_id text NOT NULL UNIQUE,
friendly_name text UNIQUE,
name text UNIQUE,
model text,
mpg smallint
);
@@ -25,7 +24,7 @@ CREATE TABLE if not exists db_test_rental (
create_time timestamp with time zone default current_timestamp,
update_time timestamp with time zone default current_timestamp,
public_id text NOT NULL UNIQUE,
friendly_name text UNIQUE,
name text UNIQUE,
user_id bigint not null REFERENCES db_test_user(id),
car_id bigint not null REFERENCES db_test_car(id)
);