sdec-brasil / old-dashboard

Painel de Controle Público do SDEC
MIT License
3 stars 0 forks source link

Table: datadir #22

Closed tloriato closed 5 years ago

tloriato commented 5 years ago

Reference #6

Original Abe:

DROP TABLE IF EXISTS `datadir`;

CREATE TABLE `datadir` (
  `datadir_id` decimal(10,0) NOT NULL,
  `dirname` varchar(2000) NOT NULL,
  `blkfile_number` decimal(8,0) DEFAULT NULL,
  `blkfile_offset` decimal(20,0) DEFAULT NULL,
  `chain_id` decimal(10,0) DEFAULT NULL,
  PRIMARY KEY (`datadir_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

Sequelize:

DROP TABLE IF EXISTS `datadir`;

CREATE TABLE `datadir` (
  `datadir_id` double NOT NULL,
  `dirname` varchar(2000) NOT NULL,
  `blkfile_number` double DEFAULT NULL,
  `blkfile_offset` double DEFAULT NULL,
  `chain_id` double DEFAULT NULL,
  `created_at` datetime NOT NULL,
  `updated_at` datetime NOT NULL,
  PRIMARY KEY (`datadir_id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;