oracle / quicksql

A library for generating DDL SQL and entity-relationship-diagrams from Quick SQL code
Universal Permissive License v1.0
53 stars 11 forks source link

/fk directive overrides INT data type to number #43

Closed dmcghan closed 9 months ago

dmcghan commented 9 months ago

This Quick SQL:

test
  foo_id int /nn /fk foo

Yields this SQL:

create table test (
    id        number generated by default on null as identity
              constraint test_id_pk primary key,
    foo_id    number
              constraint test_foo_id_fk
              references foo not null
);

Note that foo_id is a number, not an int as defined.

vadim-tropashko commented 9 months ago

1.2.1