Added file for holding table definitions
This commit is contained in:
parent
386e119326
commit
b3ab5a5865
3 changed files with 12 additions and 1 deletions
|
@ -4,3 +4,5 @@ pub use self::transaction::TransactionRecord;
|
||||||
|
|
||||||
pub mod connection;
|
pub mod connection;
|
||||||
pub use self::connection::DB;
|
pub use self::connection::DB;
|
||||||
|
|
||||||
|
pub mod tables;
|
||||||
|
|
9
src/db/tables/mod.rs
Normal file
9
src/db/tables/mod.rs
Normal 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,
|
||||||
|
}
|
|
@ -16,7 +16,7 @@ use ratatui::{
|
||||||
use recount::app::{App, AppResult};
|
use recount::app::{App, AppResult};
|
||||||
use recount::tui::Tui;
|
use recount::tui::Tui;
|
||||||
use recount::db::DB;
|
use recount::db::DB;
|
||||||
//use recount::db::transaction::TransactionRecord;
|
use recount::db::tables;
|
||||||
|
|
||||||
#[tokio::main]
|
#[tokio::main]
|
||||||
async fn main() -> AppResult<()> {
|
async fn main() -> AppResult<()> {
|
||||||
|
|
Loading…
Reference in a new issue