blob: 6570e311c9b0da72e7df8195a7047e07fcdd2870 (
plain)
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
|
#ifndef INCLUDED_SCHEMA_H
#define INCLUDED_SCHEMA_H
#define SCHEMA_GROUP_COUNT 300
#define SCHEMA_SUBJECT_COUNT 9
#define SCHEMA_TEACHER_COUNT 100
#define SCHEMA_LAB_ASSIGNMENT_PER_GROUP_MIN_COUNT 15
#define SCHEMA_LAB_ASSIGNMENT_PER_GROUP_MAX_COUNT 25
#define SCHEMA_LAB_PER_SUBJECT_MIN_COUNT 30
#define SCHEMA_LAB_PER_SUBJECT_MAX_COUNT 100
#define SCHEMA_STUDENT_PER_GROUP_MIN_COUNT 15
#define SCHEMA_STUDENT_PER_GROUP_MAX_COUNT 30
#define SCHEMA_TEACHER_PER_LAB_ASSIGNMENT_MIN_COUNT 1
#define SCHEMA_TEACHER_PER_LAB_ASSIGNMENT_MAX_COUNT 5
#define SCHEMA_STUDENT_PER_LAB_MIN_COUNT 0
#define SCHEMA_STUDENT_PER_LAB_MAX_COUNT 3
enum tables {
TABLE_TEACHERS,
TABLE_SUBJECTS,
TABLE_GROUPS,
TABLE_STUDENTS,
TABLE_LABS,
TABLE_LAB_ASSIGNMENTS,
TABLE_LAB_ASSIGNMENTS_TEACHERS,
TABLE_STUDENTS_LAB_ASSIGNMENTS,
TABLE_COUNT
};
extern void drop_schema(void);
extern void create_schema (void);
extern void generate_tables(void);
extern void describe_schema (void);
#endif
|