aboutsummaryrefslogtreecommitdiff
path: root/common/changelog/add-index.hxx
blob: 143864ae37165019559cd74fd59081e9097882bd (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-2015 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