// DropTables Drops All Model Database Tables
DropTables Drops All Model Database Tables
// DropTables Drops All Model Database Tables
func (m *Model) DropTables() error {
	if m.Drop {
		for _, v := range m.models {
			err := m.DropTable(v.Interface())
			if err != nil {
				fmt.Println("error", err)
				return err
			}
		}
		fmt.Println("Deleted")
	}
	return nil
}
func ( m * Model ) DropTables ( ) error { if m . Drop { for _ , v := range m . models { err := m . DropTable ( v . Interface ( ) ) if err != nil { fmt . Println ( " " , err ) return err } } fmt . Println ( " " ) } return nil }
DropTables Drops All Model Database Tables
DropTables Drops All Model Database Tables