Made message signing in Cryptography use SHA512 as the message content for... #1
2 changed files with 13 additions and 13 deletions
|
@ -1,18 +1,18 @@
|
||||||
create table authentication_passwords
|
create table authentication_otp
|
||||||
(
|
(
|
||||||
peer_uuid varchar(36) not null comment 'The primary unique index of the peer uuid'
|
peer_uuid varchar(36) not null comment 'The Peer UUID associated with this record'
|
||||||
primary key,
|
primary key comment 'The Peer UUID unique Index',
|
||||||
hash mediumtext not null comment 'The encrypted hash of the password',
|
secret mediumtext not null comment 'The encrypted secret for the OTP',
|
||||||
updated timestamp default current_timestamp() not null comment 'The Timestamp for when this record was last updated',
|
updated timestamp default current_timestamp() not null comment 'The Timestamp for when the record was last updated',
|
||||||
constraint authentication_passwords_peer_uuid_uindex
|
constraint authentication_otp_peer_uuid_uindex
|
||||||
unique (peer_uuid) comment 'The primary unique index of the peer uuid',
|
unique (peer_uuid) comment 'The Peer UUID unique Index',
|
||||||
constraint authentication_passwords_registered_peers_uuid_fk
|
constraint authentication_otp_registered_peers_uuid_fk
|
||||||
foreign key (peer_uuid) references peers (uuid)
|
foreign key (peer_uuid) references peers (uuid)
|
||||||
on update cascade on delete cascade
|
on update cascade on delete cascade
|
||||||
)
|
)
|
||||||
comment 'Table for housing authentication passwords for registered peers';
|
comment 'Table for housing encrypted OTP secrets for for verification';
|
||||||
|
|
||||||
create index authentication_passwords_updated_index
|
create index authentication_otp_updated_index
|
||||||
on authentication_passwords (updated)
|
on authentication_otp (updated)
|
||||||
comment 'The index of the of the updated column of the record';
|
comment 'The index for the updated column';
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@ create table authentication_passwords
|
||||||
constraint authentication_passwords_peer_uuid_uindex
|
constraint authentication_passwords_peer_uuid_uindex
|
||||||
unique (peer_uuid) comment 'The primary unique index of the peer uuid',
|
unique (peer_uuid) comment 'The primary unique index of the peer uuid',
|
||||||
constraint authentication_passwords_registered_peers_uuid_fk
|
constraint authentication_passwords_registered_peers_uuid_fk
|
||||||
foreign key (peer_uuid) references registered_peers (uuid)
|
foreign key (peer_uuid) references peers (uuid)
|
||||||
on update cascade on delete cascade
|
on update cascade on delete cascade
|
||||||
)
|
)
|
||||||
comment 'Table for housing authentication passwords for registered peers';
|
comment 'Table for housing authentication passwords for registered peers';
|
||||||
|
|
Loading…
Add table
Reference in a new issue