undo changes

This commit is contained in:
ogerly 2022-03-04 15:33:49 +01:00
parent 22c65aa929
commit c728b13f43
6 changed files with 35 additions and 35 deletions

File diff suppressed because one or more lines are too long

View File

@ -126,7 +126,7 @@ CREATE TABLE `state_created` (
CREATE TABLE `state_errors` (
`id` int(11) NOT NULL,
`state_user_id` int(11) NOT NULL,
`type_id` int(11) NOT NULL,
`transaction_type_id` int(11) NOT NULL,
`created` datetime NOT NULL,
`message_json` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
@ -194,7 +194,7 @@ CREATE TABLE `state_users` (
CREATE TABLE `transactions` (
`id` bigint(20) NOT NULL,
`group_id` int(11) NOT NULL,
`type_id` int(11) NOT NULL,
`transaction_type_id` int(11) NOT NULL,
`tx_hash` binary(32) NOT NULL,
`memo` varchar(255) COLLATE utf8_bin NOT NULL,
`received` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP

View File

@ -126,7 +126,7 @@ CREATE TABLE `state_created` (
CREATE TABLE `state_errors` (
`id` int(11) NOT NULL,
`state_user_id` int(11) NOT NULL,
`type_id` int(11) NOT NULL,
`transaction_type_id` int(11) NOT NULL,
`created` datetime NOT NULL,
`message_json` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
@ -194,7 +194,7 @@ CREATE TABLE `state_users` (
CREATE TABLE `transactions` (
`id` bigint(20) NOT NULL,
`group_id` int(11) NOT NULL,
`type_id` int(11) NOT NULL,
`transaction_type_id` int(11) NOT NULL,
`tx_hash` binary(32) NOT NULL,
`memo` varchar(255) COLLATE utf8_bin NOT NULL,
`received` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP

View File

@ -27,7 +27,7 @@ state_users
id index group_id public_key email first_name last_name
state_errors
id state_user_id type_id created message_json
id state_user_id transaction_type_id created message_json
state_balances
id state_user_id modified amount
@ -48,7 +48,7 @@ id transaction_id signature pubkey
transactions
int64
id state_group_id type_id tx_hash received
id state_group_id transaction_type_id tx_hash received
transaction_send_coins
id transaction_id state_user_id receiver_public receiver_user_id amount sender_final_balance

View File

@ -8,7 +8,7 @@ id transaction_id signature pubkey
transactions
int64
id group_id timestamp type_id hash received
id group_id timestamp transaction_type_id hash received
transaction_bins
id transaction_id filename start size
@ -16,5 +16,5 @@ id transaction_id filename start size
state_created
id transaction_id month year short_ident_hash
F<EFBFBD>r mehr Performance, jeweils eine transactions, transaction_bins und transaction_signatures
Für mehr Performance, jeweils eine transactions, transaction_bins und transaction_signatures
Tabelle pro Gruppe

View File

@ -2,7 +2,7 @@
CREATE TABLE `transactions` (
`id` bigint(20) NOT NULL,
`state_group_id` int(11) NOT NULL,
`type_id` int(11) NOT NULL,
`transaction_type_id` int(11) NOT NULL,
`tx_hash` binary(32) NOT NULL,
`received` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`)