models

package
v0.0.0-...-389aca2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 15, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ActiveUser string
View Source
var DbConnection *gorm.DB
View Source
var OpenDB *gorm.DB

Functions

func DbConnect

func DbConnect() (*sql.DB, *gorm.DB, error)

func GetColumnName

func GetColumnName(db *gorm.DB, model []interface{}) *gorm.DB

get Columns Name from Model

Types

type BakuJudgeScoreModel

type BakuJudgeScoreModel struct {
	ID           string     `gorm:"column:id;primary_key" json:"id"`
	JadwalBakuID NullString `gorm:"column:jadwal_baku_id" json:"jadwal_baku_id"`
	JuriID       NullString `gorm:"column:juri_id" json:"juri_id"`
	Jurus1       NullString `gorm:"column:jurus1;default:0" json:"jurus1"`
	Jurus2       NullString `gorm:"column:jurus2;default:0" json:"jurus2"`
	Jurus3       NullString `gorm:"column:jurus3;default:0" json:"jurus3"`
	Jurus4       NullString `gorm:"column:jurus4;default:0" json:"jurus4"`
	Jurus5       NullString `gorm:"column:jurus5;default:0" json:"jurus5"`
	Jurus6       NullString `gorm:"column:jurus6;default:0" json:"jurus6"`
	Jurus7       NullString `gorm:"column:jurus7;default:0" json:"jurus7"`
	Jurus8       NullString `gorm:"column:jurus8;default:0" json:"jurus8"`
	Jurus9       NullString `gorm:"column:jurus9;default:0" json:"jurus9"`
	Jurus10      NullString `gorm:"column:jurus10;default:0" json:"jurus10"`
	Jurus11      NullString `gorm:"column:jurus11;default:0" json:"jurus11"`
	Agility      NullString `gorm:"column:agility;default:0" json:"agility"`
	TimePenalty  NullString `gorm:"column:time_penalty" json:"time_penalty"`
	DressPenalty NullString `gorm:"column:dress_penalty" json:"dress_penalty"`
	CreatedAt    *time.Time `gorm:"column:created_at" json:"created_at"`
	CreatedBy    NullString `gorm:"column:created_by" json:"created_by"`
	UpdatedAt    *time.Time `gorm:"column:updated_at" json:"updated_at"`
	UpdatedBy    NullString `gorm:"column:updated_by" json:"updated_by"`
}

func (*BakuJudgeScoreModel) AfterCreate

func (p *BakuJudgeScoreModel) AfterCreate(tx *gorm.DB) (err error)

func (*BakuJudgeScoreModel) BeforeCreate

func (p *BakuJudgeScoreModel) BeforeCreate(tx *gorm.DB) (err error)

func (*BakuJudgeScoreModel) BeforeDelete

func (p *BakuJudgeScoreModel) BeforeDelete(tx *gorm.DB) (err error)

func (*BakuJudgeScoreModel) BeforeUpdate

func (p *BakuJudgeScoreModel) BeforeUpdate(tx *gorm.DB) (err error)

func (*BakuJudgeScoreModel) TableName

func (p *BakuJudgeScoreModel) TableName() string

type GandaDewanScoreModel

type GandaDewanScoreModel struct {
	ID          string     `gorm:"column:id;primary_key" json:"id"`
	JadwalTgrID NullString `gorm:"column:jadwal_tgr_id" json:"jadwal_tgr_id"`
	Time        NullString `gorm:"column:time;default:0" json:"time"`
	Drop        NullString `gorm:"column:drop;default:0" json:"drop"`
	FallOut     NullString `gorm:"column:fall_out;default:0" json:"fall_out"`
	Hold        NullString `gorm:"column:hold;default:0" json:"hold"`
	OutArena    NullString `gorm:"column:out_arena;default:0" json:"out_arena"`
	Dress       NullString `gorm:"column:dress;default:0" json:"dress"`
	Voice       NullString `gorm:"column:voice;default:0" json:"voice"`
	CreatedAt   *time.Time `gorm:"column:created_at" json:"created_at"`
	CreatedBy   NullString `gorm:"column:created_by" json:"created_by"`
	UpdatedAt   *time.Time `gorm:"column:updated_at" json:"updated_at"`
	UpdatedBy   NullString `gorm:"column:updated_by" json:"updated_by"`
}

func (*GandaDewanScoreModel) AfterCreate

func (p *GandaDewanScoreModel) AfterCreate(tx *gorm.DB) (err error)

func (*GandaDewanScoreModel) BeforeCreate

func (p *GandaDewanScoreModel) BeforeCreate(tx *gorm.DB) (err error)

func (*GandaDewanScoreModel) BeforeDelete

func (p *GandaDewanScoreModel) BeforeDelete(tx *gorm.DB) (err error)

func (*GandaDewanScoreModel) BeforeUpdate

func (p *GandaDewanScoreModel) BeforeUpdate(tx *gorm.DB) (err error)

func (*GandaDewanScoreModel) TableName

func (p *GandaDewanScoreModel) TableName() string

type GandaJudgeScoreModel

type GandaJudgeScoreModel struct {
	ID          string     `gorm:"column:id;primary_key" json:"id"`
	JadwalTgrID NullString `gorm:"column:jadwal_tgr_id" json:"jadwal_tgr_id"`
	JuriID      NullString `gorm:"column:juri_id" json:"juri_id"`
	SerangBela  NullString `gorm:"column:serang_bela;default:0" json:"serang_bela"`
	Kompak      NullString `gorm:"column:kompak;default:0" json:"kompak"`
	Hayat       NullString `gorm:"column:hayat;default:0" json:"hayat"`
	CreatedAt   *time.Time `gorm:"column:created_at" json:"created_at"`
	CreatedBy   NullString `gorm:"column:created_by" json:"created_by"`
	UpdatedAt   *time.Time `gorm:"column:updated_at" json:"updated_at"`
	UpdatedBy   NullString `gorm:"column:updated_by" json:"updated_by"`
}

func (*GandaJudgeScoreModel) AfterCreate

func (p *GandaJudgeScoreModel) AfterCreate(tx *gorm.DB) (err error)

func (*GandaJudgeScoreModel) BeforeCreate

func (p *GandaJudgeScoreModel) BeforeCreate(tx *gorm.DB) (err error)

func (*GandaJudgeScoreModel) BeforeDelete

func (p *GandaJudgeScoreModel) BeforeDelete(tx *gorm.DB) (err error)

func (*GandaJudgeScoreModel) BeforeUpdate

func (p *GandaJudgeScoreModel) BeforeUpdate(tx *gorm.DB) (err error)

func (*GandaJudgeScoreModel) TableName

func (p *GandaJudgeScoreModel) TableName() string

type JadwalJurusBakuModel

type JadwalJurusBakuModel struct {
	ID            string     `gorm:"column:id;primary_key" json:"id"`
	Partai        NullString `gorm:"column:partai" json:"partai"`
	Arena         int        `gorm:"column:arena" json:"arena"`
	Corner        int        `gorm:"column:corner" json:"corner"`
	Cualification int        `gorm:"column:cualification" json:"cualification"`
	Contingent    NullString `gorm:"column:contingent" json:"contingent"`
	EventID       NullString `gorm:"column:event_id" json:"event_id"`
	KategoriID    NullString `gorm:"column:kategori_id" json:"kategori_id"`
	GenderID      NullString `gorm:"column:gender_id" json:"gender_id"`
	CreatedAt     *time.Time `gorm:"column:created_at" json:"created_at"`
	CreatedBy     NullString `gorm:"column:created_by" json:"created_by"`
	UpdatedAt     *time.Time `gorm:"column:updated_at" json:"updated_at"`
	UpdatedBy     NullString `gorm:"column:updated_by" json:"updated_by"`
}

func (*JadwalJurusBakuModel) AfterCreate

func (p *JadwalJurusBakuModel) AfterCreate(tx *gorm.DB) (err error)

func (*JadwalJurusBakuModel) BeforeCreate

func (p *JadwalJurusBakuModel) BeforeCreate(tx *gorm.DB) (err error)

func (*JadwalJurusBakuModel) BeforeDelete

func (p *JadwalJurusBakuModel) BeforeDelete(tx *gorm.DB) (err error)

func (*JadwalJurusBakuModel) BeforeUpdate

func (p *JadwalJurusBakuModel) BeforeUpdate(tx *gorm.DB) (err error)

func (*JadwalJurusBakuModel) TableName

func (p *JadwalJurusBakuModel) TableName() string

type JadwalTandingModel

type JadwalTandingModel struct {
	ID             string     `gorm:"column:id;primary_key" json:"id"`
	EventID        NullString `gorm:"column:event_id" json:"event_id"`
	Partai         NullString `gorm:"column:partai" json:"partai"`
	Arena          int        `gorm:"column:arena;default:null" json:"arena"`
	RedCorner      NullString `gorm:"column:red_corner" json:"red_corner"`
	BlueCorner     NullString `gorm:"column:blue_corner" json:"blue_corner"`
	ContingentRed  NullString `gorm:"column:contingent_red" json:"contingent_red"`
	ContingentBlue NullString `gorm:"column:contingent_blue" json:"contingent_blue"`
	KelasID        NullString `gorm:"column:kelas_id" json:"kelas_id"`
	GolonganID     NullString `gorm:"column:golongan_id" json:"golongan_id"`
	GenderID       NullString `gorm:"column:gender_id" json:"gender_id"`
	Status         int        `gorm:"column:status;default:0" json:"status"`
	Score          NullString `gorm:"column:score" json:"score"`
	WinBy          int        `gorm:"column:win_by;default:null" json:"win_by"`
	Winner         int        `gorm:"column:winner;default:null" json:"winner"`
	Round          int        `gorm:"column:round;default:0" json:"round"`
	Cualification  int        `gorm:"column:cualification;default:null" json:"cualification"`
	Inc            int        `gorm:"<-:false;column:inc" json:"inc"`
	CreatedAt      *time.Time `gorm:"column:created_at" json:"created_at"`
	CreatedBy      NullString `gorm:"column:created_by" json:"created_by"`
	UpdatedAt      *time.Time `gorm:"column:updated_at" json:"updated_at"`
	UpdatedBy      NullString `gorm:"column:updated_by" json:"updated_by"`
}

func (*JadwalTandingModel) AfterCreate

func (p *JadwalTandingModel) AfterCreate(tx *gorm.DB) (err error)

func (*JadwalTandingModel) BeforeCreate

func (p *JadwalTandingModel) BeforeCreate(tx *gorm.DB) (err error)

func (*JadwalTandingModel) BeforeDelete

func (p *JadwalTandingModel) BeforeDelete(tx *gorm.DB) (err error)

func (*JadwalTandingModel) BeforeUpdate

func (p *JadwalTandingModel) BeforeUpdate(tx *gorm.DB) (err error)

func (*JadwalTandingModel) TableName

func (p *JadwalTandingModel) TableName() string

type JadwalTgrModel

type JadwalTgrModel struct {
	ID              string     `gorm:"column:id;primary_key" json:"id"`
	Partai          NullString `gorm:"column:partai" json:"partai"`
	Arena           int        `gorm:"column:arena" json:"arena"`
	Corner          int        `gorm:"column:corner" json:"corner"`
	Cualification   int        `gorm:"column:cualification" json:"cualification"`
	Contingent      NullString `gorm:"column:contingent" json:"contingent"`
	EventID         NullString `gorm:"column:event_id" json:"event_id"`
	KategoriID      NullString `gorm:"column:kategori_id" json:"kategori_id"`
	GolonganID      NullString `gorm:"column:golongan_id" json:"golongan_id"`
	GenderID        NullString `gorm:"column:gender_id" json:"gender_id"`
	PesertaUniqueID NullString `gorm:"column:peserta_unique_id" json:"peserta_unique_id"`
	CreatedAt       *time.Time `gorm:"column:created_at" json:"created_at"`
	CreatedBy       NullString `gorm:"column:created_by" json:"created_by"`
	UpdatedAt       *time.Time `gorm:"column:updated_at" json:"updated_at"`
	UpdatedBy       NullString `gorm:"column:updated_by" json:"updated_by"`
}

func (*JadwalTgrModel) AfterCreate

func (p *JadwalTgrModel) AfterCreate(tx *gorm.DB) (err error)

func (*JadwalTgrModel) BeforeCreate

func (p *JadwalTgrModel) BeforeCreate(tx *gorm.DB) (err error)

func (*JadwalTgrModel) BeforeDelete

func (p *JadwalTgrModel) BeforeDelete(tx *gorm.DB) (err error)

func (*JadwalTgrModel) BeforeUpdate

func (p *JadwalTgrModel) BeforeUpdate(tx *gorm.DB) (err error)

func (*JadwalTgrModel) TableName

func (p *JadwalTgrModel) TableName() string

type JadwalTgrPesertaModel

type JadwalTgrPesertaModel struct {
	ID              string     `gorm:"column:id;primary_key" json:"id"`
	Name            NullString `gorm:"column:name" json:"name"`
	JadwalTgrID     NullString `gorm:"column:jadwal_tgr_id" json:"jadwal_tgr_id"`
	PesertaUniqueID NullString `gorm:"column:peserta_unique_id" json:"peserta_unique_id"`
	CreatedAt       *time.Time `gorm:"column:created_at" json:"created_at"`
	CreatedBy       NullString `gorm:"column:created_by" json:"created_by"`
	UpdatedAt       *time.Time `gorm:"column:updated_at" json:"updated_at"`
	UpdatedBy       NullString `gorm:"column:updated_by" json:"updated_by"`
}

func (*JadwalTgrPesertaModel) AfterCreate

func (p *JadwalTgrPesertaModel) AfterCreate(tx *gorm.DB) (err error)

func (*JadwalTgrPesertaModel) BeforeCreate

func (p *JadwalTgrPesertaModel) BeforeCreate(tx *gorm.DB) (err error)

func (*JadwalTgrPesertaModel) BeforeDelete

func (p *JadwalTgrPesertaModel) BeforeDelete(tx *gorm.DB) (err error)

func (*JadwalTgrPesertaModel) BeforeUpdate

func (p *JadwalTgrPesertaModel) BeforeUpdate(tx *gorm.DB) (err error)

func (*JadwalTgrPesertaModel) TableName

func (p *JadwalTgrPesertaModel) TableName() string

type JudgeVerificationScoreModel

type JudgeVerificationScoreModel struct {
	ID              string     `gorm:"column:id;primary_key" json:"id"`
	JadwalTandingID NullString `gorm:"column:jadwal_tanding_id" json:"jadwal_tanding_id"`
	NilaiID         NullString `gorm:"column:nilai_id" json:"nilai_id"`
	Corner          int        `gorm:"column:corner" json:"corner"`
	Round           int        `gorm:"column:round" json:"round"`
	Status          int        `gorm:"column:status;default:0" json:"status"`
	CreatedAt       *time.Time `gorm:"column:created_at" json:"created_at"`
	CreatedBy       NullString `gorm:"column:created_by" json:"created_by"`
	UpdatedAt       *time.Time `gorm:"column:updated_at" json:"updated_at"`
	UpdatedBy       NullString `gorm:"column:updated_by" json:"updated_by"`
}

func (*JudgeVerificationScoreModel) AfterCreate

func (p *JudgeVerificationScoreModel) AfterCreate(tx *gorm.DB) (err error)

func (*JudgeVerificationScoreModel) BeforeCreate

func (p *JudgeVerificationScoreModel) BeforeCreate(tx *gorm.DB) (err error)

func (*JudgeVerificationScoreModel) BeforeDelete

func (p *JudgeVerificationScoreModel) BeforeDelete(tx *gorm.DB) (err error)

func (*JudgeVerificationScoreModel) BeforeUpdate

func (p *JudgeVerificationScoreModel) BeforeUpdate(tx *gorm.DB) (err error)

func (*JudgeVerificationScoreModel) TableName

func (p *JudgeVerificationScoreModel) TableName() string

type LogTableModel

type LogTableModel struct {
	ID          string     `gorm:"column:id;primary_key" json:"id"`
	TableTarget NullString `gorm:"column:table_target" json:"table_target"`
	PrimaryKey  NullString `gorm:"column:primary_key" json:"primary_key"`
	// Value json
	Status    int        `gorm:"column:status;default:1" json:"status"`
	CreatedAt *time.Time `gorm:"column:created_at" json:"created_at"`
	UpdatedBy NullString `gorm:"column:updated_by" json:"updated_by"`
}

func (*LogTableModel) AfterCreate

func (p *LogTableModel) AfterCreate(tx *gorm.DB) (err error)

func (*LogTableModel) BeforeCreate

func (p *LogTableModel) BeforeCreate(tx *gorm.DB) (err error)

func (*LogTableModel) BeforeDelete

func (p *LogTableModel) BeforeDelete(tx *gorm.DB) (err error)

func (*LogTableModel) BeforeUpdate

func (p *LogTableModel) BeforeUpdate(tx *gorm.DB) (err error)

func (*LogTableModel) TableName

func (p *LogTableModel) TableName() string

type NullDate

type NullDate struct {
	sql.NullTime
}

date

func NullDateInput

func NullDateInput(t time.Time) NullDate

func (NullDate) MarshalJSON

func (nt NullDate) MarshalJSON() ([]byte, error)

type NullDateTime

type NullDateTime struct {
	sql.NullTime
}

parse null time on model

func NullDateTimeInput

func NullDateTimeInput(t time.Time) NullDateTime

func (NullDateTime) MarshalJSON

func (nt NullDateTime) MarshalJSON() ([]byte, error)

parse null time on model

type NullInt64

type NullInt64 struct {
	sql.NullInt64
}

parse null int on model

func NullInt64Input

func NullInt64Input(s int64) NullInt64

func (NullInt64) MarshalJSON

func (ni NullInt64) MarshalJSON() ([]byte, error)

parse null int on model

type NullString

type NullString struct {
	sql.NullString
}

parse null string on model

func NullStringInput

func NullStringInput(s string) NullString

func (NullString) MarshalJSON

func (ns NullString) MarshalJSON() ([]byte, error)

parse null string on model

type TandingDewanScoreModel

type TandingDewanScoreModel struct {
	ID              string     `gorm:"column:id;primary_key" json:"id"`
	JadwalTandingID NullString `gorm:"column:jadwal_tanding_id" json:"jadwal_tanding_id"`
	Corner          int        `gorm:"column:corner" json:"corner"`
	Score           NullString `gorm:"column:score" json:"score"`
	Type            int        `gorm:"column:type" json:"type"`
	Status          int        `gorm:"column:status;default:0" json:"status"`
	Round           int        `gorm:"column:round" json:"round"`
	CreatedAt       *time.Time `gorm:"column:created_at" json:"created_at"`
	CreatedBy       NullString `gorm:"column:created_by" json:"created_by"`
	UpdatedAt       *time.Time `gorm:"column:updated_at" json:"updated_at"`
	UpdatedBy       NullString `gorm:"column:updated_by" json:"updated_by"`
}

func (*TandingDewanScoreModel) AfterCreate

func (p *TandingDewanScoreModel) AfterCreate(tx *gorm.DB) (err error)

func (*TandingDewanScoreModel) BeforeCreate

func (p *TandingDewanScoreModel) BeforeCreate(tx *gorm.DB) (err error)

func (*TandingDewanScoreModel) BeforeDelete

func (p *TandingDewanScoreModel) BeforeDelete(tx *gorm.DB) (err error)

func (*TandingDewanScoreModel) BeforeUpdate

func (p *TandingDewanScoreModel) BeforeUpdate(tx *gorm.DB) (err error)

func (*TandingDewanScoreModel) TableName

func (p *TandingDewanScoreModel) TableName() string

type TandingFinalScoreModel

type TandingFinalScoreModel struct {
	ID              string     `gorm:"column:id;primary_key" json:"id"`
	JadwalTandingID NullString `gorm:"column:jadwal_tanding_id" json:"jadwal_tanding_id"`
	Corner          int        `gorm:"column:corner" json:"corner"`
	Score           NullString `gorm:"column:score" json:"score"`
	Round           int        `gorm:"column:round" json:"round"`
	Status          int        `gorm:"column:status;default:0" json:"status"`
	CreatedAt       *time.Time `gorm:"column:created_at" json:"created_at"`
	CreatedBy       NullString `gorm:"column:created_by" json:"created_by"`
	UpdatedAt       *time.Time `gorm:"column:updated_at" json:"updated_at"`
	UpdatedBy       NullString `gorm:"column:updated_by" json:"updated_by"`
}

func (*TandingFinalScoreModel) AfterCreate

func (p *TandingFinalScoreModel) AfterCreate(tx *gorm.DB) (err error)

func (*TandingFinalScoreModel) BeforeCreate

func (p *TandingFinalScoreModel) BeforeCreate(tx *gorm.DB) (err error)

func (*TandingFinalScoreModel) BeforeDelete

