github.com/sharovik/devbot@v1.0.1-0.20240308094637-4a0387c40516/internal/dto/databasedto/SchedulesModel.go (about) 1 package databasedto 2 3 import "github.com/sharovik/orm/dto" 4 5 // SchedulesStruct the struct for schedules model 6 type SchedulesStruct struct { 7 dto.BaseModel 8 } 9 10 // SchedulesModel the model for schedules table 11 var SchedulesModel = New( 12 "schedules", 13 []interface{}{ 14 dto.ModelField{ 15 Name: "author", 16 Type: dto.VarcharColumnType, 17 Length: 255, 18 IsNullable: true, 19 }, 20 dto.ModelField{ 21 Name: "channel", 22 Type: dto.VarcharColumnType, 23 Length: 255, 24 }, 25 dto.ModelField{ 26 Name: "event_id", 27 Type: dto.IntegerColumnType, 28 }, 29 dto.ModelField{ 30 Name: "scenario_id", 31 Type: dto.IntegerColumnType, 32 }, 33 dto.ModelField{ 34 Name: "variables", 35 Type: dto.VarcharColumnType, 36 }, 37 dto.ModelField{ 38 Name: "reaction_type", 39 Type: dto.VarcharColumnType, 40 Length: 255, 41 }, 42 dto.ModelField{ 43 Name: "execute_at", 44 Type: dto.VarcharColumnType, 45 Length: 255, 46 }, 47 dto.ModelField{ 48 Name: "is_repeatable", 49 Type: dto.BooleanColumnType, 50 Default: false, 51 }, 52 }, 53 dto.ModelField{ 54 Name: "id", 55 Type: dto.IntegerColumnType, 56 AutoIncrement: true, 57 IsPrimaryKey: true, 58 }, 59 &SchedulesStruct{}, 60 )