sqlite database setup

This commit is contained in:
2026-08-03 22:31:41 -05:00
parent d87b2e3730
commit ac433870c2
5 changed files with 80 additions and 20 deletions

View File

@@ -1,10 +1,11 @@
#pragma once
#include <string>
#include <vector>
class CritterEvent {
public:
int id;
int critter_id;
std::string name;
std::string date;
std::string time;
@@ -13,23 +14,21 @@ class CritterEvent {
class CritterDocument {
public:
int id;
int critter_id;
std::string name;
std::string doc_type;
std::string cached_path;
};
class Critter {
enum Sex {Male, Female};
public:
int id;
std::string name;
Sex sex;
std::string birthdate;
Critter *mother;
Critter *father;
std::vector<Critter*> children;
std::string notes;
std::vector<CritterEvent> events;
std::vector<CritterDocument> documents;
};
int mother_id;
int father_id;
std::string gender;
std::string species;
};