column | type |
---|---|
id | varchar(32) pk |
ticketId | varchar(32) fk -> tickerTables |
detail | vachar(512) |
attachment | json |
createdAt | DateTime default CURRENT_TIMESTAMP |
updatedAt | Datetime default CURRENT_TIMESTAMP |
Last active
July 9, 2022 06:05
-
-
Save chiyanun/643084fa6e745a35317f452d6a849b14 to your computer and use it in GitHub Desktop.
Mysql Demo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
docker run --name mysqldb -e MYSQL_ROOT_PASSWORD=password -p 3306:3306 -d mysql |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
create table opertaion_tickets.ticketTables | |
( | |
id varchar(32) not null | |
primary key, | |
title varchar(256) not null, | |
createdAt datetime default CURRENT_TIMESTAMP null, | |
updatedAt datetime default CURRENT_TIMESTAMP null | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment