You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: example_soft_delete_test.go
    path of file: ./repos/pg
    
    the code of the file until where you have to start completion: package pg_test

import (
	"fmt"
	"time"

	"github.com/go-pg/pg/v10/types"
)

type CustomTime struct {
	Time time.Time
}

var _ types.ValueScanner = (*CustomTime)(nil)

func (tm *CustomTime) ScanValue(rd types.Reader, n int) error {
	var err error
	tm.Time, err = types.ScanTime(rd, n)
	return err
}

var _ types.ValueAppender = (*CustomTime)(nil)

func (tm *CustomTime) AppendValue(b []byte, flags int) ([]byte, error) {
	return types.AppendTime(b, tm.Time, flags), nil
}

type Video struct {
	Id        int
	Nam
    
func ExampleDB_Model_softDeleteCustom() {
	video1 := &Video{
		Id: 1,
	}
	_, err := pgdb.Model(video1).Insert()
	panicIf(err)

	// Soft delete.
	_, err = pgdb.Model(video1).WherePK().Delete()
	panicIf(err)

	// Count visible videos.
	count, err := pgdb.Model((*Video)(nil)).Count()
	panicIf(err)
	fmt.Println("count", count)

	// Count soft deleted videos.
	deletedCount, err := pgdb.Model((*Video)(nil)).Deleted().Count()
	panicIf(err)
	fmt.Println("deleted count", deletedCount)

	// Actually delete the video.
	_, err = pgdb.Model(video1).WherePK().ForceDelete()
	panicIf(err)

	// Count soft deleted videos.
	deletedCount, err = pgdb.Model((*Video)(nil)).Deleted().Count()
	panicIf(err)
	fmt.Println("deleted count", deletedCount)

	// Output: count 0
	// deleted count 1
	// deleted count 0
}