MyBooks
globals.hpp
Go to the documentation of this file.
1 #ifndef GLOBALS_HPP
2 #define GLOBALS_HPP
3 #include <QString>
4 
7 #define APP_NAME "MyBooks"
8 
9 #define APP_VERSION "v1.3.04"
10 
13 typedef struct DB_Authors_record_type
14 { // one record for each unique author //
15  int ID;
16  QString FirstName;
17  QString LastName;
18  QString Notes;
20 
24 { // one record for each unique author //
25  int ID;
26  QString Media;
28 
29 typedef struct DB_Books_record_type
30 {
31  int ID;
32  int AuthKey;
33  int LoanedKey;
34  int MediaKey;
35  QString Title;
36  QString Notes;
37 } BooksRecord;
38 
39 #endif // GLOBALS_HPP
Definition: globals.hpp:23
Definition: globals.hpp:29
int LoanedKey
Foreign key to Authors table ID.
Definition: globals.hpp:33
QString Notes
Last Name of author.
Definition: globals.hpp:18
QString Notes
Actual title of book.
Definition: globals.hpp:36
Definition: globals.hpp:13
struct DB_Authors_record_type AuthorsRecord
QString Media
Primary Key INTEGER UNIQUE AUTOINCREMENT.
Definition: globals.hpp:26
QString LastName
First Name of author.
Definition: globals.hpp:17
QString FirstName
Primary Key INTEGER UNIQUE AUTOINCREMENT.
Definition: globals.hpp:16
struct DB_MediaType_record_type MediaTypeRecord
int ID
Definition: globals.hpp:25
QString Title
Foreign Key to MediaType records ID.
Definition: globals.hpp:35
int ID
Definition: globals.hpp:15
int AuthKey
Primary key INTEGER UNIQUE AUTOINCREMENT.
Definition: globals.hpp:32
int ID
Definition: globals.hpp:31
int MediaKey
Foreigh Key to Loaned book records in Loaned table ID.
Definition: globals.hpp:34
struct DB_Books_record_type BooksRecord