diff --git a/.idea/sqlDataSources.xml b/.idea/sqlDataSources.xml new file mode 100644 index 0000000..7bbc472 --- /dev/null +++ b/.idea/sqlDataSources.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/CMakeLists.txt b/CMakeLists.txt index 9f11c0d..888aee1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,6 +3,12 @@ project(budget) set(CMAKE_CXX_STANDARD 20) -add_executable(${PROJECT_NAME} src/main.cpp) +add_executable(${PROJECT_NAME} src/main.cpp + src/database/idatabase.h + src/DTO/account.h + src/DTO/transaction.h + src/DTO/receipt.h + src/DTO/plannedTransaction.h + src/DTO/dtoObject.h) target_link_libraries(${PROJECT_NAME} sqlite3) \ No newline at end of file diff --git a/src/DTO/account.h b/src/DTO/account.h new file mode 100644 index 0000000..faeadac --- /dev/null +++ b/src/DTO/account.h @@ -0,0 +1,17 @@ +// +// Created by quentin on 2/7/24. +// + +#ifndef BUDGET_ACCOUNT_H +#define BUDGET_ACCOUNT_H + +#include +#include "dtoObject.h" + +namespace Budget::DTO { + class Account : DTOObject { + }; +} + + +#endif //BUDGET_ACCOUNT_H diff --git a/src/DTO/dtoObject.h b/src/DTO/dtoObject.h new file mode 100644 index 0000000..271bb93 --- /dev/null +++ b/src/DTO/dtoObject.h @@ -0,0 +1,18 @@ +// +// Created by quentin on 2/7/24. +// + +#ifndef BUDGET_DTOOBJECT_H +#define BUDGET_DTOOBJECT_H + +#include +namespace Budget::DTO { + class DTOObject { + protected: + unsigned long long int id; + std::string updater; + unsigned long long int update_date; + }; +} + +#endif //BUDGET_DTOOBJECT_H diff --git a/src/DTO/plannedTransaction.h b/src/DTO/plannedTransaction.h new file mode 100644 index 0000000..65baa21 --- /dev/null +++ b/src/DTO/plannedTransaction.h @@ -0,0 +1,13 @@ +// +// Created by quentin on 2/7/24. +// + +#ifndef BUDGET_PLANNEDTRANSACTION_H +#define BUDGET_PLANNEDTRANSACTION_H + +namespace Budget::DTO { + class PlannedTransaction { + }; +} + +#endif //BUDGET_PLANNEDTRANSACTION_H diff --git a/src/DTO/receipt.h b/src/DTO/receipt.h new file mode 100644 index 0000000..4c1f127 --- /dev/null +++ b/src/DTO/receipt.h @@ -0,0 +1,14 @@ +// +// Created by quentin on 2/7/24. +// + +#ifndef BUDGET_RECEIPT_H +#define BUDGET_RECEIPT_H + +namespace Budget::DTO { + class Receipt { + + }; +} + +#endif //BUDGET_RECEIPT_H diff --git a/src/DTO/transaction.h b/src/DTO/transaction.h new file mode 100644 index 0000000..bc95041 --- /dev/null +++ b/src/DTO/transaction.h @@ -0,0 +1,14 @@ +// +// Created by quentin on 2/7/24. +// + +#ifndef BUDGET_TRANSACTION_H +#define BUDGET_TRANSACTION_H + +namespace Budget::DTO { + class Transaction { + + }; +} + +#endif //BUDGET_TRANSACTION_H diff --git a/src/database/idatabase.h b/src/database/idatabase.h new file mode 100644 index 0000000..f6b14c1 --- /dev/null +++ b/src/database/idatabase.h @@ -0,0 +1,14 @@ +// +// Created by quentin on 2/7/24. +// + +#ifndef BUDGET_IDATABASE_H +#define BUDGET_IDATABASE_H + +namespace Budget::Database { + class IDatabase { + + }; +} + +#endif //BUDGET_IDATABASE_H