-
Notifications
You must be signed in to change notification settings - Fork 0
/
Blog.edf
45 lines (39 loc) · 969 Bytes
/
Blog.edf
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
35
36
37
38
39
40
41
42
43
44
45
const unitNamespace = "app\data";
const unitDir = "blog";
const unitName = "BlogDbContext";
@PK type UserId int;
@PK type CommentId int;
@PK type PostId int;
@Unique
type Email string(100);
type ShortString string(100);
type LongString string(500);
type DateModified date;
type DateCreated date;
type PasswordHash string(100);
entity User {
UserId Id;
ShortString FirstName;
ShortString LastName;
Email Email;
ShortString UserName;
ShortString PasswordHash;
DateModified Modified;
DateCreated Created;
}
entity Comment {
CommentId Id;
UserId UserId;
PostId PostId;
Text Text;
DateModified Modified;
DateCreated Created;
}
entity Post {
PostId Id;
UserId UserId;
ShortString Title;
Text Content;
DateModified Modified;
DateCreated Created;
}