Module Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Raise Call NameLoad Str Expr Call NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body With Call NameLoad NameLoad Str body Pass Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad With Call NameLoad NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad If Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str ListLoad TupleLoad Str BinOpMod Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body If Call AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr Str orelse Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str If NameLoad body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Return NameLoad decorator_list decorator_list
N/A N/A os N/A inflection cleo Command stubs MODEL_DEFAULT_STUB utils mkdir_p ModelMakeCommand N/A Command N/A N/A 
    Creates a new Model class.

    make:model
        {name : The name of the model to create.}
        {--m|migration : Create a new migration file for the model.}
        {--p|path= : Path to models directory}
     handle N/A N/A self N/A N/A N/A name N/A N/A self argument name N/A singular N/A N/A inflection singularize N/A N/A inflection tableize name N/A directory N/A N/A self _get_path N/A filepath N/A N/A self _get_path N/A singular .py N/A N/A N/A N/A os path exists filepath N/A N/A N/A RuntimeError The model file already exists. N/A N/A mkdir_p directory N/A parent N/A N/A N/A os path join directory __init__.py N/A N/A N/A N/A N/A os path exists parent N/A N/A N/A open parent w N/A N/A N/A stub N/A N/A self _get_stub N/A stub N/A N/A self _populate_stub name stub N/A N/A open filepath w f N/A N/A N/A N/A f write stub N/A N/A N/A self info N/A Model <comment>%s</> successfully created. name N/A N/A N/A self option migration N/A N/A table N/A N/A inflection tableize name N/A N/A N/A self call make:migration N/A N/A name N/A create_%s_table table N/A --table table N/A --create True N/A _get_stub N/A N/A self N/A N/A N/A 
        Get the model stub template

        :rtype: str
         N/A MODEL_DEFAULT_STUB N/A _populate_stub N/A N/A self name stub N/A N/A N/A 
        Populate the placeholders in the migration stub.

        :param name: The name of the model
        :type name: str

        :param stub: The stub
        :type stub: str

        :rtype: str
         N/A stub N/A N/A stub replace DummyClass name N/A stub N/A _get_path N/A N/A self name N/A None N/A N/A N/A N/A self option path N/A N/A directory N/A N/A self option path N/A N/A directory N/A N/A N/A os path join N/A N/A os getcwd models N/A name N/A N/A N/A N/A N/A os path join directory name N/A directory N/A N/A