Skip to content

brunoocasali/java-twitter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twitter On Java

This app will be used to write an article to university.

  • Run in Terminal: Database codes.

~$ sudo -u postgres psql then type your password!

postgres=# CREATE DATABASE twitter_on_java; so you will created the database.

postgres=# \c twitter_on_java; enter on the database!

4° Create the table for tweets:

CREATE TABLE tweets(
	tweet_id BIGINT DEFAULT 0 NOT NULL PRIMARY KEY,
	screen_name VARCHAR(20) DEFAULT 'Person Name!' NOT NULL,
	user_id BIGINT DEFAULT 0 NOT NULL,
	created_at TIMESTAMP DEFAULT NOW(),
	text_tweet VARCHAR(140) DEFAULT 'Tweeet Teeextt!' NOT NULL,
	user_image VARCHAR(200) DEFAULT 'http://c.dryicons.com/images/icon_sets/symbolize_icons_set/png/64x64/user.png'
);

postgres=# \q You could exit!

About

This app will be used to write an article to university.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published