简体   繁体   中英

How to create database design with dummy data

I often create MySQL ERD (database design/diagram) using mysql workbench or any other online db designer tools. but, i have usual problem when i started to design database for my project. let's say i want to create this:

tbl_user
id | int, Auto increment, primary key
user | varchar(100)
password | varchar(255) => password as base64

sometimes i want to insert dummy data on that table to make sure i dont make any mistake / forgot about what kind of data that i must insert in to those columns.

id | user | password
1 | admin | YWRtaW4= (base64: admin)

let's say when i first time think is the password will used base64 encode. and i want to create dummy data to prevent me insert password as plain password, md5 or sha-1

so what i want is application that can generate table from my ERD and insert my dummy data when i generate it into mysql scheme

i try so many online tools , dbdesigner and workbench, but there is no way to do this. what i can is only using note/comment to my table

i will appreciate any help. thanks

NOTE: absolutely i wont use base64 as password. this is just simple example case

我肯定会喜欢Devart的dbForge ...它支持带有实现的ERD设计(类似于Workbench),从DB到ERD的逆向工程,具有200多个预定正弦值的数据生成器,而且还提供了基于以下内容创建自己的数据的可能性您自己定义的规则...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM