github.com/sharovik/devbot@v1.0.1-0.20240308094637-4a0387c40516/internal/dto/databasedto/QuestionsRegexModel.go (about) 1 package databasedto 2 3 import "github.com/sharovik/orm/dto" 4 5 // QuestionsRegexStruct struct for QuestionsRegexModel 6 type QuestionsRegexStruct struct { 7 dto.BaseModel 8 } 9 10 // QuestionsRegexModel model for questions_regex table 11 var QuestionsRegexModel = New( 12 "questions_regex", 13 []interface{}{ 14 dto.ModelField{ 15 Name: "regex", 16 Type: dto.VarcharColumnType, 17 Length: 255, 18 }, 19 dto.ModelField{ 20 Name: "regex_group", 21 Type: dto.VarcharColumnType, 22 Length: 255, 23 }, 24 }, 25 dto.ModelField{ 26 Name: "id", 27 Type: dto.IntegerColumnType, 28 AutoIncrement: true, 29 IsPrimaryKey: true, 30 }, 31 &QuestionsRegexStruct{}, 32 )