blob: 9163cffdd3f00cc6c73c6d03cdee83806eb2c75e (
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
|
// file : common/changelog/add-index.hxx
// copyright : Copyright (c) 2009-2013 Code Synthesis Tools CC
// 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
|