// Index run database migration, you should remove this method in your production environment.
Index run database migration, you should remove this method in your production environment.
// Index run database migration you should remove this method in your production environment .
func (Migrate) Index(c *gin.Context) {
	err := global.Ent().Schema.Create(
		context.Background(),
	)
	if err != nil {
		response.HandleEntError(c, err)
		return
	}
	response.OK(c, lang.Trans("message.success"))
}
func ( Migrate ) Index ( c * gin . Context ) { err := global . Ent ( ) . Schema . Create ( context . Background ( ) , ) if err != nil { response . HandleEntError ( c , err ) return } response . OK ( c , lang . Trans ( " " ) ) }
Index run database migration, you should remove this method in your production environment.
Index run database migration you should remove this method in your production environment .
// schema.WithDropColumn(true), // schema.WithDropIndex(true),