3 -- Host: bal747f Database: samurai
4 ---------------------------------------------------------
5 -- Server version 4.0.12-log
8 -- Table structure for table 'perfil'
12 id_perfil bigint(20) NOT NULL auto_increment,
13 desc_perfil varchar(50) default NULL,
14 fch_ult_modif timestamp(14) NOT NULL,
15 responsable varchar(20) default NULL,
16 PRIMARY KEY (id_perfil),
17 UNIQUE KEY desc_perfil (desc_perfil)
21 -- Table structure for table 'perfil_seq'
24 CREATE TABLE perfil_seq (
25 id int(10) unsigned NOT NULL auto_increment,
30 -- Table structure for table 'perfil_sist'
33 CREATE TABLE perfil_sist (
34 id_perfil bigint(20) NOT NULL default '0',
35 id_sistema bigint(20) NOT NULL default '0',
36 fch_ult_modif timestamp(14) NOT NULL,
37 responsable varchar(20) default NULL,
38 tipo_perfil char(1) default NULL,
39 PRIMARY KEY (id_perfil,id_sistema)
43 -- Table structure for table 'perfil_sist_usuario'
46 CREATE TABLE perfil_sist_usuario (
47 login varchar(20) NOT NULL default '',
48 id_perfil bigint(20) NOT NULL default '0',
49 id_sistema bigint(20) NOT NULL default '0',
50 fch_ult_modif timestamp(14) NOT NULL,
51 responsable varchar(20) default NULL,
52 PRIMARY KEY (login,id_perfil,id_sistema)
56 -- Table structure for table 'perm_perfil_sist'
59 CREATE TABLE perm_perfil_sist (
60 id_permiso bigint(20) NOT NULL default '0',
61 id_perfil bigint(20) NOT NULL default '0',
62 id_sistema bigint(20) NOT NULL default '0',
63 fch_ult_modif timestamp(14) NOT NULL,
64 responsable varchar(20) default NULL,
65 observaciones varchar(255) NOT NULL default '',
66 PRIMARY KEY (id_permiso,id_perfil,id_sistema,observaciones)
70 -- Table structure for table 'perm_sist'
73 CREATE TABLE perm_sist (
74 id_permiso bigint(20) NOT NULL default '0',
75 id_sistema bigint(20) NOT NULL default '0',
76 observaciones varchar(255) NOT NULL default '',
77 fch_ult_modif timestamp(14) NOT NULL,
78 responsable varchar(20) default NULL,
79 PRIMARY KEY (id_permiso,id_sistema,observaciones)
83 -- Table structure for table 'permiso'
86 CREATE TABLE permiso (
87 id_permiso bigint(20) NOT NULL auto_increment,
88 desc_permiso varchar(50) default NULL,
89 fch_ult_modif timestamp(14) NOT NULL,
90 responsable varchar(20) default NULL,
91 PRIMARY KEY (id_permiso),
92 UNIQUE KEY desc_permiso (desc_permiso)
96 -- Table structure for table 'permiso_seq'
99 CREATE TABLE permiso_seq (
100 id int(10) unsigned NOT NULL auto_increment,
105 -- Table structure for table 'sistema'
108 CREATE TABLE sistema (
109 id_sistema bigint(20) NOT NULL auto_increment,
110 nombre_sistema varchar(50) default NULL,
112 fecha_inicio date default NULL,
113 fecha_fin date default NULL,
114 fecha_implementacion date default NULL,
116 fch_ult_modif timestamp(14) NOT NULL,
117 responsable varchar(20) default NULL,
118 estado tinyint(4) default NULL,
119 PRIMARY KEY (id_sistema),
120 UNIQUE KEY nombre_sistema (nombre_sistema)
124 -- Table structure for table 'sistema_seq'
127 CREATE TABLE sistema_seq (
128 id int(10) unsigned NOT NULL auto_increment,
133 -- Table structure for table 'usuario'
136 CREATE TABLE usuario (
137 login varchar(20) NOT NULL default '',
138 nrodoc int(11) default NULL,
139 nombre varchar(50) default NULL,
140 fch_ult_modif timestamp(14) NOT NULL,