func (p *TandingFinalScoreModel) BeforeDelete(tx *gorm.DB) (err error)

func (*TandingFinalScoreModel) BeforeUpdate

func (p *TandingFinalScoreModel) BeforeUpdate(tx *gorm.DB) (err error)

func (*TandingFinalScoreModel) TableName

func (p *TandingFinalScoreModel) TableName() string

type TandingJudgeScoreModel

type TandingJudgeScoreModel struct {
	ID              string     `gorm:"column:id;primary_key" json:"id"`
	JadwalTandingID NullString `gorm:"column:jadwal_tanding_id" json:"jadwal_tanding_id"`
	Corner          int        `gorm:"column:corner" json:"corner"`
	Score           NullString `gorm:"column:score" json:"score"`
	Round           int        `gorm:"column:round" json:"round"`
	Status          int        `gorm:"column:status;default:0" json:"status"`
	CreatedAt       *time.Time `gorm:"column:created_at" json:"created_at"`
	CreatedBy       NullString `gorm:"column:created_by" json:"created_by"`
	UpdatedAt       *time.Time `gorm:"column:updated_at" json:"updated_at"`
	UpdatedBy       NullString `gorm:"column:updated_by" json:"updated_by"`
}

func (*TandingJudgeScoreModel) AfterCreate

func (p *TandingJudgeScoreModel) AfterCreate(tx *gorm.DB) (err error)

func (*TandingJudgeScoreModel) BeforeCreate

func (p *TandingJudgeScoreModel) BeforeCreate(tx *gorm.DB) (err error)

func (*TandingJudgeScoreModel) BeforeDelete

func (p *TandingJudgeScoreModel) BeforeDelete(tx *gorm.DB) (err error)

func (*TandingJudgeScoreModel) BeforeUpdate

func (p *TandingJudgeScoreModel) BeforeUpdate(tx *gorm.DB) (err error)

func (*TandingJudgeScoreModel) TableName

func (p *TandingJudgeScoreModel) TableName() string

type TgrDewanScoreModel

type TgrDewanScoreModel struct {
	ID          string     `gorm:"column:id;primary_key" json:"id"`
	JadwalTgrID NullString `column:"jadwal_tgr_id" json:"jadwal_tgr_id"`
	Time        NullString `gorm:"column:time;default:0" json:"time"`
	OutArena    NullString `gorm:"column:out_arena;default:0" json:"out_arena"`
	Drop        NullString `gorm:"column:drop;default:0" json:"drop"`
	Dress       NullString `gorm:"column:dress;default:0" json:"dress"`
	Voice       NullString `gorm:"column:voice;default:0" json:"voice"`
	Hold        NullString `gorm:"column:hold;default:0" json:"hold"`
	Distance    NullString `gorm:"column:distance;default:0" json:"distance"`
	CreatedAt   *time.Time `gorm:"column:created_at" json:"created_at"`
	CreatedBy   NullString `gorm:"column:created_by" json:"created_by"`
	UpdatedAt   *time.Time `gorm:"column:updated_at" json:"updated_at"`
	UpdatedBy   NullString `gorm:"column:updated_by" json:"updated_by"`
}

func (*TgrDewanScoreModel) AfterCreate

func (p *TgrDewanScoreModel) AfterCreate(tx *gorm.DB) (err error)

func (*TgrDewanScoreModel) BeforeCreate

func (p *TgrDewanScoreModel) BeforeCreate(tx *gorm.DB) (err error)

func (*TgrDewanScoreModel) BeforeDelete

func (p *TgrDewanScoreModel) BeforeDelete(tx *gorm.DB) (err error)

func (*TgrDewanScoreModel) BeforeUpdate

func (p *TgrDewanScoreModel) BeforeUpdate(tx *gorm.DB) (err error)

func (*TgrDewanScoreModel) TableName

func (p *TgrDewanScoreModel) TableName() string

type TgrJudgeScoreModel

