Added source_confidence in locations DB
This commit is contained in:
parent
580957b305
commit
cb1809cf33
|
|
@ -78,6 +78,9 @@ BEGIN
|
|||
IF NOT EXISTS (SELECT 1 FROM pg_type WHERE typname = 'listing_score_status_enum') THEN
|
||||
CREATE TYPE listing_score_status_enum AS ENUM ('pending', 'processing', 'completed', 'failed');
|
||||
END IF;
|
||||
IF NOT EXISTS (SELECT 1 FROM pg_type WHERE typname = 'source_confidence_enum') THEN
|
||||
CREATE TYPE source_confidence_enum AS ENUM ('high', 'medium', 'low', 'unknown');
|
||||
END IF;
|
||||
END $$;
|
||||
|
||||
-- 4. USERS & AUTHENTICATION
|
||||
|
|
@ -105,7 +108,7 @@ CREATE TABLE users (
|
|||
timezone VARCHAR(50),
|
||||
is_active BOOLEAN NOT NULL DEFAULT TRUE,
|
||||
roles listing_role_enum[] NOT NULL DEFAULT '{seller_buyer}',
|
||||
current_role listing_role_enum NOT NULL DEFAULT 'seller_buyer',
|
||||
active_role listing_role_enum NOT NULL DEFAULT 'seller_buyer',
|
||||
user_type user_type_enum NOT NULL DEFAULT 'user',
|
||||
country_code VARCHAR(10) NOT NULL DEFAULT '+91',
|
||||
|
||||
|
|
@ -206,6 +209,7 @@ CREATE TABLE locations (
|
|||
pincode VARCHAR(20),
|
||||
|
||||
source_type source_type_enum DEFAULT 'unknown',
|
||||
source_confidence source_confidence_enum DEFAULT 'unknown',
|
||||
selected_location BOOLEAN NOT NULL DEFAULT FALSE,
|
||||
deleted BOOLEAN NOT NULL DEFAULT FALSE,
|
||||
created_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
|
||||
|
|
|
|||
Loading…
Reference in New Issue