mirror of
https://github.com/HackPlan/RootPanel.git
synced 2026-03-28 07:28:57 +08:00
工单的数据库结构,Model Class
This commit is contained in:
@@ -5,6 +5,8 @@ updated_at: ISODate('2013-02-22T03:03:37.312Z')
|
||||
title: 'Ticket Title'
|
||||
content: 'Ticket Content(Markdown)'
|
||||
content_html: 'Ticket Conetnt(HTML)'
|
||||
type: 'linux'
|
||||
status: 'open/pending/finish/closed/public'
|
||||
attribute: {}
|
||||
replys: [
|
||||
_id: ObjectID('525284cc2cebb6d0008b4567')
|
||||
|
||||
5
core/model/Ticket.coffee
Normal file
5
core/model/Ticket.coffee
Normal file
@@ -0,0 +1,5 @@
|
||||
Model = require './Model'
|
||||
|
||||
module.exports = class Ticket extends Model
|
||||
@create: (data) ->
|
||||
new Ticket data
|
||||
Reference in New Issue
Block a user