-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create Basic DataBase. Fixing DataBaseCommon.pp
- Loading branch information
1 parent
162bcfe
commit a832645
Showing
6 changed files
with
126 additions
and
128 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#pragma once | ||
|
||
#include <vector> | ||
#include <string> | ||
|
||
namespace dataBase::common | ||
{ | ||
|
||
static constexpr char dataBasePath[] = "../../../source/dataBase/password-manager.db"; | ||
static constexpr char users[] = "Users"; | ||
static constexpr char passwords[] = "Passwords"; | ||
static constexpr char passwordHistory[] = "PasswordHistory"; | ||
static constexpr char categories[] = "Categories"; | ||
|
||
static const std::vector<std::string> userRecordsRecords{"Username", "Password"}; | ||
static const std::vector<std::string> categoriesRecords{"Category"}; | ||
static const std::vector<std::string> passwordHistoryRecords{"Creation_Time", "Modify_Time", "Expiry_Time"}; | ||
static const std::vector<std::string> passwordRecords{ | ||
"User_Id", "Category_Id", "Title", "Username", "Password", "Note", "Url"}; | ||
}; |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters