// Code generated by entimport, DO NOT EDIT.

package schema

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

type Activity struct {
	ent.Schema
}

func (Activity) Fields() []ent.Field {
	return []ent.Field{field.Int("id").Comment("活动id"), field.String("name").Comment("活动名称"), field.Int("status").Comment("状态 1:待审核 2:审核驳回 3:已生效 4:已暂停 5:已作废 6:已失效"), field.String("code").Comment("活动编号"), field.Int("reseller_id").Comment("分销商id"), field.Int("key_quantity").Comment("key码数量"), field.Int("key_generate_quantity").Comment("key码已生成量"), field.Int("key_limit").Comment("key码兑换次数"), field.Int("key_style").Comment("key码样式 1:串码 2:链接 3:二维码"), field.Time("begin_time").Nillable().Comment("开始时间"), field.Time("end_time").Nillable().Comment("结束时间"), field.Time("create_time").Nillable().Comment("创建时间"), field.Time("discard_time").Optional().Comment("作废时间"), field.Time("update_time").Optional().Comment("修改时间"), field.Time("delete_time").Optional().Comment("删除时间")}
}
func (Activity) Edges() []ent.Edge {
	return nil
}
func (Activity) Annotations() []schema.Annotation {
	return []schema.Annotation{entsql.Annotation{Table: "activity"}}
}
