X-Git-Url: https://git.llucax.com/mecon/yatta.git/blobdiff_plain/de0d2712aeb708b7077beaaa2220d3e24d52ddfd..18e23f6b3d95afb8b10ac7523b88b881ac038923:/script/instalacion/generacion_base.sql?ds=inline diff --git a/script/instalacion/generacion_base.sql b/script/instalacion/generacion_base.sql index e6fad5c..e1ed403 100644 --- a/script/instalacion/generacion_base.sql +++ b/script/instalacion/generacion_base.sql @@ -1,43 +1,65 @@ --- MySQL dump 8.22 +-- MySQL dump 9.10 -- -- Host: bal747f Database: yatta ---------------------------------------------------------- +-- ------------------------------------------------------ -- Server version 4.0.12-log -use yatta; +-- +-- Current Database: yatta +-- + +CREATE DATABASE /*!32312 IF NOT EXISTS*/ yatta; + +USE yatta; + +-- +-- Table structure for table `cuotas` +-- + +DROP TABLE IF EXISTS cuotas; +CREATE TABLE cuotas ( + login varchar(20) NOT NULL default '', + cuota smallint(6) NOT NULL default '0', + PRIMARY KEY (login) +) TYPE=MyISAM; -- --- Table structure for table 'procesos' +-- Table structure for table `procesos` -- +DROP TABLE IF EXISTS procesos; CREATE TABLE procesos ( - id bigint(20) NOT NULL auto_increment, - fecha date NOT NULL, - script varchar(255) NOT NULL, - id_sistema bigint(20) NOT NULL, - descripcion text NOT NULL, - pid int(10) default NULL, - server int(10) default NULL, - status tinyint(1) default 0, - owner varchar(20) NOT NULL, - destinos varchar(255) default NULL, - prioridad tinyint(1) default 9, - scheduling varchar(50) default NULL, - notificar tinyint(1) default 1, - resultado varchar(255) default NULL, - archivo varchar(255) default NULL, - nota text default NULL, - PRIMARY KEY (id) + id bigint(20) NOT NULL auto_increment, + script varchar(255) NOT NULL default '', + id_sistema bigint(20) NOT NULL default '0', + descripcion text NOT NULL, + pid int(10) default NULL, + server int(10) default NULL, + status tinyint(1) default '0', + owner varchar(20) NOT NULL default '', + destinos varchar(255) default NULL, + prioridad tinyint(1) default '9', + scheduling varchar(50) default NULL, + notificar tinyint(1) default '1', + resultado varchar(255) default NULL, + archivo varchar(255) default NULL, + nota text, + fecha date NOT NULL default '0000-00-00', + activo int(1) default '1', + parametros text, + PRIMARY KEY (id) ) TYPE=MyISAM; -- --- Table structure for table 'servidores' +-- Table structure for table `servidores` -- +DROP TABLE IF EXISTS servidores; CREATE TABLE servidores ( - id int(10) NOT NULL auto_increment, - nombre varchar (20) NOT NULL, - escala tinyint(1) default 9, - procesos int(10) default 0, - PRIMARY KEY (id) + id int(10) NOT NULL auto_increment, + nombre varchar(20) NOT NULL default '', + escala int(11) default NULL, + procesos int(10) default '0', + PRIMARY KEY (id) ) TYPE=MyISAM; +