Advertisement
Guest User

Untitled

a guest
Feb 25th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. CREATE TABLE products (
  2. id SERIAL PRIMARY KEY,
  3. categoryid INT NOT NULL REFERENCES categories (id),
  4. title VARCHAR(255) NOT NULL,
  5. description TEXT NOT NULL,
  6. price DECIMAL(7,2) NOT NULL,
  7. create_timestamp BIGINT NOT NULL,
  8. modify_timestamp BIGINT NOT NULL,
  9. online_timestamp BIGINT NOT NULL
  10. );
  11.  
  12. CREATE INDEX ON products (categoryid);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement