-
Notifications
You must be signed in to change notification settings - Fork 0
/
TestModel.java
28 lines (24 loc) · 1.11 KB
/
TestModel.java
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
package Samples.Models.Primary;
import ORM.Utils.Formats.UsableMethods;
import ORM.Utils.Model.TableData;
public class TestModel implements UsableMethods {
// members
@TableData(constraint = "not null unique primary key auto_increment", type = "int")
private int id_pk;
@TableData(constraint = "not null", type = "varchar(100)")
private String name;
@TableData(constraint = "not null unique", type = "varchar(100)")
private String email;
@TableData(constraint = "not null", type = "int")
private int users_id_fk;
@TableData(constraint = "not null", type = "varchar(100)")
private String rol;
@TableData(constraint = "not null", type = "date")
private String create_at;
@TableData(constraint = "not null", type = "date")
private String update_at;
public TestModel() { }
public TestModel(String name, String email, int users_id_fk, String rol) { }
public TestModel(String name, String email, int users_id_fk, String rol, String create_at) { }
public TestModel(String name, String email, int users_id_fk, String rol, String create_at, String update_at) { }
}