X-Git-Url: https://git.llucax.com/mecon/samurai.git/blobdiff_plain/6fc69c96ec6c616c137688e49a2d212a10367ca4..ada9c9b3fa3aeccab382ec98dd4a67609e63ac22:/script/SAMURAI_SQL_Dump.txt diff --git a/script/SAMURAI_SQL_Dump.txt b/script/SAMURAI_SQL_Dump.txt index 1cb5124..11eb457 100644 --- a/script/SAMURAI_SQL_Dump.txt +++ b/script/SAMURAI_SQL_Dump.txt @@ -8,7 +8,7 @@ --Creo la base de datos 'samurai' -- -CREATE DATABASE samurai; +--CREATE DATABASE samurai; use samurai; -- @@ -19,6 +19,7 @@ CREATE TABLE perfil ( id_perfil bigint(20) NOT NULL auto_increment, desc_perfil varchar(50) , tipo_perfil char(1), + fch_ult_modif timestamp, PRIMARY KEY (id_perfil) ); @@ -30,6 +31,7 @@ CREATE TABLE perfil ( CREATE TABLE perfil_sist ( id_perfil bigint(20) NOT NULL , id_sistema bigint(20) NOT NULL , + fch_ult_modif timestamp, PRIMARY KEY (id_perfil,id_sistema) ); @@ -42,6 +44,7 @@ CREATE TABLE perfil_sist_usuario ( login varchar(20) NOT NULL , id_perfil bigint(20) NOT NULL , id_sistema bigint(20) NOT NULL , + fch_ult_modif timestamp, PRIMARY KEY (login,id_perfil,id_sistema) ); @@ -54,6 +57,7 @@ CREATE TABLE perm_perfil_sist ( id_permiso bigint(20) NOT NULL , id_perfil bigint(20) NOT NULL , id_sistema bigint(20) NOT NULL , + fch_ult_modif timestamp, PRIMARY KEY (id_permiso,id_perfil,id_sistema) ); @@ -66,6 +70,7 @@ CREATE TABLE perm_sist ( id_permiso bigint(20) NOT NULL , id_sistema bigint(20) NOT NULL , observaciones varchar(255) , + fch_ult_modif timestamp, PRIMARY KEY (id_permiso,id_sistema) ); @@ -77,6 +82,7 @@ CREATE TABLE perm_sist ( CREATE TABLE permiso ( id_permiso bigint(20) NOT NULL auto_increment, desc_permiso varchar(50) , + fch_ult_modif timestamp, PRIMARY KEY (id_permiso) ); @@ -93,6 +99,7 @@ CREATE TABLE sistema ( fecha_fin date, fecha_implementacion date, contacto text, + fch_ult_modif timestamp, PRIMARY KEY (id_sistema) ); @@ -106,6 +113,7 @@ CREATE TABLE usuario ( nrodoc int(11) , nombre varchar(50) , fecha datetime , + fch_ult_modif timestamp, PRIMARY KEY (login) );