Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for additional model field types and arrays #1167

Open
wants to merge 16 commits into
base: master
Choose a base branch
from

Conversation

kaplanelad
Copy link
Contributor

@kaplanelad kaplanelad commented Jan 10, 2025

Add support for additional model field types and arrays. #1099.

Adding more fields:

  • tiny_unsigned
  • small_unsigned
  • unsigned
  • big_unsigned
  • date_time
  • binary
  • var_binary
  • varbit_len

Arrays:

  • string
  • text
  • char
  • float
  • int
  • small_int
  • big_int
  • double
  • boolean

model command:

cargo loco generate model array_string option:array:string mandatory:array!:string should_unique:array^:string
cargo loco generate model array_text option:array:text mandatory:array!:text should_unique:array^:text
cargo loco generate model array_char option:array:char mandatory:array!:char should_unique:array^:char
cargo loco generate model array_float option:array:float mandatory:array!:float should_unique:array^:float
cargo loco generate model array_int option:array:int mandatory:array!:int should_unique:array^:int
cargo loco generate model array_small_int option:array:small_int mandatory:array!:small_int should_unique:array^:small_int
cargo loco generate model array_big_int option:array:big_int mandatory:array!:big_int should_unique:array^:big_int
cargo loco generate model array_double option:array:double mandatory:array!:double should_unique:array^:double
cargo loco generate model array_boolean option:array:boolean mandatory:array!:boolean should_unique:array^:boolean

scaffold commands:

cargo loco generate scaffold array_string_scaffold option:array:string mandatory:array!:string should_unique:array^:string --api
cargo loco generate scaffold array_text_scaffold option:array:text mandatory:array!:text should_unique:array^:text --api
cargo loco generate scaffold array_char_scaffold option:array:char mandatory:array!:char should_unique:array^:char --api
cargo loco generate scaffold array_float_scaffold option:array:float mandatory:array!:float should_unique:array^:float --api
cargo loco generate scaffold array_int_scaffold option:array:int mandatory:array!:int should_unique:array^:int --api
cargo loco generate scaffold array_small_int_scaffold option:array:small_int mandatory:array!:small_int should_unique:array^:small_int --api
cargo loco generate scaffold array_big_int_scaffold option:array:big_int mandatory:array!:big_int should_unique:array^:big_int --api
cargo loco generate scaffold array_double_scaffold option:array:double mandatory:array!:double should_unique:array^:double --api
cargo loco generate scaffold array_boolean_scaffold option:array:boolean mandatory:array!:boolean should_unique:array^:boolean --api

Update docs:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant