Is it possible to create a CFC model and use migra...
# box-products
d
Is it possible to create a CFC model and use migrations commands to create the table in the database?
not too along I started using Quick and so a common entity looks like this:
Copy code
component 
    extends="quick.models.BaseEntity" 
    datasource="webteam"
    table="GuessPrice"
    grammar="SqlServerGrammar@qb"
    accessors="true" {
    
    property name="id";
    property name="employeeid";
    property name="guess";
    property name="submittedon";
    
    this.constraints = {
        employeeid: {
            required: true,
            type: "numeric"
        },
        guess: {
            required: true,
            type: "numeric"
        }
    }; 
}
how sweet to be able to
commandbox> migrate up entity=Guess.cfc
I get the feeling some of you pro Boxers are already doing this.