add new tables and model/table empty files for them

This commit is contained in:
einhornimmond - MarkX 2020-08-25 12:59:34 +02:00 committed by Ulf Gebhardt
parent a0919dc6c3
commit ec1080c79f
No known key found for this signature in database
GPG Key ID: 81308EFE29ABFEBD
15 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,7 @@
CREATE TABLE `crypto_keys` (
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
`private_key` VARBINARY(64) NOT NULL,
`public_key` BINARY(32) NOT NULL,
`crypto_key_type_id` INT NOT NULL DEFAULT '0',
PRIMARY KEY (`id`)
) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4;

View File

@ -0,0 +1,7 @@
CREATE TABLE `groups` (
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
`alias` VARCHAR(255) NOT NULL,
`name` VARCHAR(255) NOT NULL,
`description` TEXT NULL DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4;

View File

@ -0,0 +1,9 @@
CREATE TABLE `hedera_accounts` (
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
`user_id` INT UNSIGNED NOT NULL,
`account_hedera_id` INT UNSIGNED NOT NULL,
`account_key_id` INT UNSIGNED NOT NULL,
`balance` BIGINT UNSIGNED NOT NULL DEFAULT '0',
`updated` TIMESTAMP on update CURRENT_TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4;

View File

@ -0,0 +1,7 @@
CREATE TABLE `hedera_ids` (
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
`shardNum` BIGINT NOT NULL DEFAULT '0',
`realmNum` BIGINT NOT NULL DEFAULT '0',
`num` BIGINT NOT NULL,
PRIMARY KEY (`id`)
) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4;

View File

@ -0,0 +1,13 @@
CREATE TABLE `hedera_topics` (
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
`topic_hedera_id` INT UNSIGNED NOT NULL,
`auto_renew_account_hedera_id` INT UNSIGNED NULL,
`auto_renew_period` INT UNSIGNED NOT NULL DEFAULT '0',
`group_id` INT UNSIGNED NOT NULL,
`admin_key_id` INT UNSIGNED NULL,
`submit_key_id` INT UNSIGNED NULL,
`current_timeout` BIGINT UNSIGNED NOT NULL DEFAULT '0',
`sequence_number` BIGINT UNSIGNED NULL DEFAULT '0',
`updated` TIMESTAMP on update CURRENT_TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)
) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4;

View File

View File

View File

View File

View File

View File

View File

View File

View File

View File