aboutsummaryrefslogtreecommitdiff
path: root/common/changelog/add-table.hxx
blob: 23761d653296d87dd79bc8b4af6c66c7eef1b1c1 (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
// file      : common/changelog/add-table.hxx
// copyright : Copyright (c) 2009-2019 Code Synthesis Tools CC
// license   : GNU GPL v2; see accompanying LICENSE file

#ifndef ADD_TABLE_HXX
#define ADD_TABLE_HXX

#include <vector>

#pragma db model version(BVER, CVER, open)

struct object1;

#if CVER > 1
#pragma db object
struct object
{
  #pragma db id auto
  int id;
  int num;

  std::vector<int> nums;
  object1* o1;
};
#endif

#pragma db object
struct object1
{
  #pragma db id
  int id;
  int num;
};

#endif // ADD_TABLE_HXX