add: trace users and get trace token

This commit is contained in:
2022-03-31 12:54:39 +08:00
parent 747646cd9d
commit 4bbb843edf
4 changed files with 97 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
class CreateTraceUsers < ActiveRecord::Migration[5.2]
def change
create_table :trace_users do |t|
t.references :user
t.string :username
t.string :password
t.string :unit
t.string :telnumber
t.string :email
t.string :name
t.text :token
t.datetime :expired_at
t.timestamps
end
end
end