Skip to content
Myr

schema.sql

This file

Path

examples/minitwit/schema.sql

21 lines · 439 bytes · SQL

Last changed by

Not known.

History of this file

Take it

The walk stopped after 200 commits: lines older than 3fdcefb point at it.

Merge pull request #625 from soulseekah/masterKenneth Reitzbefore adoption3fdcefb

lines 1–21why, one step back
1drop table if exists user;
2create table user (3 user_id integer primary key autoincrement,4 username text not null,5 email text not null,6 pw_hash text not null7);89drop table if exists follower;10create table follower (11 who_id integer,12 whom_id integer13);1415drop table if exists message;16create table message (17 message_id integer primary key autoincrement,18 author_id integer not null,19 text text not null,20 pub_date integer21);