Skip to content

Commit 24279e3

Browse files
authored
Merge pull request #4 from pgschema/feature-1
feat: schema.sql
2 parents 46e7b92 + 793e313 commit 24279e3

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

singlefile/schema.sql

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,18 +71,15 @@ $$;
7171
CREATE TABLE IF NOT EXISTS users (
7272
id integer PRIMARY KEY,
7373
email text NOT NULL CHECK (email LIKE '%@%'),
74-
name text NOT NULL
74+
name text NOT NULL,
75+
city text NOT NULL
7576
);
7677

7778
COMMENT ON TABLE users IS 'User accounts';
7879

7980
COMMENT ON COLUMN users.email IS 'User email address';
8081

81-
--
82-
-- Name: idx_users_email; Type: INDEX; Schema: -; Owner: -
83-
--
84-
85-
CREATE INDEX IF NOT EXISTS idx_users_email ON users (email);
82+
COMMENT ON COLUMN users.city IS 'User location city';
8683

8784
--
8885
-- Name: idx_users_name; Type: INDEX; Schema: -; Owner: -

0 commit comments

Comments
 (0)