// Code generated by ent, DO NOT EDIT.

package migrate

import (
	"entgo.io/ent/dialect/sql/schema"
	"entgo.io/ent/schema/field"
)

var (
	// ReviewsColumns holds the columns for the "reviews" table.
	ReviewsColumns = []*schema.Column{
		{Name: "id", Type: field.TypeInt64, Increment: true},
		{Name: "order_id", Type: field.TypeInt64},
		{Name: "from_user_id", Type: field.TypeInt64},
		{Name: "from_user_name", Type: field.TypeString, Size: 100},
		{Name: "from_user_avatar", Type: field.TypeString, Nullable: true, Default: ""},
		{Name: "to_user_id", Type: field.TypeInt64},
		{Name: "rating", Type: field.TypeInt16},
		{Name: "content", Type: field.TypeString, Nullable: true, Default: ""},
		{Name: "sealed", Type: field.TypeBool, Default: true},
		{Name: "created_at", Type: field.TypeTime},
		{Name: "unsealed_at", Type: field.TypeTime, Nullable: true},
	}
	// ReviewsTable holds the schema information for the "reviews" table.
	ReviewsTable = &schema.Table{
		Name:       "reviews",
		Columns:    ReviewsColumns,
		PrimaryKey: []*schema.Column{ReviewsColumns[0]},
		Indexes: []*schema.Index{
			{
				Name:    "reviews_order_id_from_user_id",
				Unique:  true,
				Columns: []*schema.Column{ReviewsColumns[1], ReviewsColumns[2]},
			},
			{
				Name:    "reviews_order_id",
				Unique:  false,
				Columns: []*schema.Column{ReviewsColumns[1]},
			},
			{
				Name:    "reviews_to_user_id_created_at",
				Unique:  false,
				Columns: []*schema.Column{ReviewsColumns[5], ReviewsColumns[9]},
			},
			{
				Name:    "reviews_from_user_id",
				Unique:  false,
				Columns: []*schema.Column{ReviewsColumns[2]},
			},
		},
	}
	// Tables holds all the tables in the schema.
	Tables = []*schema.Table{
		ReviewsTable,
	}
)

func init() {
}
