Incam_PROFIND_Web/yii/framework/web/auth/schema-sqlite.sql
roberto 1e044b6498 Subida inicial.
Funciona:
- Usuario
- Empresa

git-svn-id: https://192.168.0.254/svn/Proyectos.Incam_PROFIND_Web/trunk@2 3fe1ab16-cfe0-e34b-8c9f-7d8c168d430d
2012-09-20 19:38:42 +00:00

43 lines
1.3 KiB
SQL

/**
* Database schema required by CDbAuthManager.
*
* @author Qiang Xue <qiang.xue@gmail.com>
* @link http://www.yiiframework.com/
* @copyright Copyright &copy; 2008 Yii Software LLC
* @license http://www.yiiframework.com/license/
* @since 1.0
*/
drop table if exists 'AuthAssignment';
drop table if exists 'AuthItemChild';
drop table if exists 'AuthItem';
create table 'AuthItem'
(
"name" varchar(64) not null,
"type" integer not null,
"description" text,
"bizrule" text,
"data" text,
primary key ("name")
);
create table 'AuthItemChild'
(
"parent" varchar(64) not null,
"child" varchar(64) not null,
primary key ("parent","child"),
foreign key ("parent") references 'AuthItem' ("name") on delete cascade on update cascade,
foreign key ("child") references 'AuthItem' ("name") on delete cascade on update cascade
);
create table 'AuthAssignment'
(
"itemname" varchar(64) not null,
"userid" varchar(64) not null,
"bizrule" text,
"data" text,
primary key ("itemname","userid"),
foreign key ("itemname") references 'AuthItem' ("name") on delete cascade on update cascade
);