Open jflute opened 3 years ago
button candidates:
table.statement:
[FK name] [Index name] [PK name] [Unique name] [strict TableAlias]
column.statement:
[_FLG notNull] [_FLG type boolean] [_DATE type date] [_DATETIME type datetime] [strict ColumnAlias]
This is a requirement for first release.
; if tableName is $$ALL$$ then fkName is prefix:FK_$$table$$ => fkName means constraint name of foreign key
normal pattern: ; if tableName is $$ALL$$ then indexName is prefix:IX_$$table$$
if MySQL: ; if tableName is $$ALL$$ then indexName is prefix:IX$$table$$ or prefix:FK$$table$$ => MySQL automatically creates an index for a foreign key
; if columnName is suffix:_FLG then dbType is bit => MySQL meta data provides "bit" type even if boolean
; if columnName is suffix:_FLG then column is notNull => Let's avoid a three-valued boolean column.
; if columnName is suffix:_DATE then dbType is date => dbType means "column data type"
; if columnName is suffix:_DATETIME then dbType is datetime => dbType means "column data type"
reference
http://dbflute.seasar.org/ja/manual/reference/dfprop/schemapolicy/index.html#hyperexample
table.statement
FK, IX, PK, UQ
DB comment
choose one... "alias is $$tableName$$" ?
column.statement
FLG column
choose one... "_FLG is not null" or "dbType is bit" ?
DATE column
choose one... "_DATE is date" ?
comment
choose one... "alias is $$columnName$$" ?