芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/xmintal-back/vendor/yiisoft/yii2/rbac/migrations/schema-pgsql.sql
/** * Database schema required by \yii\rbac\DbManager. * * @author Qiang Xue
* @author Alexander Kochetov
* @link https://www.yiiframework.com/ * @copyright 2008 Yii Software LLC * @license https://www.yiiframework.com/license/ * @since 2.0 */ drop table if exists "auth_assignment"; drop table if exists "auth_item_child"; drop table if exists "auth_item"; drop table if exists "auth_rule"; create table "auth_rule" ( "name" varchar(64) not null, "data" bytea, "created_at" integer, "updated_at" integer, primary key ("name") ); create table "auth_item" ( "name" varchar(64) not null, "type" smallint not null, "description" text, "rule_name" varchar(64), "data" bytea, "created_at" integer, "updated_at" integer, primary key ("name"), foreign key ("rule_name") references "auth_rule" ("name") on delete set null on update cascade ); create index auth_item_type_idx on "auth_item" ("type"); create table "auth_item_child" ( "parent" varchar(64) not null, "child" varchar(64) not null, primary key ("parent","child"), foreign key ("parent") references "auth_item" ("name") on delete cascade on update cascade, foreign key ("child") references "auth_item" ("name") on delete cascade on update cascade ); create table "auth_assignment" ( "item_name" varchar(64) not null, "user_id" varchar(64) not null, "created_at" integer, primary key ("item_name","user_id"), foreign key ("item_name") references "auth_item" ("name") on delete cascade on update cascade ); create index auth_assignment_user_id_idx on "auth_assignment" ("user_id");