blob: 645cee2a55ef2018856aace5c79faee650a7fb9f (
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
|
// file : common/changelog/add-index.hxx
// license : GNU GPL v2; see accompanying LICENSE file
#ifndef ADD_INDEX_HXX
#define ADD_INDEX_HXX
#pragma db model version(BVER, CVER, open)
#pragma db object
struct object
{
#pragma db id auto
int id;
int x;
#if CVER > 1
int y;
#pragma db index ("xy_i") unique member(x) member(y, "DESC")
#endif
};
#endif // ADD_INDEX_HXX
|