type TgrJudgeScoreModel struct {
	ID          string     `gorm:"column:id;primary_key" json:"id"`
	JadwalTgrID NullString `gorm:"column:jadwal_tgr_id" json:"jadwal_tgr_id"`
	JuriID      NullString `gorm:"column:juri_id" json:"juri_id"`
	Jurus1      NullString `gorm:"column:jurus1;default:0" json:"jurus1"`
	Jurus2      NullString `gorm:"column:jurus2;default:0" json:"jurus2"`
	Jurus3      NullString `gorm:"column:jurus3;default:0" json:"jurus3"`
	Jurus4      NullString `gorm:"column:jurus4;default:0" json:"jurus4"`
	Jurus5      NullString `gorm:"column:jurus5;default:0" json:"jurus5"`
	Jurus6      NullString `gorm:"column:jurus6;default:0" json:"jurus6"`
	Jurus7      NullString `gorm:"column:jurus7;default:0" json:"jurus7"`
	Jurus8      NullString `gorm:"column:jurus8;default:0" json:"jurus8"`
	Jurus9      NullString `gorm:"column:jurus9;default:0" json:"jurus9"`
	Jurus10     NullString `gorm:"column:jurus10;default:0" json:"jurus10"`
	Jurus11     NullString `gorm:"column:jurus11;default:0" json:"jurus11"`
	Jurus12     NullString `gorm:"column:jurus12;default:0" json:"jurus12"`
	Jurus13     NullString `gorm:"column:jurus13;default:0" json:"jurus13"`
	Jurus14     NullString `gorm:"column:jurus14;default:0" json:"jurus14"`
	Agility     NullString `gorm:"column:agility;default:0" json:"agility"`
	CreatedAt   *time.Time `gorm:"column:created_at" json:"created_at"`
	CreatedBy   NullString `gorm:"column:created_by" json:"created_by"`
	UpdatedAt   *time.Time `gorm:"column:updated_at" json:"updated_at"`
	UpdatedBy   NullString `gorm:"column:updated_by" json:"updated_by"`
}

func (*TgrJudgeScoreModel) AfterCreate

func (p *TgrJudgeScoreModel) AfterCreate(tx *gorm.DB) (err error)

func (*TgrJudgeScoreModel) BeforeCreate

func (p *TgrJudgeScoreModel) BeforeCreate(tx *gorm.DB) (err error)

func (*TgrJudgeScoreModel) BeforeDelete

func (p *TgrJudgeScoreModel) BeforeDelete(tx *gorm.DB) (err error)

func (*TgrJudgeScoreModel) BeforeUpdate

func (p *TgrJudgeScoreModel) BeforeUpdate(tx *gorm.DB) (err error)

func (*TgrJudgeScoreModel) TableName

func (p *TgrJudgeScoreModel) TableName() string

type TimeKeeperModel

type TimeKeeperModel struct {
	ID         string     `gorm:"column:id;primary_key" json:"id"`
	EventID    NullString `gorm:"event_id" json:"event_id"`
	KategoriID NullString `gorm:"kategori_id" json:"kategori_id"`
	JadwalID   NullString `gorm:"column:jadwal_id" json:"jadwal_id"`
	Arena      int        `gorm:"column:arena" json:"arena"`
	Round      int        `gorm:"column:round;default:0" json:"round"`
	Status     int        `gorm:"column:status;default:0" json:"status"`
	StartAt    *time.Time `gorm:"column:start_at" json:"start_at"`
	StopAt     *time.Time `gorm:"column:stop_at" json:"stop_at"`
	PausedAt   string     `gorm:"column:paused_at" json:"paused_at"`
	CreatedAt  *time.Time `gorm:"column:created_at" json:"created_at"`
	CreatedBy  NullString `gorm:"column:created_by" json:"created_by"`
	UpdatedAt  *time.Time `gorm:"column:updated_at" json:"updated_at"`
	UpdatedBy  NullString `gorm:"column:updated_by" json:"updated_by"`
}

func (*TimeKeeperModel) AfterCreate

func (p *TimeKeeperModel) AfterCreate(tx *gorm.DB) (err error)

func (*TimeKeeperModel) BeforeCreate

func (p *TimeKeeperModel) BeforeCreate(tx *gorm.DB) (err error)

func (*TimeKeeperModel) BeforeDelete

func (p *TimeKeeperModel) BeforeDelete(tx *gorm.DB) (err error)

func (*TimeKeeperModel) BeforeUpdate

func (p *TimeKeeperModel) BeforeUpdate(tx *gorm.DB) (err error)

func (*TimeKeeperModel) TableName

func (p *TimeKeeperModel) TableName() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL