refactor(models): convert to json format per database-table-definition-spec
This commit is contained in:
parent
049b4225ad
commit
a8cb13446e
50
models/discount_qr.json
Normal file
50
models/discount_qr.json
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
{
|
||||||
|
"summary": [
|
||||||
|
{
|
||||||
|
"name": "discount_qr",
|
||||||
|
"title": "折扣二维码",
|
||||||
|
"primary": [
|
||||||
|
"id"
|
||||||
|
],
|
||||||
|
"catelog": "entity"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"fields": [
|
||||||
|
{
|
||||||
|
"name": "id",
|
||||||
|
"title": "id",
|
||||||
|
"type": "str",
|
||||||
|
"length": 32
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "resellerid",
|
||||||
|
"title": "商户id",
|
||||||
|
"type": "str",
|
||||||
|
"length": 32
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "discount",
|
||||||
|
"title": "折扣",
|
||||||
|
"type": "float",
|
||||||
|
"length": 6,
|
||||||
|
"dec": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "valid_term",
|
||||||
|
"title": "折扣有效期",
|
||||||
|
"type": "str",
|
||||||
|
"length": 10
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "expired_date",
|
||||||
|
"title": "促销失效日期",
|
||||||
|
"type": "date"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "qr_webpath",
|
||||||
|
"title": "二维码路径",
|
||||||
|
"type": "str",
|
||||||
|
"length": 256
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user