Permalink
Browse files

SQL Scripts (first steps)

  • Loading branch information...
1 parent 76464eb commit bc3df1b53ff602de5ac9bf28d650aadc9009392e @Artazor Artazor committed May 15, 2012
Showing with 23 additions and 0 deletions.
  1. +1 −0 sql/scripts/.htaccess
  2. +22 −0 sql/scripts/common.sql
View
@@ -0,0 +1 @@
+deny from all
View
@@ -0,0 +1,22 @@
+create table roles (
+ role varchar(64) not null primary key,
+ role_args text not null
+) engine InnoDB, default charset = utf8, collate = utf8_unicode_ci;
+
+create table user_roles (
+ login varchar(64) not null,
+ role varchar(64) not null,
+ primary key(login, role),
+ role_args text not null
+) engine InnoDB, default charset = utf8, collate = utf8_unicode_ci;
+
+create table users (
+ login varchar(64) primary key,
+ first_name varchar(255) not null,
+ last_name varchar(255) not null,
+ email varchar(255) not null,
+ admin tinyint(1) not null default 0,
+ active tinyint(1) not null default 0,
+ activation_key varchar(255) not null,
+ password varchar(40) not null
+) engine InnoDB, default charset = utf8, collate = utf8_unicode_ci;

0 comments on commit bc3df1b

Please sign in to comment.