Added file for holding table definitions

This commit is contained in:
Nickiel12 2023-08-11 10:15:59 -07:00
parent 386e119326
commit b3ab5a5865
3 changed files with 12 additions and 1 deletions

View file

@ -4,3 +4,5 @@ pub use self::transaction::TransactionRecord;
pub mod connection;
pub use self::connection::DB;
pub mod tables;

9
src/db/tables/mod.rs Normal file
View file

@ -0,0 +1,9 @@
use sqlx::FromRow;
#[derive(Clone, FromRow)]
pub struct Account {
pub acnt_id: i32,
pub acnt_dsply_name: String,
pub acnt_description: String,
}

View file

@ -16,7 +16,7 @@ use ratatui::{
use recount::app::{App, AppResult};
use recount::tui::Tui;
use recount::db::DB;
//use recount::db::transaction::TransactionRecord;
use recount::db::tables;
#[tokio::main]
async fn main() -> AppResult<()> {