employee.gen.go 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. // Code generated by gorm.io/gen. DO NOT EDIT.
  2. // Code generated by gorm.io/gen. DO NOT EDIT.
  3. // Code generated by gorm.io/gen. DO NOT EDIT.
  4. package model
  5. import (
  6. "time"
  7. "gorm.io/gorm"
  8. )
  9. const TableNameEmployee = "employee"
  10. // Employee 数字员工表
  11. type Employee struct {
  12. ID int64 `gorm:"column:id;primaryKey;autoIncrement:true;comment:ID" json:"id"` // ID
  13. CreatedAt time.Time `gorm:"column:created_at;comment:创建时间" json:"created_at"` // 创建时间
  14. UpdatedAt time.Time `gorm:"column:updated_at;comment:修改时间" json:"updated_at"` // 修改时间
  15. DeletedAt gorm.DeletedAt `gorm:"column:deleted_at;comment:删除时间" json:"deleted_at"` // 删除时间
  16. Title string `gorm:"column:title;comment:标题" json:"title"` // 标题
  17. Avatar string `gorm:"column:avatar;comment:头像URL" json:"avatar"` // 头像URL
  18. Tags string `gorm:"column:tags;comment:Tag列表 用,连接多个" json:"tags"` // Tag列表 用,连接多个
  19. HireCount int64 `gorm:"column:hire_count;comment:被雇佣次数" json:"hire_count"` // 被雇佣次数
  20. ServiceCount int64 `gorm:"column:service_count;comment:服务次数" json:"service_count"` // 服务次数
  21. AchievementCount int64 `gorm:"column:achievement_count;comment:业绩单数" json:"achievement_count"` // 业绩单数
  22. Intro string `gorm:"column:intro;comment:个人介绍" json:"intro"` // 个人介绍
  23. Estimate string `gorm:"column:estimate;comment:自我评价" json:"estimate"` // 自我评价
  24. Skill string `gorm:"column:skill;comment:技能卡" json:"skill"` // 技能卡
  25. AbilityType string `gorm:"column:ability_type;comment:能力类型 用,连接" json:"ability_type"` // 能力类型 用,连接
  26. Scene string `gorm:"column:scene;comment:使用场景 用,连接" json:"scene"` // 使用场景 用,连接
  27. SwitchIn string `gorm:"column:switch_in;comment:支持接入 用,连接" json:"switch_in"` // 支持接入 用,连接
  28. Tutorial string `gorm:"column:tutorial;comment:使用教程" json:"tutorial"` // 使用教程
  29. VideoURL string `gorm:"column:video_url;comment:视频" json:"video_url"` // 视频
  30. OrganizationID int64 `gorm:"column:organization_id;comment:机构ID" json:"organization_id"` // 机构ID
  31. CategoryID int64 `gorm:"column:category_id;comment:分类ID" json:"category_id"` // 分类ID
  32. APIBase string `gorm:"column:api_base" json:"api_base"`
  33. APIKey string `gorm:"column:api_key" json:"api_key"`
  34. IsVip int64 `gorm:"column:is_vip;comment:是否VIP:0-否 1-是" json:"is_vip"` // 是否VIP:0-否 1-是
  35. AiInfo string `gorm:"column:ai_info;comment:AI信息" json:"ai_info"` // AI信息
  36. ChatURL string `gorm:"column:chat_url;comment:聊天URL" json:"chat_url"` // 聊天URL
  37. }
  38. // TableName Employee's table name
  39. func (*Employee) TableName() string {
  40. return TableNameEmployee
  41. }