From dc4e28a5d249addf1b5d0a256df8497b73286f6d Mon Sep 17 00:00:00 2001 From: ElhamFadel Date: Mon, 25 Oct 2021 21:05:06 +0300 Subject: [PATCH] remove location from agent with rename entites --- server/database/config/bulid.sql | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/database/config/bulid.sql b/server/database/config/bulid.sql index 2c9c989..3aaa5f2 100644 --- a/server/database/config/bulid.sql +++ b/server/database/config/bulid.sql @@ -9,11 +9,11 @@ CREATE TABLE admins( CREATE TABLE agents( id SERIAL PRIMARY KEY, name VARCHAR(255) NOT NULL, - email VARCHAR(255) UNIQUE, + email VARCHAR(255) NOT NULL UNIQUE, + password VARCHAR(255) NOT NULL, phone VARCHAR(255) NOT NULL UNIQUE, - image TEXT, - location VARCHAR(255) NOT NULL, - password VARCHAR(255) NOT NULL + avater TEXT + ); CREATE TABLE estates( id SERIAL PRIMARY KEY,