Commit 97379c3e authored by earndt's avatar earndt

[W5D5] (ArndtED) Adds sql seed data; repository interface

parent 1c965264
package service.student.studentaddressservice.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import service.student.studentaddressservice.model.StudentAddress;
@Repository
public interface StudentAddressRepository extends JpaRepository<StudentAddress, Long> {
}
DROP TABLE IF EXISTS ADDRESS;
CREATE TABLE ADDRESS (
ID INT AUTO_INCREMENT PRIMARY KEY,
EMAIL VARCHAR (255) PRIMARY KEY,
STREET_ADDRESS VARCHAR (255) NOT NULL,
STATE VARCHAR (255) NOT NULL,
CITY VARCHAR (255) NOT NULL,
ZIP VARCHAR (255) NOT NULL,
APT_NUM VARCHAR (255)
);
INSERT INTO ADDRESS VALUES (1, 'faker1@fakemail.com', '867 Fake Ln', 'CA', 'Fremont', '90210'),
(2, 'faker2@fakemail.com', '868 Fake Ln', 'CA', 'Fremont', '90210'),
(3, 'faker3@fakemail.com', '869 Fake Ln', 'CA', 'Fremont', '90210');
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment