-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconfig.yaml.example
51 lines (42 loc) · 1.75 KB
/
config.yaml.example
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
46
47
48
49
50
# if you don't specify this field, the wizard will use the working directory (pwd)
# here you'll have to change the username and set the correct path to your project
project_path: $GOPATH/src/
# the module_name is used to create the imports
module_name: github.com/edteamlat/go-wizzard
# Use for the name of the structs of the different layers
model: UserRole
# Will be use for the table name and constraints
# also, it'll be converted to camel case to be use
# for the Slice model
table: user_roles
table_comment: Write your comment here
# choose the type of the dates (valid options: time.Time and int64 for unix)
time_type: time.Time
# choose the type of the primary key (valid options: uint, uuid.UUID)
id_type: uint
# a list of objects where you specify the name, type and if it allows nulls
# by default the fields' id, created_at and updated_at will be created
fields:
- name: user_id
type: uint
is_null: false
- name: description
type: string
is_null: true
field_size: 100 # only for string type, if not specified, it'll be 255, if you put -1, it'll be of type TEXT instead of VARCHAR
- name: created_at
type: time.Time
is_null: false
- name: priority
type: float64
is_null: false
numeric_precision: 10 # only for float type, if not specify, it'll be 10, must be a positive number
numeric_scale: 2 # only for float type, can be either positive or negative
# The available layers that we can generate
# if you don't want to use one, just remove it
layers:
- domain
- handler_echo # we only support the echo framework for now
- storage_postgres # we don't support other db system for now
- model
- sqlmigration_postgres # here we'll save the sql files to modify our db, it only supports postgres syntax for now