// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.
// Code generated by gorm.io/gen. DO NOT EDIT.

package model

import (
	"time"
)

const TableNameForm = "form"

// Form mapped from table <form>
type Form struct {
	ID        int64     `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
	FormID    string    `gorm:"column:form_id;not null" json:"form_id"`
	UID       string    `gorm:"column:uid;not null" json:"uid"`
	Topic     string    `gorm:"column:topic;not null" json:"topic"`
	Schema    JSON      `gorm:"column:schema;not null" json:"schema"`
	Values    JSON      `gorm:"column:values" json:"values"`
	Extra     JSON      `gorm:"column:extra" json:"extra"`
	State     FormState `gorm:"column:state;not null" json:"state"`
	CreatedAt time.Time `gorm:"column:created_at;not null" json:"created_at"`
	UpdatedAt time.Time `gorm:"column:updated_at;not null" json:"updated_at"`
}

// TableName Form's table name
func (*Form) TableName() string {
	return TableNameForm
}
