|
Or you can use a more explicit definition by using an enumeration for the MySQL data.
activated enum ('1', '0') not null default '0'
That ensures that it could be only either 1 or 0 and if there's no specification it will just assume that the user is not active, in your case, but this isn't really necessary if you don't need it. It's just to make your SQL queries more straight to the point and possibly take less space.
|