Skip to content

Instantly share code, notes, and snippets.

@pedroelsner
Created May 24, 2012 02:29
Show Gist options
  • Save pedroelsner/2779087 to your computer and use it in GitHub Desktop.
Save pedroelsner/2779087 to your computer and use it in GitHub Desktop.
(SQL) Tabela Users - CakePHP 1.3 + AuthComponent
CREATE TABLE users (
id INT UNSIGNED NOT NULL AUTO_INCREMENT,
name VARCHAR(200) NOT NULL,
username VARCHAR(20) NOT NULL,
password VARCHAR(100) NOT NULL,
created DATETIME NULL,
modified DATETIME NULL,
active TINYINT(1) NOT NULL DEFAULT 1,
PRIMARY KEY(id),
UNIQUE(username)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment