Skip to content

Commit

Permalink
add schema tables
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgeantonio21 committed Aug 8, 2022
1 parent 8ba2ce6 commit 2ee62d9
Showing 1 changed file with 34 additions and 1 deletion.
35 changes: 34 additions & 1 deletion base_layer/wallet/src/schema.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
// Copyright 2020. The Tari Project
//
// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
// following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following
// disclaimer.
//
// 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
// following disclaimer in the documentation and/or other materials provided with the distribution.
//
// 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote
// products derived from this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
// INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
// WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
// USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

table! {
client_key_values (key) {
key -> Text,
Expand Down Expand Up @@ -64,6 +86,16 @@ table! {
}
}

table! {
key_manager_states_old (id) {
id -> Integer,
seed -> Binary,
branch_seed -> Text,
primary_key_index -> BigInt,
timestamp -> Timestamp,
}
}

table! {
known_one_sided_payment_scripts (script_hash) {
script_hash -> Binary,
Expand Down Expand Up @@ -125,7 +157,7 @@ table! {
mined_timestamp -> Nullable<Timestamp>,
encrypted_value -> Binary,
contract_id -> Nullable<Binary>,
minimum_value_precision -> BigInt,
minimum_value_promise -> BigInt,
}
}

Expand All @@ -152,6 +184,7 @@ allow_tables_to_appear_in_same_query!(
contacts,
inbound_transactions,
key_manager_states,
key_manager_states_old,
known_one_sided_payment_scripts,
outbound_transactions,
outputs,
Expand Down

0 comments on commit 2ee62d9

Please sign in to comment.