sergAccount

Untitled

Feb 13th, 2021
2,685
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -- accounts
  2. CREATE TABLE accounts (
  3.     user_id serial PRIMARY KEY,
  4.     username VARCHAR ( 50 ) UNIQUE NOT NULL,
  5.     password VARCHAR ( 50 ) NOT NULL,
  6.     email VARCHAR ( 255 ) UNIQUE NOT NULL,
  7.     created_on TIMESTAMP NOT NULL,
  8.         last_login TIMESTAMP
  9. );
  10.  
  11.  
  12. INSERT INTO accounts
  13. (username, "password", email, created_on, last_login)
  14. VALUES('test1', 'test1', 'test@test.com', now(), NULL);
  15.  
  16. INSERT INTO accounts
  17. (username, "password", email, created_on, last_login)
  18. VALUES('test2', 'test1', 'test@test.com', now(), NULL);
  19.  
  20. SELECT * FROM accounts
  21.  
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×