-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdbStructures.h
More file actions
40 lines (34 loc) · 712 Bytes
/
Copy pathdbStructures.h
File metadata and controls
40 lines (34 loc) · 712 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef DATABASES_DBSTRUCTURES_H
#define DATABASES_DBSTRUCTURES_H
#define MAX_RECORDS_AMOUNT 20
#include <stdbool.h>
#pragma pack(1)
typedef struct shop {
int id;
char address[70];
int employeeId;
bool isActive;
} shop;
#pragma pack(1)
typedef struct employee {
int id;
char firstName[30];
char lastName[30];
int prevColleagueId;
int nextColleagueId;
int shopId;
bool isActive;
} employee;
#pragma pack(1)
typedef struct keyIndex {
int key;
unsigned long address;
} keyIndex;
#pragma pack(1)
typedef struct trashKeys {
int shopsAmount;
int employeesAmount;
bool shops[MAX_RECORDS_AMOUNT];
bool employees[MAX_RECORDS_AMOUNT];
} trashZone;
#endif // DATABASES_DBSTRUCTURES_H