Skip to content

Commit a827be5

Browse files
committed
feat: schema.sql
1 parent ee59416 commit a827be5

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

singlefile/schema.sql

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,19 +76,18 @@ $$;
7676
CREATE TABLE IF NOT EXISTS users (
7777
id integer PRIMARY KEY,
7878
email text NOT NULL CHECK (email LIKE '%@%'),
79-
name text NOT NULL
79+
name text NOT NULL,
80+
city text NOT NULL
8081
);
8182

8283
COMMENT ON TABLE users IS 'User accounts';
8384

84-
COMMENT ON COLUMN users.email IS 'User email address';
85+
COMMENT ON COLUMN users.email IS 'User email address1';
8586

8687
--
8788
-- Name: idx_users_email; Type: INDEX; Schema: -; Owner: -
8889
--
8990

90-
CREATE INDEX IF NOT EXISTS idx_users_email ON users (email);
91-
9291
--
9392
-- Name: idx_users_name; Type: INDEX; Schema: -; Owner: -
9493
--

0 commit comments

Comments
 (0)