#48 Update users schema to be compatible with laravel

state: closed opened by: adrianharabula on: 5/2/2017

Some modifications:

  • make sure the password column is at least 60 characters in length
  • table contains a nullable, string remember_token column of 100 characters.

Verify the login/signup functionality.

Comments


from: adrianharabula on: 5/7/2017

Tabela users este creată acum după:

        Schema::create('users', function (Blueprint $table) {
            $table->increments('id');
            $table->string('name');
            $table->string('email')->unique();
            $table->string('password');
            $table->rememberToken();
            $table->timestamps();
        });

Față de ceea ce aveam:

CREATE TABLE USERS
(
  USER_ID NUMBER(10) PRIMARY KEY,
  USERNAME VARCHAR(30) NOT NULL,
  PASSWORD VARCHAR(40) NOT NULL,
  EMAIL VARCHAR(40) NOT NULL
);
/

Diferențele sunt că acum avem înloc de user_id coloana id. Iar în loc de username avem name. Plus avem următoare câmpuri:

  • remember_token
  • created_at
  • updated_at

from: elis47 on: 5/7/2017

Nu am zis ca username-ul va fi unic?

results matching ""

    No results matching ""