-
Notifications
You must be signed in to change notification settings - Fork 1
/
sample_3.yaml
45 lines (45 loc) · 907 Bytes
/
sample_3.yaml
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
# CREATE TABLE table3 (
# ulid VARCHAR(26) NOT NULL,
# uuid VARCHAR(36) NOT NULL,
# color VARCHAR(7) NOT NULL,
# updated_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
# created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
# PRIMARY KEY (ulid)
# );
# MySQL: DEFAULT is required for TIMESTAMP column
tablename: table3
recordcount: 10000
buffer: 1000
columns:
- name: color
type: varchar
rule:
type: pattern
patterns:
- value: red
times: 10
- value: blue
times: 5
- value: green
times: 1
- value: yellow
- name: ulid
type: varchar
rule:
type: unique
format: ULID
- name: uuid
type: varchar
rule:
type: unique
format: UUID
- name: updated_at
type: timestamp
rule:
type: const
value: '2024-01-01 00:00:00'
- name: created_at
type: timestamp
rule:
type: unique
format: NOW