-
Notifications
You must be signed in to change notification settings - Fork 0
/
assignment_code_templates.gen.go
30 lines (24 loc) · 1.17 KB
/
assignment_code_templates.gen.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// 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"
"gorm.io/gorm"
)
const TableNameAssignmentCodeTemplate = "assignment_code_templates"
// AssignmentCodeTemplate mapped from table <assignment_code_templates>
type AssignmentCodeTemplate struct {
ID int32 `gorm:"column:id;primaryKey;autoIncrement:true" json:"id"`
AssignmentID int32 `gorm:"column:assignment_id" json:"assignment_id"`
Language string `gorm:"column:language" json:"language"`
Code string `gorm:"column:code" json:"code"`
TestRunnerCode string `gorm:"column:test_runner_code" json:"test_runner_code"`
CreatedAt time.Time `gorm:"column:created_at;default:CURRENT_TIMESTAMP" json:"created_at"`
UpdatedAt time.Time `gorm:"column:updated_at;default:CURRENT_TIMESTAMP" json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"column:deleted_at" json:"deleted_at"`
}
// TableName AssignmentCodeTemplate's table name
func (*AssignmentCodeTemplate) TableName() string {
return TableNameAssignmentCodeTemplate
}