clibra.jdl 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. /** 新闻表 */
  2. entity News {
  3. title String /** 标题 */
  4. photo String /** 缩略图 */
  5. brief String /** 简介 */
  6. type String /** 类型: 企业新闻 | 国内动态 | 国际动态 */
  7. author String /** 作者 */
  8. source String /** 来源: 自定义 */
  9. publishTime ZonedDateTime /** 发布时间 */
  10. fromWeChat Boolean /** 是否为微信公众号文章 */
  11. content TextBlob /** 内容: 富文本 */
  12. status String /** 状态: 已发布 | 未发布 */
  13. createDate LocalDate /** 添加日期 */
  14. }
  15. /** 职位信息 */
  16. entity Job {
  17. name String /** 职位名称 */
  18. publishTime ZonedDateTime /** 发布时间 */
  19. department OfferDepartment /** 所属部门 */
  20. location String /** 工作地点 */
  21. experience TextBlob /** 工作经验要求 */
  22. year String /** 工作年限 */
  23. education String /** 学历要求 */
  24. nature String /** 工作性质: 全职 | 兼职 */
  25. people String /** 招聘人数 */
  26. description TextBlob /** 职位描述 */
  27. status String /** 状态: 已发布 | 未发布 */
  28. createDate LocalDate /** 添加日期 */
  29. }
  30. /** 职位所属部门 */
  31. enum OfferDepartment {
  32. EECC("环境能源咨询中心"),
  33. SUSC("可持续发展中心"),
  34. INIC("信息智能化中心")
  35. }
  36. /** 留言信息 */
  37. entity Message {
  38. messageTime ZonedDateTime /** 留言日期 */
  39. name String /** 姓名 */
  40. phone String /** 手机号 */
  41. email String /** 邮箱 */
  42. address String /** 地址 */
  43. zipCode String /** 邮编 */
  44. content String maxlength(500) /** 内容 */
  45. }
  46. /** 用户 */
  47. entity EcoUser(eco_user) {
  48. websiteId Long required /** 所属网站ID */
  49. login String required unique /** 用户名 */
  50. password String required minlength(60) maxlength(60) /** 密码 */
  51. realName String required /** 姓名 */
  52. roleCode String required /** 角色编码: ROLE_ADMIN | ROLE_MANAGER */
  53. addTime ZonedDateTime required /** 添加时间 */
  54. }