box-o-sand/oldstuff/RubyFun/cookbook/015/hodgepodge/db/dbinit.sql

15 lines
343 B
MySQL
Raw Normal View History

2011-08-11 00:54:15 +00:00
DROP TABLE IF EXISTS 'people';
CREATE TABLE 'people' (
'id' INTEGER PRIMARY KEY ASC AUTOINCREMENT,
'name' VARCHAR(255),
'email' VARCHAR(255)
);
2011-08-11 00:54:15 +00:00
DROP TABLE IF EXISTS 'users';
CREATE TABLE 'users' (
'id' INTEGER PRIMARY KEY ASC AUTOINCREMENT,
'username' VARCHAR(255) NOT NULL,
2011-08-11 00:54:15 +00:00
'hashed_password' VARCHAR(40) NOT NULL
);