-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdraft.yml
34 lines (33 loc) · 871 Bytes
/
draft.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
models:
category:
lft: integer unsigned nullable
rgt: integer unsigned nullable
depth: integer unsigned nullable
name: string
slug: string
timestamps: true
softDeletes: true
relationships:
hasMany: Article
Article:
category_id: id foreign
author: string
title: string
slug: string unique defult:''
content: text
image: string nullable
status: enum:PUBLISHED,DRAFT
date: date
featured: boolean default:0
timestamps: true
softDeletes: true
relationships:
belongsToMany: Tag
Tag:
name: string
slug: string unique
timestamps: true
softDeletes: true
relationships:
belongsToMany: Article
seeders: Article, category, Tag