name: testschema
desc: ""
tables:
- name: a
  type: ""
  comment: table a
  columns:
  - name: a
    type: INTEGER
    nullable: false
    default: null
    comment: column a
  - name: a2
    type: TEXT
    nullable: false
    default: null
    comment: column a2
  indexes:
  - name: PRIMARY KEY
    def: PRIMARY KEY(a)
    table: a
    columns:
    - a
    comment: ""
  constraints:
  - name: PRIMARY
    type: ""
    def: PRIMARY KEY (a)
    table: a
    referencedTable: null
    columns: []
    referencedColumns: []
    comment: ""
  triggers:
  - name: update_a_a2
    def: CREATE CONSTRAINT TRIGGER update_a_a2 AFTER INSERT OR UPDATE ON a
    comment: ""
  def: ""
  labels:
  - name: blue
    virtual: false
  - name: green
    virtual: true
- name: b
  type: ""
  comment: table b
  columns:
  - name: b
    type: INTEGER
    nullable: false
    default: null
    comment: column b
  - name: b2
    type: TEXT
    nullable: false
    default: null
    comment: column b2
  indexes: []
  constraints: []
  triggers: []
  def: ""
  labels:
  - name: red
    virtual: false
  - name: green
    virtual: true
relations:
- table: b
  columns:
  - b
  cardinality: One or more
  parentTable: a
  parentColumns:
  - a
  parentCardinality: Exactly one
  def: FOREIGN KEY (b) REFERENCES a(a)
  virtual: false
functions: []
driver:
  name: testdriver
  databaseVersion: 1.0.0
  meta: {}
viewpoints:
- name: table a b
  desc: select table a and b
  tables:
  - a
  - b
- name: label blue
  desc: select label blue
  labels:
  - blue
- name: label green
  desc: select label green
  labels:
  - green
  groups:
  - name: label red
    desc: select label red
    labels:
    - red
- name: table a label red
  desc: |-
    select table a and label red
    
    - table a
    - label red
  labels:
  - red
  tables:
  - a
